-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
Description
Implement Basic Model Context Protocol (MCP) Support
As suggested in issue #15, this PR implements basic support for the Model Context Protocol (MCP) in MyCoder.
What is the Model Context Protocol (MCP)?
The Model Context Protocol is a standardized way for applications to provide context to Large Language Models (LLMs). It allows for:
- Resources - Exposing data to LLMs
- Tools - Providing functionality for LLMs to use
- Prompts - Defining reusable templates for LLM interactions
- Images - Handling image data automatically
Implementation Details
This initial implementation includes:
- Configuration support in
mycoder.config.js
for MCP servers and default resources - A basic MCP client that can connect to MCP servers and fetch resources
- A new MCP tool for the agent to list and fetch resources from MCP servers
- Documentation in the README.md file
Next Steps
Future improvements could include:
- Support for MCP tools (not just resources)
- Support for MCP prompts
- Automatic loading of default resources when the agent starts
- A command-line interface for managing MCP servers and resources
Related Issues
- Research model context protocol and see if we should support it #15 Research model context protocol and see if we should support it
cc @bhouston