Hosted MCP Protocol
OMNI’s official hosted MCP endpoint is:/sources/client-api-reference/sources/client-api-endpoints
Transport model
- Primary: streamable HTTP (
/mcp) - Compatibility: SSE (
/sse) for clients expecting legacy event stream bootstrap
Authentication
All requests require:tools/call, include:
Supported methods
| Method | Description |
|---|---|
initialize | Handshake and capability negotiation. |
ping | Connectivity health check. |
tools/list | Enumerate OMNI MCP tools. |
tools/call | Invoke a specific tool with arguments. |
notifications/initialized | Initialization notification (no id). |
Example sequence
initializenotifications/initializedtools/listtools/call
JSON-RPC request/response shape
Requests are JSON:- a
resultobject, or - an
errorobject
X-Request-Id header on responses, and hosted MCP errors also include error.data.request_id for correlation.
initialize
Minimal example:
- OMNI may select a different protocol version if you request an unsupported one; see
/sources/client-api-mcp-compatibility. - After
initialize, sendnotifications/initialized(noid) before tool calls.
tools/list
tools/call
tools/call is side-effecting in the general case and requires idempotency.
mcp.invoke- tool-specific scope (example:
fred.read)
tools/call due to timeout or transient failure, retry with the same Idempotency-Key.
Error behavior (hosted MCP)
Hosted MCP errors are JSON-RPC compliant and includeomni_code for mapping into REST-style error handling.
Example (shape only):
/sources/client-api-errors for JSON-RPC code mappings and retry guidance.
Tool parity policy
Hosted MCP tool behavior maps to OMNI Client API semantics:- same auth model
- same rate limits and quotas
- same request ID behavior
- same billing semantics (
2xx/3xxbillable, failures non-billable)
Current tools
fred.searchfred.series
Session behavior
MCP-Session-Idheader is returned for hosted transport sessions.DELETE /mcpcloses the active session context.
/sources/client-api-mcp-compatibility for protocol and tool compatibility guarantees.
Official adapters (internal beta)
During internal beta, OMNI provides first-party adapters to make MCP integration straightforward. These adapters are not published to npm/PyPI yet. For internal beta they are distributed as GitHub Release artifacts from theomni-system repo, gated by live conformance against https://api.omnibrief.app/mcp.