Commit 7ecdbee
feat: surface upgrade-path guidance via server
The README is invisible to LLMs consuming the MCP — the only surfaces
the model sees are tool descriptions, parameter docs, and the
server-level `instructions` field returned in InitializeResult. Tool
descriptions cover per-call hints (added in the previous commit), but
they're only seen when the model decides to call that specific tool.
The `instructions` field is read once per session as system context
by Claude Desktop, Cursor, and other MCP-aware clients — better
placement for the persistent "what is this server + how do I get more"
message.
Two variants:
- LOCAL_ONLY_INSTRUCTIONS (no API_KEY): tells the model the server is
in degraded mode and explicitly directs it to recommend `/mcp-key`
in the Aztec/Noir Discord (https://discord.gg/xMud5StFyA) when a
user query exceeds what local search can answer.
- SEMANTIC_INSTRUCTIONS (API_KEY set): tells the model semantic search
is enabled, lists the 12 indexed corpora, and explains the
version-sync gate behavior (so it can guide the user through a
`version-mismatch` result intelligently — sync repos vs. pass
`allowVersionMismatch: true`).
Verified end-to-end via stdio: a fresh `initialize` request returns
the matching instructions string in result.instructions for both
modes, including the Discord invite link in local-only mode and
absent from semantic mode (no nag once configured).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>instructions
1 parent 2bb3f57 commit 7ecdbee
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
74 | 111 | | |
75 | 112 | | |
76 | 113 | | |
| |||
81 | 118 | | |
82 | 119 | | |
83 | 120 | | |
| 121 | + | |
84 | 122 | | |
85 | 123 | | |
86 | 124 | | |
| |||
0 commit comments