Skip to content

Conversation

bhouston
Copy link
Member

Implement MCP Tools Support

This PR implements support for using tools provided by MCP servers, allowing the agent to execute functions provided by external services through the Model Context Protocol.

Changes

  • Updated the MCP tool to add listTools and executeTool methods
  • Extended the MCP configuration to include defaultTools option
  • Added tests for the MCP tool functionality
  • Updated documentation in README.md to explain MCP tools usage

Implementation Details

The implementation now allows the agent to:

  1. Discover available tools from MCP servers using mcp.listTools()
  2. Execute tools with parameters using mcp.executeTool()
  3. Configure default tools in the configuration file

MCP tools provide a way to extend the agent's capabilities without modifying the core code, allowing it to access external services and APIs through the standardized Model Context Protocol.

Testing

The implementation has been tested with the build system and includes unit tests for the MCP tool functionality.

Related Issues

Closes #243

@bhouston bhouston merged commit 53d9afb into main Mar 12, 2025
1 check passed
Copy link

🎉 This PR is included in version mycoder-agent-v1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version mycoder-v1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement MCP Tools Support
1 participant