MCP
One endpoint exposes Onivos as tools to AI clients — Claude, ChatGPT, Gemini, Cursor and anything else that speaks the Model Context Protocol.
POST https://api.onivos.com/mcpScope: mcp:write (or mcp:*). MCP calls are always POST, so a read-only mcp:read grants nothing. Per-pillar scopes on the same token then decide which tools appear — a token with mcp:write and contacts:read sees the contact read tools and nothing else.
Setting up a client?
The step-by-step guides for each client live in Connect your AI. This page is the protocol contract behind them.
Transport
JSON-RPC over Streamable HTTP, stateless. There is no session to establish and no event stream to hold open.
| Request | Result |
|---|---|
POST /mcp | JSON-RPC: initialize, ping, tools/list, tools/call. |
| Notifications | 202, no body. |
GET / DELETE /mcp | 405 — no server-sent stream, no sessions. |
| JSON-RPC batch | Rejected (-32600). Send one call per request. |
Send MCP-Protocol-Version and the server negotiates on initialize. Origin is validated against the organization's allowed origins.
Every method is the same POST with a different body, so one playground covers the protocol — swap method and params and send:
initializeNegotiate the protocol version and read server capabilities.Try itpingLiveness check.Try ittools/listThe tools your token may use, with each input schema.Try ittools/callCall one tool. A write returns a preview plus a confirmation token; call again with that token to execute.Try itAuthenticating
Two credentials work:
- An API key or personal access token —
Authorization: Bearer onv_…. This is what CLI-style clients use. - An OAuth access token — for clients that sign the user in interactively. A token-less
POSTanswers401with aWWW-Authenticateheader pointing at the protected-resource metadata, which is how a compliant client discovers where to send you to log in.
A session cookie is not accepted: MCP is a token surface.
What the tools are
Tools are generated from the platform's capability registry, so the catalogue tracks the product rather than a hand-written list.
- Names are the capability with a underscore instead of a dot —
dataObject.createRecordbecomesdataObject_createRecord. inputSchemais the capability's own validation schema, so a model can call a tool correctly fromtools/listalone.- Read tools are annotated read-only; destructive capabilities are never listed at all.
- Scope-gated: a tool your token may not use is absent from
tools/list, and calling it by name fails. - A token always acts with the admin role, so owner-only capabilities never surface.
Two extra tools, search and fetch, are listed first. They are the generic search-and-read pair that ChatGPT's company-knowledge and deep-research modes look up by name: search returns titled, linkable results across the entity types your token may read; fetch returns one entity's full text with its URL.
Writes are confirmed in two calls
A tool that changes data does not act on the first call. Instead it validates your arguments and returns a preview plus a confirmation token. Calling again with that token executes it.
The token is single-use, expires after five minutes, and is bound to the exact arguments that produced it — an edited argument invalidates it. Handlers re-check permissions server-side regardless, so the pattern is a safety rail for the model, not the security boundary.
Errors
- Protocol errors (malformed JSON-RPC, unknown tool) come back as JSON-RPC errors.
- Everything else — validation failures, permission denials, business-rule conflicts — comes back as a tool result with
isError: trueand a readable message, so the model can correct itself and retry instead of the conversation dying.
Governance
Admins control AI-client access for the whole organization: connections can be disabled outright, and the data groups an interactively-authorized client may reach can be capped below what the user consented to. Organization API keys are exempt from that gate — they are configured by an admin in the first place.
Usage is auditable: every executed and previewed tool call is recorded, and GET /developer/mcp-usage?range=30 returns organization-wide totals, per tool and per key.
Related
- Connect your AI — client-by-client setup.
- Authentication — tokens and scopes.
- AI agents — importing tools from an MCP server into an Onivos agent.