Repository navigation
Description
Goal
A person inside Claude or ChatGPT connects to docs.plus. They sign in as themselves and work with their own documents and heading chats.
Milestone: v2.4.0. Most open rows sit there. The v2.3.6 rows (#726, #455) carry their own before and after.
Benchmark
This tracker holds no speed number of its own. Its children carry them. Ledger checked on 2026-11-11 at 0b302b222.
| Child | Metric | Before | After | Status |
|---|---|---|---|---|
| #726 | MCP block-write time on a pad of about 3 MiB: p50 and p95 per write, cold and held modes, median and range of 5 runs |
not measured yet: the #726 builder runs apps/hocuspocus.server/scripts/bench-content-write.ts before any #726 change |
not measured yet | Open, v2.3.6 |
| #455 | MCP fault rate: (tool-error + error) / all calls, from GET /api/admin/mcp/usage?days=35 |
not measured yet: the maintainer reads it on the day #455 starts | not measured yet | Open, v2.3.6 |
| this tracker | Tools listed by tools/list (exact) |
12 on 2026-11-11 at 0b302b222 (count of registerTool calls in apps/hocuspocus.server/src/modules/mcp/tools) |
not applicable | Reference count |
| #232, #237 | Calls per outcome (ok, rate-limited, tool-error, error) and distinct callers, from GET /api/admin/mcp/usage?days=35 |
not measured yet: the maintainer posts totals only, with the date and the deploy commit | not applicable | Baseline for the §Held rulings |
How to run the #726 row, from apps/hocuspocus.server, on one named machine (model, OS, Bun version):
bun --env-file=../../.env.local scripts/bench-content-write.ts --mode cold --runs 5
bun --env-file=../../.env.local scripts/bench-content-write.ts --mode held --runs 5The bench defaults are --writes 92 --target-mib 3 --seed 726, on a local production-mode stack (2 WS, 2 workers, Redis on). Record the load average the bench logs, the date and the commit. Run the same two commands after each #726 step, on the same machine.
The #455 row reads again 35 days after its deploy. The usage keys expire after 35 days (MCP_USAGE_MAX_DAYS).
Claim, once #726 posts its After:
"An AI app edit on a 3 MiB docs.plus pad now lands in X ms (median of 5 runs, range A to B), down from Y ms."
Status
Live since 2026-09-28 at https://prodback.docs.plus/api/mcp. The server is stateless and builds one MCP server per request. It runs on @modelcontextprotocol/server 2.4.0, pinned exactly.
Twelve tools: find_documents, create_document, get_outline, read_document, append_to_document, edit_blocks, replace_text, move_block, rewrite_section, list_chat_rooms, read_chat_thread and post_chat_message. replace_section was removed. rewrite_section (#719) replaces one section body from Markdown. It keeps every media block by its number, and it refuses the write if a media block is missing.
Guide: docs/mcp/README.md. Reference: docs/mcp/reference.md and apps/hocuspocus.server/API.md §MCP connector.
Done
| Task | Issue | Shipped in |
|---|---|---|
| Turn on the Supabase OAuth server | #223 | 1b109b553, plus the production toggle |
Caller-side outline (get_outline) |
#224 | c68d53947 |
Consent page at /oauth/consent |
#225 | 98c2c488a, e752b15aa |
Stateless /api/mcp with the read tools |
#226 | c68d53947 |
| Tool errors name the field and a next step | #227 | c68d53947 |
| Chat tools | #228 | c68d53947 |
| Fix the lost content write, then the write tools | #229 | f2682d675, c68d53947 |
create_document |
none | 0dacee392 |
Usage counts and the admin /mcp page |
none | 89f3a6f8a, 331434e3d |
| Connected apps tab in Settings | none | 76cfed29e, bbcf499be, 0549f0fd5 |
| Reach Claude Code as well (ruled yes: same connector, no proxy) | #231 | Closed 2026-10-07 |
| Correct three stale API documentation claims | #235 | Closed 2026-10-19 |
| Return the document and chat text where Claude Code reads it | #456 | Closed 2026-10-15 |
| Put document and heading titles inside the data frame | #457 | Closed 2026-10-15 |
| Public docs.plus/mcp page | #458 | Closed 2026-10-20 |
| Terminal agent grid and more one-click AI apps | #548 | Closed 2026-10-20 |
| Setup steps for seven more AI apps | #549 | Closed 2026-10-20 |
| Resource metadata at the standard well-known URLs | #550 | Closed 2026-10-20 |
| Rate-limit MCP per person, not per address | #551 | Closed 2026-10-20 |
| Store links from Markdown import and connected-app writes on the hyperlink mark | #335 | Closed 2026-11-03 |
rewrite_section keeps media in place |
#719 | Closed 2026-11-09 |
move_block moves a media block inside a section |
#720 | Closed 2026-11-09 |
Next
| Task | Issue | Milestone | Owner |
|---|---|---|---|
Speed up MCP writes on large pads, bench apps/hocuspocus.server/scripts/bench-content-write.ts |
#726 | v2.3.6 | agent in the repo |
| Count MCP faults as failures | #455 | v2.3.6 | agent in the repo; maintainer reads the usage route |
| Test the connector in claude.ai, ChatGPT and Claude Code, then finish the guide | #357 | v2.4.0 | maintainer |
| Connected-app rows in #328: #336, #337, #343, #344, #345 and #381 | #328 | v2.4.0 | agent in the repo |
| Gated rows in #328: #351 and #352 | #328 | v2.4.0 | agent in the repo, after the maintainer rules the gate |
| Ruling: wait on a burst of writes instead of failing busy | #360 | v2.4.0 | maintainer |
#329 is done: positioned edits shipped, and a connected app can no longer remove media.
Held, needs a ruling
The evidence is the admin /mcp usage page, not argument.
Baseline: the maintainer reads GET /api/admin/mcp/usage?days=35. Post totals only: calls per outcome (ok, rate-limited, tool-error, error) and distinct callers, with the date and the deploy commit.
| Decision | Issue | Answer after | Owner |
|---|---|---|---|
| Submit to the Anthropic directory | #232 | Real usage on /mcp |
maintainer |
| Ship a UI widget, or stay text-only | #237 | A text tool that people find awkward. A diff view belongs to #352 | maintainer |
Alongside, not blocking
| Task | Issue | Owner |
|---|---|---|
Name the two section rules apart in API.md |
#234 | agent in the repo |
| Let the dev compose file scale rest-api (only if someone needs it) | #236 | agent in the repo |
| Mention-driven demo agent in document-swarm | #233 | agent in the repo |
Shipped rules
- A connected app writes and posts only in documents the caller owns. Maintainer ruling, 2026-09-23.
- Trust follows the exact redirect URI (
apps/webapp/src/utils/appTrust.ts), never the client name. - The connector asks for
openid,emailandprofileonly (0c2145dfc). - A connected-app token is refused outside
/api/mcp(e4113fd9d,24a4f68c2). - A chat post removes every
@, so it sends no notification. - A read stops at 100,000 characters (
MAX_READ_CHARS) and says so.
Do not build
- A credential table with a
scopescolumn. Supabase supports five fixed scopes, and OAuth scopes do not control table access. - A separate MCP service that calls the REST API. That is token passthrough.
- An adapter package.
createMcpHandlerin@modelcontextprotocol/serveralready takes a web-standardRequest. - A stdio transport. The custom-connector dialogs accept a remote server URL only.
- Any tool that answers without a login.
- A proxy authorization provider for Claude Code. RFC: should the MCP connector reach Claude Code as well? #231 ruled on 2026-10-07 that Claude Code uses the same connector, with no proxy. Build one only if the Test the MCP connector in three AI apps, then finish its connect guide #357 Claude Code run fails and a new ruling asks for it.
Known gap
The server cannot check RFC 8707 audience today. Supabase always sets aud to authenticated and does not put the resource into the token (supabase/auth#2610). So the server requires the client_id claim, which only the OAuth flow mints. Check again when supabase/auth#2610 ships.
New issues from the 2026-10-07 review
- MCP connector: Count MCP connector faults as failures and log MCP transport errors #455 (count faults, log transport errors) · Return the document and chat text where Claude Code reads it #456 (Claude Code reads the text, closed) · Put document and heading titles inside the data frame in every MCP read #457 (frame titles, closed) · Stop advertising tools.listChanged on the MCP connector #460 (
listChanged) · Correct six MCP doc errors that disagree with the code #461 (doc errors) · Say when an MCP read leaves content out #380 (say when a read is cut, rewritten). - Discovery: Add a public docs.plus/mcp page so web search finds the MCP connector #458 (public docs.plus/mcp page, closed) · Publish docs.plus to the official MCP Registry #459 (MCP Registry entry).
- WebMCP: Revisit in-page WebMCP tools for browser agents in January 2027 #462 (revisit in January 2027).
Activity
feat(hocuspocus): add the MCP connector at /api/mcp
feat(hocuspocus): count MCP tool calls per day
feat(webapp): add a Connected apps settings tab
docs: document connecting AI apps to docs.plus
feat(hocuspocus): let AI apps edit at a position, not replace a section
HMarzban commentedon Oct 20, 2026
Wider AI app support, 2026-10-20
Research covered about 60 AI apps. Nearly every serious agent falls back to DCR, so most can reach docs.plus today. The open risk is the redirect-URI shapes the sign-in server accepts, and #357 Step 0 checks that first.
New rows, all in milestone v2.2.0:
Also updated: #357 (new apps to test), #459 (
server.jsonand server icon built).Notes from the research:
HMarzban commentedon Nov 11, 2026
Moved to v2.4.0, 2026-11-11
Maintainer ruling, 2026-11-11: this tracker moves to milestone v2.4.0. It came into v2.3.6 in a bulk move on 2026-11-09, with no reason given.
Why: 14 of its open rows sit in v2.4.0 (#232, #237, #336, #343, #344, #345, #351, #352, #357, #360, #380, #381, #460, #461). Only two rows sit in v2.3.6: #726 and #455. They stay there, and each one carries its own before and after.
Body changes, checked at
0b302b222:@modelcontextprotocol/server2.4.0, and twelve tools, withmove_block(Let the MCP tools move a media block inside a section #720) andrewrite_section(Let MCP edit_blocks rewrite a section's text and keep its media in place #719).HMarzban commentedon Nov 23, 2026
2026-11-23 MCP & browser-agent review (milestone
v2.3.8)New MCP child issues filed after code audit and adviser review (deduplicated against #380, #381, #455, #459, #460, #461, #462, #695, #723, #726, #754, #797):
grantRedirectsconcurrency cap (P0 security; HITL Cursor loopback confirmation)subscriptions/listen,close()on shutdown, fix 403/413 bypass & Auth 503 shared-IP lockoutreplace_textunescaping/\n, nested#headings, media-freeplanRewrite, H6 error, empty-doc append race, WS413mapping)[upload in progress], imagealt,[file]), Open-document / Private-oracle errors, and protocol metadata (outputSchema, CORS,Bearer,move_blockhint)create_documentcreate Invite only (private: true) documents with fail-closed Make a Private document's chat readable and writable only by its owner #396document_accessmirrorAlso appended 3 remaining MCP doc/
server.jsondrifts to #461, and filed 6 companion webapp/browser-agent issues inv2.3.8(#817–#822).