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
docs: surface API-key path with Discord invite + recommend-to-user hints
- README: new "API Key (optional, recommended)" section with the Noir
Discord invite (https://discord.gg/xMud5StFyA) and step-by-step for
obtaining a key via `/mcp-key`. Configuration table now lists every
env var (API_KEY, API_URL, REQUEST_TIMEOUT, AZTEC_DEFAULT_VERSION,
AZTEC_MCP_REPOS_DIR). Added the missing `aztec_lookup_error` tool
section. `aztec_search_docs` parameters expanded to cover the new
semantic-only flags (chunks, useLocalFallback, allowVersionMismatch).
- Tool descriptions in src/index.ts (the text the LLM consuming the
MCP actually reads): when no API_KEY is configured, the descriptions
for `aztec_search_docs` and `aztec_lookup_error` now explicitly tell
the model that local-only mode is active AND instruct it to suggest
the user get a free API key via `/mcp-key` in the Aztec/Noir Discord
if a query exceeds what local search can answer. This makes the
upgrade path discoverable through normal model use, not just docs.
- Startup log when no API_KEY: was "code search only (set API_KEY for
docs)" — now names the Discord invite link so an operator running
with `--debug` or watching stderr immediately sees the path forward.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+51-7Lines changed: 51 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,33 @@
1
1
# Aztec MCP Server
2
2
3
-
An MCP (Model Context Protocol) server that provides local access to Aztec documentation, examples, and source code through cloned repositories.
3
+
An MCP (Model Context Protocol) server that provides local access to Aztec documentation, examples, and source code through cloned repositories. Optionally augments with **semantic search** over the full Aztec knowledge base when an API key is configured.
4
4
5
5
## Features
6
6
7
7
-**Version Support**: Clone specific Aztec release tags (e.g., `v4.2.0-aztecnr-rc.2`)
8
8
-**Local Repository Cloning**: Automatically clones Aztec repositories with sparse checkout for efficiency
9
9
-**Fast Code Search**: Search Noir contracts and TypeScript files using ripgrep (with fallback)
10
-
-**Documentation Search**: Search Aztec documentation by section
10
+
-**Documentation Search**: Search Aztec documentation locally; with an API key, semantic vector search across the full corpora (framework docs, examples, Noir stdlib, TypeScript SDK, protocol circuits)
11
+
-**Error Lookup**: Static catalog (Solidity / circuit / TX / AVM errors) plus optional semantic fallback for unrecognized errors when an API key is configured
11
12
-**Example Discovery**: List and read Aztec contract examples
13
+
-**Version-sync Gate**: When using the hosted semantic backend, the server detects mismatches between your local clone tag and the indexed corpus and refuses to query across versions unless explicitly overridden
-`maxResults` (number): Maximum results (default: 20)
128
+
-`section` (string): Docs section, applies to local search only (tutorials, concepts, developers, reference)
129
+
-`maxResults` (number): Maximum results (default: 20 local; 5 semantic, max 20)
130
+
-`chunks` (number, semantic only): Number of result chunks (1-20). If omitted, `maxResults` is used.
131
+
-`useLocalFallback` (boolean, semantic only): If the semantic backend fails, fall back to local ripgrep. Default `false` so backend errors surface clearly.
132
+
-`allowVersionMismatch` (boolean, semantic only): Override the version-sync gate. Default `false`. The gate refuses to search when your local `aztec-packages` clone tag differs from the corpus version the backend has indexed.
100
133
101
134
### `aztec_list_examples`
102
135
@@ -122,6 +155,17 @@ Read any file from cloned repositories.
122
155
123
156
-`path` (string, required): File path relative to repos directory
124
157
158
+
### `aztec_lookup_error`
159
+
160
+
Diagnose any Aztec error by message, error code, or hex signature. Returns root cause and suggested fix from a static catalog covering Solidity errors, TX validation errors, circuit codes, AVM errors, and operator FAQ. With `API_KEY` set, falls back to semantic documentation search when the static catalog has no hit.
-`allowVersionMismatch` (boolean, semantic only): Override the version-sync gate for the semantic fallback. Has no effect when the static catalog already matched.
0 commit comments