You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2515a0b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(everything): keep server instructions in step with capability-gated tools
The instructions string is read once in the server factory and handed to
the McpServer constructor, before oninitialized runs and client
capabilities are known, so every client receives the same text. Six of
the server's tools are registered only when the client declared a
matching capability, and the instructions referred to three of them --
two as unconditional imperatives. A client that declares no capabilities
gets 13 tools in tools/list and none of the six, so an agent following
the instructions calls a tool that is not in its catalog.
Document the gated set and the capability each one needs, qualify the
remaining references, and add two tests that derive the gated set from
registerConditionalTools so the document cannot drift from it again.
Copy file name to clipboardExpand all lines: src/everything/docs/instructions.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Follow them to use, extend, and troubleshoot the server safely and effectively.
5
5
6
6
## Cross-Feature Relationships
7
7
8
-
-Use`get-roots-list` to see client workspace roots before file operations
8
+
-If`get-roots-list` is in your tool list, use it to see client workspace roots before file operations
9
9
-`gzip-file-as-resource` creates session-scoped resources accessible only during the current session
10
10
- Enable `toggle-simulated-logging` before debugging to see server log messages
11
11
- Enable `toggle-subscriber-updates` to receive periodic resource update notifications
@@ -14,14 +14,31 @@ Follow them to use, extend, and troubleshoot the server safely and effectively.
14
14
15
15
-`gzip-file-as-resource`: Max fetch size controlled by `GZIP_MAX_FETCH_SIZE` (default 10MB), timeout by `GZIP_MAX_FETCH_TIME_MILLIS` (default 30s), allowed domains by `GZIP_ALLOWED_DOMAINS`
16
16
- Session resources are ephemeral and lost when the session ends
0 commit comments