-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
Description
Implement MCP Tools Support in MyCoder
Description
Currently, MyCoder only supports fetching resources from MCP servers. This issue is to implement support for using tools provided by MCP servers, allowing the agent to execute functions provided by external services through the Model Context Protocol.
Background
PR #242 added basic MCP support for resources, but did not implement tools support. MCP tools would allow the agent to execute functions provided by MCP servers, extending its capabilities without modifying the core code.
Requirements
- Update the MCP implementation to discover and expose tools from configured MCP servers
- Allow the agent to invoke MCP tools with parameters
- Handle tool execution results and errors
- Update documentation to explain how to use MCP tools
- Add appropriate tests
Technical Details
- The MCP SDK already supports tools via the
client.tools()
andclient.tool()
methods - We need to extend the current
mcp
tool to handle tools as well as resources - Update the configuration to allow specifying default tools to load
Related
- PR Add Basic Model Context Protocol (MCP) Support #242 (Implemented basic MCP support)