Repository navigation
Open
Labels
Milestone
Description
Summary
Six fixes correct the MCP docs and context7.json where they disagree with the shipped code. The code is right in each case.
Parent: #230.
Fixes
- Heading-level rule, half stated.
docs/mcp/reference.md:86says a new heading must be "deeper than the section heading".apps/hocuspocus.server/API.md:1052says a heading "at or above the target heading's level is refused". Neither names the next-heading limit.- The code also refuses a heading shallower than the next heading:
apps/hocuspocus.server/src/modules/document-content/domain/sections.ts:59. The tool description (modules/mcp/tools/documentTools.ts:360) andCHANGELOG.md:33-35already say so. - Fix,
docs/mcp/reference.md:86: "- A new heading must be deeper than the section heading and no shallower than the next heading, and it can go only at the end of the section. Anywhere else, it would move the blocks after it into a new subsection." - Fix,
API.md:1052: "- Inedit_blocks, a heading at or above the target heading's level is refused, and so is a heading above the next heading's level. Either would move the following subsections under a new parent. A deeper heading may go only at the end of the section; anywhere else it would move the blocks after it into a new subsection."
- Server instructions, under-described.
API.md:1068says the instructions name onlycreate_document.docs/mcp/reference.md:95also leaves outread_document.INSTRUCTIONSinmodules/mcp/http/serverFactory.ts:12namescreate_document,read_document,replace_textandedit_blocks.- Fix,
API.md:1068: replace "They namecreate_documentfor a new document." with "They namecreate_documentfor a new document. To change one, they nameread_documentfirst, thenreplace_textandedit_blocks." - Fix,
docs/mcp/reference.md:95: replace "To change one, they namereplace_textandedit_blocks." with "To change one, they nameread_documentfirst, thenreplace_textandedit_blocks."
- Garbled CHANGELOG list.
-
apps/hocuspocus.server/CHANGELOG.md:36-38reads "inside one paragraph, never the name of an attached file, list item or table cell". It seems to sayreplace_textnever edits list items or table cells. -
The code allows both (
documentTools.ts:441). -
Fix: the entry is under
[Unreleased], so edit it in place. Lines 36-38 become:`replace_text` changes one exact piece of text inside one paragraph, list item or table cell, never the name of an attached file, and keeps its formatting. Neither touches the
-
- Wrong confirm label.
docs/mcp/README.md:122says "Choose Disconnect again to confirm".- The confirm button reads "Disconnect app" (
apps/webapp/src/components/settings/openDisconnectAppConfirm.tsx:12). - Fix: "Choose Disconnect app to confirm."
ALLOWED_ORIGINSand the MCP Origin gate.apps/hocuspocus.server/ENV.md:60says "In production, falls back to[APP_URL]when empty. Dev allows any origin." Both hold for CORS only.- The fallback applies in every environment (
src/config/env.ts:84). The/api/mcpOrigin gate uses the list in every environment too (src/index.ts:137,modules/mcp/http/controller.ts:37-44). So a browser-based MCP client gets403in dev unless its origin is listed.API.md:1023is already correct. - Fix: the Notes cell becomes "CORS allowlist and the
/api/mcpOrigin gate list. When empty, it falls back to[APP_URL]. CORS ignores the list in dev and allows any origin. The Origin gate uses it in every environment, dev included."
context7.json:44is out of date.- It tells AI assistants: "docs.plus has no AI features, no tracked changes and no page layout. Do not generate examples implying any of them exist." The MCP connector now lets AI apps read and edit documents.
- Maintainer ruling, 2026-10-07: "docs.plus has no AI model inside the editor, no tracked changes and no page layout. AI apps such as Claude and ChatGPT connect through the docs.plus MCP connector (see docs/mcp). Do not generate examples implying an in-editor AI, tracked changes or page layout."
- Write the ruled text as two
rulesitems, with the ruled words in the ruled order. Context7 caps each item at 255 characters (AGENTS.md:384), and the ruled text is 261 as one item. A longer item fails the claim.- Item 1 (178 characters): "docs.plus has no AI model inside the editor, no tracked changes and no page layout. AI apps such as Claude and ChatGPT connect through the docs.plus MCP connector (see docs/mcp)."
- Item 2 (82 characters): "Do not generate examples implying an in-editor AI, tracked changes or page layout."
Out of scope
PUBLIC_RESTAPI_URLandAPP_URLfor self-hosters: Tell self-hosters to set APP_URL, because email and connected-app links use it #337.- The Supabase gate wording in
docs/mcp/reference.md:26: Confirm the password-token hook is on, and correct the connected-app docs #441.
Acceptance criteria
-
docs/mcp/reference.md:86andAPI.md:1052state the next-heading limit. -
docs/mcp/reference.md:95andAPI.md:1068namecreate_document,read_document,replace_textandedit_blocks. - The
[Unreleased]entry inapps/hocuspocus.server/CHANGELOG.mdsaysreplace_textworks in a paragraph, list item or table cell. -
docs/mcp/README.mdnames the confirm button Disconnect app. - The
ALLOWED_ORIGINSrow inENV.mdsays the[APP_URL]fallback holds everywhere, and the/api/mcpOrigin gate uses the list in dev too. -
context7.jsoncarries the ruled text as tworulesitems, and norulesitem is longer than 255 characters.
Verify
- From the repo root,
grep -rn "deeper than the section heading,\|Disconnect\*\* again\|Dev allows any origin\|no AI features" docs apps/hocuspocus.server/*.md context7.jsonprints nothing. Onmainit prints the four lines that fixes 1, 4, 5 and 6 change. bun -e "console.log(Math.max(...require('./context7.json').rules.map(r => r.length)))"prints 255 or less.- After the merge, the maintainer presses Refresh at https://context7.com/docs-plus/docs.plus. Context7 does not re-crawl on push.
Activity
HMarzban commentedon Oct 15, 2026
Related issues
API.md:1052with "section" and "subsection". Name the two section rules apart in API.md #234 reserves "section" for the any-level rule, so the new words must follow its names.Cross-link review, 2026-10-15. Generated by Claude Code
HMarzban commentedon Nov 23, 2026
Three additional MCP doc/manifest drifts found on
mainthat fit cleanly alongside the six items here (filed as a note rather than opening a duplicate issue):docs/mcp/reference.md:59says "The server has 10 tools." directly above the 12-row table (the server registers 12 tools: 9 indocumentTools.ts+ 3 inchatTools.ts).apps/hocuspocus.server/API.md:1100also still says "all ten tools".docs/mcp/reference.md:43says "The metadata sits under/api/mcp, not at the site root, because only/apiand/healthare routed publicly.", contradicting line 41 of the same file anddocker-compose.prod.yml:240(rest-api-wellknown, shipped in Serve the MCP resource metadata at the standard well-known URLs #550).apps/hocuspocus.server/server.json:6-7hardcodes"version": "1.0.0"and"websiteUrl": "https://docs.plus/mcp", whereasserverFactory.tsadvertisespkg.version(2.3.6) anddeps.appUrl(https://docs.plus).