Skip to content

[Tracking] MCP connector: reach docs.plus from Claude and ChatGPT #230

Open

Description

@HMarzban

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 5

The 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, email and profile only (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 scopes column. 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. createMcpHandler in @modelcontextprotocol/server already takes a web-standard Request.
  • 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

Activity

  1. added
    enhancement
    on Sep 4, 2026
  2. HMarzban commented on Oct 20, 2026

    @HMarzban
    CollaboratorAuthor

    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:

    Task Issue State
    Terminal agent grid, LM Studio and Replit rows, three tabs #548 Built, not committed
    Guide steps for seven more AI apps, SDK version fix #549 Built, not committed
    Resource metadata at the standard well-known URLs #550 Ruling owed
    Rate-limit MCP per person, not per address #551 Ruling owed

    Also updated: #357 (new apps to test), #459 (server.json and server icon built).

    Notes from the research:

  3. added this to the v2.4.0 milestone on Oct 24, 2026
  4. modified the milestones: v2.4.0, v2.3.6 on Nov 9, 2026
  5. HMarzban commented on Nov 11, 2026

    @HMarzban
    CollaboratorAuthor

    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:

  6. modified the milestones: v2.3.6, v2.4.0 on Nov 11, 2026
  7. HMarzban commented on Nov 23, 2026

    @HMarzban
    CollaboratorAuthor

    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):

    Also appended 3 remaining MCP doc/server.json drifts to #461, and filed 6 companion webapp/browser-agent issues in v2.3.8 (#817–#822).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DevOpsFeatureenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions