Repository navigation
docs: fix README claims that STATIC mode shares one server - #41
Conversation
Since 0.7.0 every client gets its own server in STATIC mode, and the session context (?config=) reaches module loaders there too. Four README passages still said a single server is reused. Also state the Node.js requirement and the client package the client snippets import. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VmUXGTDh1pKwGG2DQ5Vcwc
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VmUXGTDh1pKwGG2DQ5Vcwc
TS review:
|
| # | Sev | Location | Finding |
|---|---|---|---|
| 1 | MEDIUM | README.md:913 |
options.context notes still say STATIC loaders run at startup with the same context; this contradicts the new line at 956 |
| 2 | LOW | README.md:824 |
Module loader "When called" row omits the per-client run in STATIC mode |
| 3 | LOW | README.md:70-75 |
"Server preloads named toolsets at startup" no longer says each client has its own server (not wrong) |
| 4 | LOW (info) | README.md:804 |
In STATIC mode /tools comes from the base orchestrator and base context, so it can differ from one client's view |
{
"recommendation": "COMMENT",
"summary": "README-only change is accurate against createBundleFactory, AGENTS.md, CHANGELOG 0.7.0 and engines, but leaves a stale STATIC loader claim at README.md:913 and an incomplete row at 824.",
"findings": [
{"severity": "MEDIUM", "file": "README.md", "line": 913, "issue": "options.context notes still say STATIC loaders are invoked at startup with the same context"},
{"severity": "LOW", "file": "README.md", "line": 824, "issue": "Module loader 'When called' row omits per-client invocation in STATIC mode"},
{"severity": "LOW", "file": "README.md", "line": 75, "issue": "Typical flows does not mention per-client servers (optional)"},
{"severity": "LOW", "file": "README.md", "line": 804, "issue": "/tools in STATIC mode reflects the base orchestrator (optional note)"}
]
}Generated by Claude Code
Fix mapping for the TS review above
Re-running the reviewer next. Generated by Claude Code |
TS re-review:
|
Requested by Ben · project thread
Summary
README fixes for people who use toolception. I read the README against the 0.9.0 code and CHANGELOG. The SDK v2 and Zod 4 parts are already correct; what was stale is older: four passages still say STATIC mode creates one server and reuses it for all clients. That stopped being true in 0.7.0 (#27: every client gets its own
McpServerand orchestrator, and?config=session context reaches module loaders in STATIC mode).Static startup,createMcpServerrequirements, thestartup modeslist: now say each client gets its own server with the startup toolsets loaded. The requirements section also explains the base servercreateServerbuilds at startup (the handle'sserver), so people register prompts, resources and extra tools insidecreateServer, per the 0.7.0 migration note.options.sessionContextnotes: said it only applies to DYNAMIC mode; it applies to both.engines), and the client snippets now say to install@modelcontextprotocol/client.Docs only: no source, test or CHANGELOG change, so no release is needed. The
AGENTS.mdintent layer (for examplesrc/core/AGENTS.mdstill mentions the old SDK package) is for the intent-layer work, not this PR.Base and merge order
Base:
main. Nothing is stacked on it and it can merge at any time.Verification
Each changed claim checked against
src/server/createMcpServer.ts(createBundleFactory),src/server/AGENTS.mdand the 0.7.0 CHANGELOG entry.Generated by Claude Code