Skip to content

Implement MCP Tools Support #243

@bhouston

Description

@bhouston

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() and client.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions