cirego/simple-mcp
If you are the rightful owner of simple-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A complete MCP project with both client and server components, using stdio transport.
The simple-mcp project is a comprehensive Model Context Protocol (MCP) implementation that includes both client and server components. It utilizes stdio transport for communication, ensuring robust and reliable data exchange. The project is designed to support multiple connection methods, allowing users to either connect to an existing server or initiate a new server process. It offers both interactive and one-shot modes for executing queries, making it versatile for different use cases. Comprehensive logging is integrated to facilitate debugging and monitoring, ensuring that users can track and resolve issues efficiently. The project structure is organized into separate directories for the client and server implementations, with a test script provided to verify functionality.
Features
- Robust Communication: Reliable stdio transport with proper error handling and timeout management.
- Multiple Connection Methods: Connect to an already running server or start a new server process.
- Interactive Mode: Choose tools and provide parameters interactively.
- One-shot Mode: Run queries directly from the command line.
- Comprehensive Logging: Detailed logging for debugging and monitoring.
Usages
usage with stdio
python mcp.run(transport='stdio') # Tools defined via @mcp.tool() decorator
usage with vscode
{ "mcpServers": { "simple-mcp": { "command": "cargo", "args": ["run", "--manifest-path", "server/Cargo.toml"] } } }
Tools
hello
A simple tool that greets a person by name.