mcp-rune 0.107.0
Be star #1 Get started
DOCS v0.107.0 · synced with main

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.

49
guides
all of docs/guides
12
sections
balance 3·5·3·4·6·1·1·4·7
2
quickstarts
a 2-part tutorial
Spot what you can extend Extensible
The plug mark flags guides with an extension point — a place to drop in your own plugin, hook, strategy or override. 22 of 49 guides expose one.
VI. SECTION

The Three Layers Up Close

6 EXTENSIBLE 9 GUIDES

Part 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.

§ 01 Data layer Extensible Implement a custom DataLayer The per-request backend I/O seam. Built-in implementations (in-memory stub, ModelService, SearchEnabledDataLayer). When to swap. adapterdata new 6 min § 02 Model service The default DataLayer adapter. How ModelService composes EndpointResolver + ApiClient + convention to route every CRUD call. adapterdata new 7 min § 03 API configuration Extensible Custom actions on a model API The static api block: endpoint, convention, namespace, readOnly, custom actions, and compound IDs — the declaration ModelService, ApiClient, and conventions all read from. modelshttp live 12 min § 04 API client Extensible Implement a custom ApiClient Universal CRUD HTTP contract ModelService depends on. Override when axios isn't enough or you need custom retry/auth/telemetry. adapterhttp live 7 min § 05 API convention Extensible Implement a custom API convention Wire-format shape: payload wrapping, association ID translation, response unwrapping. Default moved BaseModel → DataLayer in v0.85.0. adapterwire live 8 min § 06 Search request shaper Extensible Implement a custom search request shaper Translate { query, filters, page, perPage } into your API's request shape — Ransack, Elasticsearch DSL, JSON:API. Renamed from SearchAdapter in v0.77.0. adaptersearch live 6 min § 07 Search filters Extensible Register custom filter types The typed filter contract the shaper consumes — text · enum · relation · date_range · integer_range. Both sides of an integration. search live 11 min § 08 Model layer The synchronous, per-model-bound interface: model + resolveDerivedFields. Kinds are shared vocabulary read beside it. No I/O. architecturecore new 5 min § 09 Analysis layer The per-model-bound, per-request interface. extractEdges, buildEmbeddingText, walkHops. The substrate Part III's analysis tools call into. architectureanalysis new 5 min
IX. SECTION

Retrieval & GraphRAG

1 EXTENSIBLE 6 GUIDES

mcp-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.

X. SECTION

Extensions

6 EXTENSIBLE 7 GUIDES

Add 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.

§ 01 Extensions overview Tour the seams: convention, client, data layer, search shaper, and the three extension shapes. overview live 3 min § 02 Extension recipes Extensible Recipes — start here to pick the right extension surface Inverse map — "I want to do X, which seam does that?" Copy-pasteable starting points for the common extension patterns. extensionscookbook live 9 min § 03 Authoring extensions Extensible Walk through writing an extension end to end End-to-end walkthrough of writing an extension from scratch. Pick HttpExtension or ToolFlowExtension based on lifetime. extensionsauthoring live 7 min § 04 API extensions Extensible Author API extensions — tools + DataLayer methods Contribute MCP tools and DataLayer mixin methods beyond pure CRUD — custom verbs, search subsystems, bulk operations, RPC. extensionsapi live 7 min § 05 Tool-flow extensions Extensible Author tool-flow extensions Sibling to HttpExtension: modify the MCP tool surface and the runtime context threaded into app tool handlers. extensionstools live 7 min § 06 HTTP extensions Extensible Author HTTP extensions (routes + middleware) Opt-in HTTP extensions add routes and middleware on top of the framework's OAuth, status, and MCP transport endpoints. extensionshttp live 4 min § 07 Writing a custom MCP app Extensible Write a custom MCP app Build an additional MCP app: kind taxonomy, formatter registry, form-schema generator, selection store, theming. appsauthoring live 7 min
+
Something missing?
Every guide lives next to the code that implements it. Open a PR against docs/guides/ — or file an RFC if you'd like the framework to grow.
Open RFC Edit on GitHub