A Model Context Protocol (MCP) server for metacontract smart contract development.
Overview
What is mc-mcp?
mc-mcp is a Model Context Protocol (MCP) server designed for metacontract smart contract development, providing tools for AI-powered workflows and semantic documentation search.
How to use mc-mcp?
To use mc-mcp, install it as a CLI tool via Cargo, set the MC_PROJECT_ROOT environment variable to your project directory, and integrate it with an MCP-compatible client like Cursor or Cline.
Key features of mc-mcp?
- Semantic search over documentation
- Project initialization with Foundry
- Testing and deployment of smart contracts
- Contract upgrading and linting tools
- Fast semantic search using Qdrant
Use cases of mc-mcp?
- Developing and deploying smart contracts in a structured environment.
- Performing semantic searches to find relevant documentation quickly.
- Running tests and managing project configurations efficiently.
FAQ from mc-mcp?
- Can mc-mcp be used with any smart contract framework?
Yes, mc-mcp is designed to work with the metacontract framework and is compatible with various MCP clients.
- Is mc-mcp open-source?
Yes, mc-mcp is available on GitHub and is licensed under MIT.
- How do I troubleshoot common issues?
Common issues can be resolved by adjusting file descriptor limits or cleaning the embedding model cache.
Server Config
{
"mcpServers": {
"mc-mcp": {
"command": "mc-mcp",
"env": {
"MC_PROJECT_ROOT": "/path/to/your/project"
}
}
}
}