Mcp_rs

by inomata137

127 downloads
Not rated
GitHub

About

Mcprs is a Rust-based implementation of an MCP (Model Context Protocol) server, structured as a Cargo workspace. It provides modular components for JSON-RPC 2.0 handling, domain entities, protocol usecases, resource and tool implementations, and stdio transport. It is intended…

Details

Author
inomata137
Downloads
127
Categories
Other

- Modular workspace with separate controller, domain, and protocol crates
- JSON-RPC 2.0 specification implementation
- Stdin/stdout (stdio) transport for communication
- Resource and tool implementations based on domain entities
- Repository traits for data access abstraction

Run the server using the command bunx @modelcontextprotocol/inspector cargo run -qr in the project directory.

mcp_rs

article

Rustで自作MCPサーバー

usage

bunx @modelcontextprotocol/inspector cargo run -qr

architecture

workspace members

| name | description | | - | - | | controller | method-handler mapping | | domain | core entities and repository traits | | jsonrpc | JSON-RPC 2.0 definition | | protocol | usecase definitions | | resources | resources implementation | | tools | tools implementation | | transport | stdio implementation |

dependency graph

graph TB
    transport --> jsonrpc
    controller --> jsonrpc
    controller --> protocol
    protocol --> jsonrpc
    protocol --> domain
    resources --> domain
    tools --> domain
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.