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#
initialize→ protocol 2025-06-18, server info, capabilities.notifications/initialized.tools/list,resources/list,prompts/list.tools/callorresources/read.
Tools#
| Tool | Purpose |
|---|---|
list_models | Search live listings by category, vendor or text. |
get_model | Pricing tiers, benchmarks and endpoint health. |
chat_completion | Metered chat through the gateway. Requires workspace credits. |
usage_summary | Requests, tokens, spend, balance and budget. |
search_docs | Documentation search with links. |
list_vendors | Verified vendors and storefronts. |
get_status | Component 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.