I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Server-Hello
模型上下文协议的Hello-World服务器
3 years
Works with Finder
1
Github Watches
1
Github Forks
3
Github Stars
MCP Rust CLI server template
Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
mcp-rs-template is a simple application template that demonstrates how to implement MCP CLI server in Rust.
How to use template?
- Clone the repository
- Modify project information in
Cargo.toml
andsrc/mcp/mod.rs
- Modify server handlers:
-
src/mcp/prompts.rs
: prompts handlers -
src/mcp/resources.rs
: resources handlers -
src/mcp/tools.rs
: tools handlers
-
- Modify
src/mcp/templates/*.json
if you prefer to use json files for prompts, resources, and tools
mcp-rs-template is based on rust-rpc-router, a JSON-RPC routing library for Rust.
CLI options
-
--mcp
: Enable MCP server -
--resources
: display resources -
--prompts
: display prompts -
--tools
: display tools
How to use MCP CLI server in Claude Desktop?
- Edit
claude_desktop_config.json
: Claude Desktop ->Settings
->Developer
->Edit Config
- Add the following configuration to the
servers
section:
{
"mcpServers": {
"current-time": {
"command": "mcp-rs-template",
"args": [
"--mcp"
],
"env": {
"API_KEY": "xxxx"
}
}
}
}
If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
.
References
- MCP Specification: https://spec.modelcontextprotocol.io/
- Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction
- rpc-router: json-rpc routing library - https://github.com/jeremychone/rust-rpc-router/
- Zed context_server: https://github.com/zed-industries/zed/tree/main/crates/context_server
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Professional Flask/SQLAlchemy code guide. Follow: https://x.com/navid_re
Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven
Reviews

user_Qgm2fFXq
I recently started using the Maestro MCP Server and can't praise it enough. The server is robust and efficient, perfectly catering to my needs. Maestro-org has really created a powerful tool for managing and optimizing applications. The integration is seamless and the performance is top-notch. If you're looking for a reliable MCP server, I highly recommend checking it out at https://mcp.so/server/maestro-mcp/maestro-org.