GitHub Stars
80
User Rating
Not Rated
Favorites
0
Views
42
Forks
9
Issues
0
Installation
Difficulty
BeginnerEstimated Time
5-10 minutes
Installation
Installation
Prerequisites
Please specify required software and versions:Rust: 1.50.0 or higher
Installation Steps
1. Clone Repository
bash
git clone https://github.com/linux-china/mcp-rs-template
cd mcp-rs-template
2. Modify Project Information
EditCargo.toml and src/mcp/mod.rs as needed.
3. Modify Server Handlers
Edit the following files:src/mcp/prompts.rs: prompts handlerssrc/mcp/resources.rs: resources handlerssrc/mcp/tools.rs: tools handlers4. Modify JSON Files
Edit JSON files for prompts, resources, and tools insrc/mcp/templates/*.json.
5. Start Server
bash
cargo run -- --mcp
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Rust version and reinstall dependencies.Additional Resources
Author Information
2,159
Followers
566
Repositories
44
Gists
0
Total Contributions