Construction mode hides pages from Markdown, MCP and search; MCP rejects non-object messages
createContentHelpers exposes isPathVisible (built from getConstructionMode) and passes it to markdownRoute and mcpPOST; createSearchRoute, createMcpRoute and createMarkdownRoute accept it. A null/number/string JSON-RPC message now gets -32600 instead of crashing the route. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9a72ebfaff
commit
7c05a1dba9
+2
-1
@@ -85,6 +85,7 @@ wykona `initialize` → `tools/list` → i będzie mógł wołać `get_site_info
|
||||
|
||||
Pojedynczy obiekt JSON-RPC albo batch (tablica). Notyfikacje (`notifications/*`,
|
||||
bez `id`) → HTTP 202 bez ciała. Żądania → `{ jsonrpc:'2.0', id, result }` albo
|
||||
`error` (`-32601` nieznana metoda, `-32700` parse error, `-32600` batch za duży,
|
||||
`error` (`-32601` nieznana metoda, `-32700` parse error, `-32600` batch za duży albo wiadomość,
|
||||
która nie jest obiektem — `null`, liczba, tekst;
|
||||
`-32000` limit zapytań). `initialize` odbija
|
||||
`protocolVersion` klienta (fallback `2025-06-18`).
|
||||
|
||||
Reference in New Issue
Block a user