Repository navigation
docs(recipes): add a recipe that connects MCPTool to the filesystem MCP server - #2377
Open
modelpath-dev wants to merge 1 commit into
Open
modelpath-dev wants to merge 1 commit into
modelpath-dev wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Adds a "Talk to Your Files with MCP" recipe under Recipes > Agents. It connects
MCPToolto MCP's reference filesystem server (@modelcontextprotocol/server-filesystemover stdio, started withnpxlike the existing MCP tool example), limits the server to a temp folder of notes, prints the activities discovered from the server, and has an Agent read the notes and write a summary file back.No new server is added, as suggested in the issue.
What I checked locally:
MCPToolagainst the live filesystem server: it discovered all 14 tools, andlist_directory,read_text_fileandwrite_fileworked. Reading a path outside the allowed folder came back as anErrorArtifactfrom the server.ruff format --check,ruff check,pyright,mdformat --checkandtypospass on the new files, andmkdocs build --strictpasses with the new page in the nav.tests/unit/tools/test_mcp_tool.pypasses.I did not run the Agent half against a live model key, so the code block test for this file will be its first full run in CI.
Issue ticket number and link
Closes #2306
📚 Documentation preview 📚: https://griptape--2377.org.readthedocs.build//2377/