Documentation

MCP server

ZephAI implements a Model Context Protocol server over Streamable HTTP JSON-RPC 2.0 at /mcp/.

Client configuration#

{
  "mcpServers": {
    "zephai": {
      "type": "http",
      "url": "https://your-domain.example/mcp/",
      "headers": { "Authorization": "Bearer zp_live_..." }
    }
  }
}

Lifecycle#

  1. initialize → protocol 2025-06-18, server info, capabilities.
  2. notifications/initialized.
  3. tools/list, resources/list, prompts/list.
  4. tools/call or resources/read.

Tools#

ToolPurpose
list_modelsSearch live listings by category, vendor or text.
get_modelPricing tiers, benchmarks and endpoint health.
chat_completionMetered chat through the gateway. Requires workspace credits.
usage_summaryRequests, tokens, spend, balance and budget.
search_docsDocumentation search with links.
list_vendorsVerified vendors and storefronts.
get_statusComponent health and incidents.

Security#

MCP uses the same Bearer keys, spend caps, rate limits and request logging as the REST API. Each tool call is written to MCPToolCall. Use a dedicated key with a low cap for MCP clients; config files store the header in plain text.

Staff console#

Space → MCP shows the endpoint, tool schemas, client snippet and recent calls. It can also inspect external MCP servers and cache their tool manifests; outbound tokens are write-only.