{"id":23479548,"url":"https://github.com/linux-china/mcp-rs-template","last_synced_at":"2025-04-10T20:44:31.246Z","repository":{"id":265838584,"uuid":"896423086","full_name":"linux-china/mcp-rs-template","owner":"linux-china","description":"Model Context Protocol (MCP) CLI server template for Rust","archived":false,"fork":false,"pushed_at":"2025-02-04T05:02:38.000Z","size":15,"stargazers_count":65,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T15:44:29.289Z","etag":null,"topics":["json-rpc","mcp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linux-china.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-30T10:21:20.000Z","updated_at":"2025-04-10T01:54:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"dae034d0-2858-4e9c-89d6-b18597d9f06b","html_url":"https://github.com/linux-china/mcp-rs-template","commit_stats":null,"previous_names":["linux-china/mcp-rs-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmcp-rs-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmcp-rs-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmcp-rs-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linux-china%2Fmcp-rs-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linux-china","download_url":"https://codeload.github.com/linux-china/mcp-rs-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248294484,"owners_count":21079897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json-rpc","mcp"],"created_at":"2024-12-24T19:30:13.082Z","updated_at":"2025-04-10T20:44:31.225Z","avatar_url":"https://github.com/linux-china.png","language":"Rust","funding_links":[],"categories":["📚 Projects (1974 total)","Frameworks","フレームワーク","Language-Specific SDKs","SDKs","框架","🔧 Utilities","Table of Contents"],"sub_categories":["MCP Servers","🛠️ \u003ca name=\"other-tools-and-integrations\"\u003e\u003c/a\u003eOther Tools and Integrations","🎧 \u003ca name=\"text-to-speech\"\u003e\u003c/a\u003eテキスト読み上げ","Frameworks","Rust","Developer Tools"],"readme":"MCP Rust CLI server template\n=============================\n\nModel Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications\nand external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface,\nor creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.\n\nmcp-rs-template is a simple application template that demonstrates how to implement MCP CLI server in Rust.\n\n# How to use template?\n\n1. Clone the repository\n2. Modify project information in `Cargo.toml` and `src/mcp/mod.rs`\n3. Modify server handlers:\n    - `src/mcp/prompts.rs`: prompts handlers\n    - `src/mcp/resources.rs`: resources handlers\n    - `src/mcp/tools.rs`: tools handlers\n4. Modify `src/mcp/templates/*.json` if you prefer to use json files for prompts, resources, and tools\n\nmcp-rs-template is based on [rust-rpc-router](https://github.com/jeremychone/rust-rpc-router), a JSON-RPC routing\nlibrary for Rust.\n\n# CLI options\n\n* `--mcp`: Enable MCP server\n* `--resources`: display resources\n* `--prompts`: display prompts\n* `--tools`: display tools\n\n# How to use MCP CLI server in Claude Desktop?\n\n1. Edit `claude_desktop_config.json`: Claude Desktop -\u003e `Settings` -\u003e `Developer` -\u003e `Edit Config` \n2. Add the following configuration to the `servers` section:\n\n```json\n{\n   \"mcpServers\": {\n      \"current-time\": {\n         \"command\": \"mcp-rs-template\",\n         \"args\": [\n            \"--mcp\"\n         ],\n         \"env\": {\n            \"API_KEY\": \"xxxx\"\n         }\n      }\n   }\n}\n```\n\nIf you want to check MCP log, please use `tail -n 20 -f ~/Library/Logs/Claude/mcp*.log`.\n\n\n# References\n\n* MCP Specification: https://spec.modelcontextprotocol.io/\n* Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction\n* rpc-router: json-rpc routing library - https://github.com/jeremychone/rust-rpc-router/\n* Zed context_server: https://github.com/zed-industries/zed/tree/main/crates/context_server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fmcp-rs-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinux-china%2Fmcp-rs-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinux-china%2Fmcp-rs-template/lists"}