KeiSeiKit-1.0/_primitives/_rust/kei-mcp/src/lib.rs
Parfii-bot 0be354a920 KeiSeiKit-public — clean state
Single-commit clean baseline after security scrub of niche-tells,
project codenames, internal jargon, and contributor-email leaks.

Contents:
- 100 Rust crates (_primitives/_rust/)
- 37 agent manifests (_manifests/) + generated specs (_generated/)
- 67 user-invocable skills (skills/)
- 33 hooks (hooks/)
- Composition blocks (_blocks/)
- Documentation (docs/, README.md)
- TS adapter packages (_ts_packages/)
- Assembler (_assembler/)
- Roles (_roles/)
- Templates (_templates/)
- Forgejo CI (.forgejo/)

Author: Denis Parfionovich <info@greendragon.info>

License: see LICENSE.
2026-05-01 12:09:03 +08:00

17 lines
656 B
Rust

//! kei-mcp — Model Context Protocol server.
//!
//! Exposes the atom registry (and skills as resources) over stdio JSON-RPC,
//! per the MCP spec at <https://modelcontextprotocol.io/>. JSON-RPC 2.0,
//! line-delimited, one request → one response. Stateless beyond the
//! `initialize` handshake.
//!
//! Library shape exists so integration tests can drive `dispatch` directly
//! without spawning the binary.
pub mod framing;
pub mod handlers;
pub mod protocol;
pub use framing::{read_capped_line, ReadOutcome, MAX_MESSAGE_BYTES};
pub use handlers::dispatch;
pub use protocol::{JsonRpcError, JsonRpcRequest, JsonRpcResponse, Method, ServerContext};