The Guides.
Read the framework end to end, or jump to the part you need. Every guide is paired with runnable examples in TypeScript and JavaScript, and links straight to its source on GitHub.
About
2 GUIDESWhat mcp-rune is and the thinking behind it — start here if you want the why before the how.
Getting Started
2 GUIDESYour first day with mcp-rune — install, scaffold, and run a server end to end.
The Model
1 EXTENSIBLE 6 GUIDESThe Model is mcp-rune's single source of truth. This chapter teaches what a Model declaration is — attributes, kinds, associations, validation — and the definition-vs-consumption split the rest of the framework is built on.
The Prompt
2 EXTENSIBLE 4 GUIDESThe first thing that reads a Model. Where the Model defines the nouns, the Prompt defines the verbs of reasoning — how an LLM should think about and fill the form your Model implies.
Tools
2 EXTENSIBLE 4 GUIDESWhat executes against the Model. The three peer interfaces every tool consumes via DI, the 9 bundled polymorphic tools that serve every model uniformly, and the path to writing custom tools when a bespoke verb doesn't fit.
Apps
2 EXTENSIBLE 3 GUIDESWhere Tools serve the LLM, Apps serve the human. Schema-driven HTML interfaces that render inside MCP clients, consuming the same three layers Tools do plus a bidirectional iframe message protocol.
The Three Layers Up Close
6 EXTENSIBLE 9 GUIDESPart I taught Tools and Apps to call three injected layers without knowing how any of them are implemented. This is where you decide what's behind each interface — which adapter, which wire convention, which API client, which search shape.
Auth & Transport
2 GUIDESOAuth 2.0 the spec-compliant way — PRM, DCR, PKCE, resource indicators — plus the dual transport story (stdio for local, HTTP for multi-user) and the observability primitives built on top.
Domain Knowledge
2 EXTENSIBLE 2 GUIDESModels tell the framework about your data. Domain tells the framework about your business — the declarative layer of concepts, business rules, multi-step workflow definitions, and diagram templates the LLM can reach for.
Retrieval & GraphRAG
1 EXTENSIBLE 6 GUIDESmcp-rune's retrieval stack: records become vectors, a relationship graph, and domain-grounded memories you can query by meaning, aggregate, or stratified sample — map-reduce over thousands of rows without flooding the context window.
Extensions
6 EXTENSIBLE 7 GUIDESAdd new capability on top of the framework without forking — HTTP routes, tool-flow hooks, custom MCP apps, and DataLayer verbs beyond plain CRUD. The seams every chapter so far has been hinting at.
Reference
2 GUIDESAPI surface and configuration reference — subpath imports, database tables, and environment variables.
docs/guides/ — or file an RFC if you'd like the framework to grow.