Context layer
v1.5StableModel Context Protocol
Structured context interfaces for optimal model comprehension.
- Rust
- TypeScript
- Python
import { server, resource } from "@legionedge/mcp";
const docs = resource("docs", { schema: DocSchema });
server({ resources: [docs] })
.tool("search", SearchInput, async (q) => index.query(q))
.listen();
- Version
- v1.5
- Status
- Stable
- License
- Open specification
- Implementations
- Rust · TypeScript · Python
- Stack layer
- Context
What the spec defines
The guarantees, not the vibes.
The Model Context Protocol defines structured interfaces for feeding context to language models: typed resources, tool definitions, and prompt templates that models comprehend reliably, replacing the ad-hoc string concatenation that most applications still ship.
Structure pays twice. Models read validated, predictable context more reliably — and applications stop re-sending boilerplate every turn. Our field study of production MCP traffic found tool-definition overhead and redundant re-sends were two of the three largest sources of context waste; declare-once semantics remove both.
Tavoc's context assembly is built on the protocol end to end: scoped repository views arrive as typed resources, tools are declared at session start, and every context decision is inspectable in the session log.
Implementations are available for Rust, TypeScript, and Python, all conformance-tested against the same spec suite. The spec and the field-study data behind its design decisions are in the research registry.
Proven in production