ODOCK.AI
Models & MCPMCP Servers

MCP Servers

Add and govern MCP tool servers with transports, auth, tool rules, scoping, pricing, and access grants.

MCP Servers

MCP servers expose tools that agents and applications can call through the Model Context Protocol. Odock lets you govern MCP traffic the same way you govern model traffic: explicit API key access, scoped ownership, policies, pricing, budgets, quotas, guardrails, and usage records.

An MCP server record tells Odock how to reach the tool server, how to authenticate upstream, which tools are allowed or blocked, how to price usage, and which virtual API keys can call it.

MCP Runtime Model

MCP calls use the configured MCP server slug or id, not a model name. The common runtime path is:

/v1/mcp/{slug}
/v1/mcp/{id}
/v1/mcp/{slug}/{path}

For endpoint details, see Endpoints.

Transport Types

TransportUse whenRequired setup
STREAMABLE_HTTPThe MCP server exposes an HTTP endpoint that supports streamable MCP traffic.Endpoint URL.
SSEThe MCP server streams responses using server-sent events.Endpoint URL.
STDIOOdock should launch a local command and communicate over standard input/output.Command, args, and optional environment JSON.

Choose the transport that matches how the MCP server runs. For production, prefer a stable HTTP or SSE service when possible. Use STDIO for local or packaged tool servers that are meant to be launched by the gateway environment.

Auth Types

MCP upstream auth can be NONE, BEARER, BASIC, or OAUTH2.

Auth config is stored on the MCP server record and used when Odock proxies to the upstream MCP server. A virtual API key authenticates the caller to Odock; MCP auth authenticates Odock to the MCP server.

For auth config examples, see MCP authentication.

Scope And Access

MCP has two related controls.

First, an MCP server can be narrowed by Team Scope or API Key Scope. Second, runtime calls require an explicit MCP Access grant for the virtual API key.

Use access grants for normal permissioning. Use Team Scope or API Key Scope when the MCP server itself should be restricted to a specific team or key context.

MCP Governance

ControlWhat it does
Allowed toolsIf set, only listed tool names are allowed for tools/call.
Blocked toolsListed tool names are denied for tools/call.
Semantic filterJSON configuration for blocking configured keywords or patterns in MCP payloads.
PoliciesIP and rate limits applied to this MCP server.
Budgets and quotasCost and usage controls applied in the runtime flow.

Allowed and blocked tools are useful when a server exposes both read-only and write-capable tools. For example, you might allow search and open while blocking a destructive repository operation.

For broader guardrail behavior, see Guardrails.

For MCP-specific access grants, scopes, tool rules, semantic filters, and transport security, see MCP security.

MCP Pricing

MCP pricing estimates cost from calls and bytes. The UI accepts price in USD per 1M calls, input price in USD per 1M bytes, and output price in USD per 1M bytes.

Internally, pricing is stored in nanos USD per call or byte.

MCP usage records include the pricing snapshot so later reporting can explain how the cost was calculated.

For pricing fields, cost formula, and examples, see MCP pricing.

MCP Workflows

Usage Records

MCP usage records show MCP server id and slug, transport, HTTP or RPC method, tool name for tools/call, status, latency, input bytes, output bytes, pricing snapshot, total cost, and API key, organisation, team, and user attribution when available.

Use these records to review tool adoption, detect expensive tool calls, investigate blocked calls, and reconcile MCP costs.

Troubleshooting

SymptomWhat to check
mcp_not_foundConfirm the client is using the MCP server slug or id from Odock.
mcp_not_allowedConfirm the virtual API key has an MCP Access grant.
mcp_guardrail_blockCheck allowed tools, blocked tools, and semantic filters.
Upstream auth errorReview MCP Auth Type and Auth Config.
Missing endpoint errorConfirm Endpoint URL for HTTP/SSE or STDIO command for STDIO.
No MCP costConfirm MCP Pricing is configured.
Calls do not appear in usageConfirm traffic is going through /v1/mcp/{slug} on the Odock gateway.

Continue with Endpoints to see how applications call models and MCP servers.

On this page