Skip to main content
Glama
context-router-daemon

context-router-daemon

by teootoledo

@teootoledo/context-router-daemon

A local MCP server that runs on a developer's machine and owns all filesystem access for the context-router system. It exposes a bulk_read_files tool to a coding agent: the agent asks for a batch of files by path and a query, the daemon reads their content off disk and forwards it to a remote context-router-backend instance, which condenses it into a short summary via a worker LLM. Raw file content never enters the calling agent's own context window — only the summary does.

This repo also owns the benchmark that measures the actual token savings of that round-trip against a real backend.

Install & run

npm install
npm start          # runs the MCP server over stdio
npm test           # tsx --test test/*.test.ts
npm run bench      # measures token savings against a running backend

Depends on @teootoledo/context-router-contract — see that repo for what it defines and why.

Node 22+. TypeScript runs through tsx, never node --experimental-strip-types — no Jest, no Vitest, no build step.

Known limitation: the package's bin entry points at raw TypeScript with no shebang, so npx @teootoledo/context-router-daemon does not yet work as a direct executable — use npm start for now. Supporting bare npx execution needs either a build step or a compiled shim, both a deliberate non-goal while this project stays tsx-only.

Related MCP server: HTTP Client MCP Server

Contributing

See CONTRIBUTING.md.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers