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
Custom tool handlers receive a `ToolCallContext` with `authInfo`, `headers`,
108
+
`clientInfo`, and an abort `signal`.
109
+
110
+
## Option Reference
111
+
112
+
| Field | Type | Default | Description |
113
+
|-------|------|---------|-------------|
114
+
|`indexDir`|`string`|*required*| Directory containing `chunks.json` and `metadata.json` from `docs-mcp build`. |
115
+
|`toolPrefix`|`string`| — | Prefix for built-in tool names, e.g. `"acme"` → `acme_search_docs`. Does not affect custom tool names. Alphanumeric, dash, or underscore. |
116
+
|`queryEmbeddingApiKey`|`string`|`OPENAI_API_KEY` env | API key for query-time embeddings. |
117
+
|`queryEmbeddingBaseUrl`|`string`| Provider default | Base URL for the embedding API. Defaults to the provider's official endpoint (e.g. `https://api.openai.com/v1` for OpenAI). Override to use a proxy or compatible API. |
118
+
|`queryEmbeddingBatchSize`|`number`|`128`| Number of texts per embedding API call. Reduce if hitting provider rate or payload limits. Positive integer. |
119
+
|`proximityWeight`|`number`|`1.25`| RRF blend weight for lexical phrase-proximity matches. Higher values boost results where query terms appear close together. Positive. |
120
+
|`phraseSlop`|`number`|`0`| Maximum word distance allowed for phrase matches (0 = exact phrase only, up to 5). |
121
+
|`vectorWeight`|`number`|`1`| RRF blend weight for vector (semantic) search results. Higher values boost semantically similar results. Positive. |
122
+
|`customTools`|`CustomTool[]`|`[]`| Additional tools registered alongside the built-in `search_docs` and `get_doc`. |
123
+
124
+
The exported `CreateDocsServerOptionsSchema` (Zod) is the canonical machine-readable spec for these options.
0 commit comments