Documentation MCP
The AIVAX documentation MCP exposes AIVAX documentation, API reference content, and model metadata to MCP-compatible clients. It is designed for assistants, IDEs, internal agents, and implementation workflows that need current AIVAX context before they answer, write code, configure a gateway, or troubleshoot an integration.
This MCP is read-oriented. It does not expose a generic account API invocation tool. Use it when an agent needs to understand AIVAX features, find the right API route, compare model capabilities, or ground its answer in the product manual. Use the account management MCP only when the client also needs to inspect or change authenticated account resources through API calls.
Note
Do not configure the documentation MCP together with the account management MCP in the same client unless you have a specific reason to duplicate tools. The account management MCP already includes documentation search functions. Adding both servers usually creates redundant documentation tools and can make tool selection less predictable.
Endpoint #
This is the address for the documentation MCP. Connect a client here when it should search the product manual, the API reference, or integrated chat models for the account plan.
https://inference.aivax.net/v1/mcp/documentationAuthenticate with an AIVAX account API key:
Authorization: Bearer <AIVAX_PRIVATE_API_KEY>For key types and authentication options, see Authentication.
Configuration example #
Client configuration tells the MCP client where to connect. The exact shape depends on the client. For clients that accept a Streamable HTTP server entry, configure the AIVAX documentation endpoint and pass the API key as a header.
{
"servers": {
"aivax-docs": {
"type": "http",
"url": "https://inference.aivax.net/v1/mcp/documentation",
"headers": {
"Authorization": "Bearer <AIVAX_PRIVATE_API_KEY>"
}
}
}
}After the client connects, it can discover the tools exposed by the server. Tool names are prefixed with aivax_ so they remain clear when the client also has project, database, browser, or code tools available.
Available tools #
The server exposes two read tools. Use them when the assistant needs product context or a model list before it answers or acts.
aivax_search_documentation #
aivax_search_documentation searches AIVAX documentation and API reference content. Use this tool when the assistant needs product context before answering or acting.
The tool accepts:
| Argument | Type | Required | Description |
|---|---|---|---|
search_terms | string[] | Yes | Search terms to query against AIVAX documentation and API reference. |
search_type | string | No | Search scope. Use documentation-manual, api-function-reference, or all. |
The search can query the documentation manual, the API function reference, or both. It returns relevant documentation snippets in text form so the client can use them directly as context. The number of terms and characters per call is limited; see Pricing and limits.
Example arguments:
{
"search_terms": [
"AI Gateway MCP headers",
"tool metadata"
],
"search_type": "all"
}Choose terms that match the question:
- Use a complete phrase when the intent is clear, such as
semantic search reranker settingsorpublic key chat completion restrictions. - Use multiple terms to cover neighboring concepts, alternate names, or likely API-reference terms.
Search calls are rate limited per account and return 429 Too Many Requests when the limit is exceeded.
aivax_list_models #
aivax_list_models lists integrated AIVAX chat models and returns a model-readable summary for each match. Use it when the assistant needs to choose a model, explain whether a model is available to the current plan, compare capabilities, or understand pricing (see Pricing).
The tool accepts:
| Argument | Type | Required | Description |
|---|---|---|---|
name_filter | string | No | Optional fuzzy filter for model names, such as gpt 5, sonnet, qwen coder, or @openai/gpt-5-mini. |
The response includes each model’s description, stability, type, capabilities, flags, and availability for the authenticated account plan. For current prices, see Pricing.
Example arguments:
{
"name_filter": "gemini flash"
}Model listing calls are rate limited per account and return 429 Too Many Requests when the limit is exceeded.
When to use it #
Use the documentation MCP when you want an assistant to answer AIVAX questions from source-backed context instead of memory. The sections below match the usual jobs.
Answer from the manual #
Use it in IDEs, support tools, onboarding agents, and implementation copilots. The assistant should search the manual before it recommends a route, parameter, feature, model, or debugging step.
Design a gateway #
Before creating or editing an AI Gateway, the assistant can search for the relevant feature, check model capabilities, then explain which configuration to use and why: built-in tools, MCP functions, server-side functions, workers, RAG collections, structured responses, or multimodal pre-processing.
Troubleshoot an error #
The assistant can search for authentication rules, plan limits, RAG search parameters, gateway behavior, or public-key restrictions, then produce a focused checklist for the error.
Choose a model #
Combine aivax_search_documentation with aivax_list_models:
- Search the manual for the feature requirement, such as tool calling, video input, structured output, or long context.
- List matching models.
- Choose one that is available to the account plan.
Choosing search terms #
Good search terms describe the user’s goal, not only one keyword. Use this section when a search returns noise or misses the page you expected.
Prefer:
public key chat completion restrictions
semantic search include references
AI Gateway MCP source headers
multimodal preprocess videoOver:
key
search
headers
videoChoose search_type from the kind of answer you need:
- Use
search_type: "all"when the assistant is unsure which page contains the answer. - Use
api-function-referencewhen it needs route names, request bodies, or endpoint behavior. - Use
documentation-manualwhen it needs conceptual guidance, tradeoffs, or workflow explanations.
Pricing and limits #
Both tools are rate limited per account and return 429 Too Many Requests when the limit is exceeded. aivax_search_documentation also accepts at most 10 search terms and 500 total characters per call.
Security guidance #
The documentation MCP is safer than a management tool because it is read-oriented, but it still authenticates as an AIVAX account. Connect it only to clients that should know the account’s available models and documentation context. It may expose account-plan-sensitive model availability.
- Use a dedicated API key for each MCP client.
- Store the key in the client’s secret mechanism or local configuration store.
- Do not store the key in source control.
If a client only needs public documentation and does not need account-specific model availability, prefer linking directly to the public documentation site instead of connecting an authenticated MCP server.
