MCP servers
List the MCP servers configured for a workspace.
Readable by any member who can see the workspace: these servers act on every request a member sends through it, so what they are is a member's to view (otari-ai#1942). Changing them stays with organization owners/admins or this workspace's owners/admins. Authorization tokens are never included; each server reports only whether it has one.
Enter your API key here (sent as Otari-Key header).
Number of records to skip
0Maximum number of records to return
100Successful Response
Validation Error
GET /api/v1/workspaces/{workspace_id}/mcp-servers HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"count": 1,
"data": [
{
"allowed_tools": [
"text"
],
"created_at": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"has_token": true,
"health": {
"checked_at": "text",
"error": "unsafe_url",
"http_status": 1,
"missing_allowed_tools": [
"text"
],
"read_only_hinted_tools": [
"text"
],
"status": "healthy",
"tool_count": 1,
"tools": [
"text"
]
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"updated_at": "text",
"url": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Register an MCP server for a workspace. Organization owners/admins or this workspace's owners/admins.
The authorization token is encrypted at rest and never returned. The URL is checked for SSRF safety here as well as on the request path, and must use https when a token is set. A name already used in this workspace is refused with a 409.
Once stored, the server is connected to and its tools listed, and the outcome is returned as health. A server that fails this check is still stored, and health.error says why.
Enter your API key here (sent as Otari-Key header).
Request body for registering a server.
authorization_token is never stored as sent: it is encrypted with
OTARI_SECRET_KEY and only the ciphertext is kept, the same convention
providers.ProviderCredential and OrgProviderKey already use.
Allow-list of tool names; null exposes every tool the server offers
Bearer token for the server; requires an https URL. Encrypted at rest, never returned
Whether a request naming this server actually reaches it
trueWhat every key of the workspace may call on this server: tool names, '' for every tool, or 'prefix', or '@read' for read_tools; [] denies everyone. A grant for a key or its owner overrides it
Label for the server, unique within the workspace
Hint prepended to the system message to help the model choose
The tool names a manager labeled read, which '@read' in an access rule stands for. The server's own readOnlyHint is never read as one
Streamable HTTP MCP endpoint
Successful Response
The API-facing shape. Never carries the token, only whether one is set.
No last4-style prefix either, unlike OrgProviderKeyPublic: a provider
key's last four digits let an operator match a stored key against the one
in their provider's console, and there is no equivalent workflow for an MCP
bearer token.
What every key of the workspace may call; [] denies everyone
The tool names a manager labeled read, which '@read' stands for
Validation Error
POST /api/v1/workspaces/{workspace_id}/mcp-servers HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"allowed_tools": [
"text"
],
"authorization_token": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"url": "text"
}{
"allowed_tools": [
"text"
],
"created_at": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"has_token": true,
"health": {
"checked_at": "text",
"error": "unsafe_url",
"http_status": 1,
"missing_allowed_tools": [
"text"
],
"read_only_hinted_tools": [
"text"
],
"status": "healthy",
"tool_count": 1,
"tools": [
"text"
]
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"updated_at": "text",
"url": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Check connection details without storing them. Organization owners/admins or this workspace's owners/admins.
What a form's Test button calls before it saves. Answers with what a stored server's health would say, and records nothing. Pass server_id and omit authorization_token to test with that server's stored token. The URL is checked for SSRF safety first, with the same 400 a create gets.
Enter your API key here (sent as Otari-Key header).
Connection details to check without storing them, for a form to test before it saves.
server_id names a stored server whose token stands in when
authorization_token is omitted, so an edit form can test a new URL with
a token it was never shown. "" checks with no token at all.
The allow-list to report the catalog against
Bearer token; omit to use the stored server's, if any
A stored server whose token to use
Streamable HTTP MCP endpoint
Successful Response
The last connection check: whether the gateway reached the server, and what it found.
Describes the server as the gateway saw it at checked_at, not now: a
server that answered then can be down since, and the request path checks
nothing in advance on the strength of this.
Why the check failed; null when healthy
The HTTP status the server refused with, if any
Allow-listed names the server did not offer
Those of tools the server annotates readOnlyHint: untrusted, a suggestion for labeling read_tools and never applied as one
Live tools the allow-list admits; null when the check failed
Every tool name the server offers, allowed or not, up to 200; empty on a failure
The URL failed the SSRF or TLS check; nothing was sent to it.
Validation Error
Every check slot on this gateway was busy. Try again shortly.
POST /api/v1/workspaces/{workspace_id}/mcp-servers/check HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 119
{
"allowed_tools": [
"text"
],
"authorization_token": "text",
"server_id": "123e4567-e89b-12d3-a456-426614174000",
"url": "text"
}{
"checked_at": "text",
"error": "unsafe_url",
"http_status": 1,
"missing_allowed_tools": [
"text"
],
"read_only_hinted_tools": [
"text"
],
"status": "healthy",
"tool_count": 1,
"tools": [
"text"
]
}Update a server. Organization owners/admins or this workspace's owners/admins.
Only the fields sent are applied. Omit authorization_token to leave the stored token alone, send an empty string to clear it, or send a value to rotate it. A change to the URL, the token or the allow-list checks the server again, as creating it does. everyone_tools is what every key of the workspace may call; the server's grants override it per key or user.
Enter your API key here (sent as Otari-Key header).
Partial update. Only the fields the caller sets are applied.
authorization_token has three states rather than two, which is what a
write-only field needs: omit it to leave the stored token alone, send
"" to clear it, send a value to rotate it. An explicit null also
leaves it alone, matching the platform: a client that serializes its whole
form back, with an empty token box it never filled in, must not destroy a
token it was never shown.
Successful Response
The API-facing shape. Never carries the token, only whether one is set.
No last4-style prefix either, unlike OrgProviderKeyPublic: a provider
key's last four digits let an operator match a stored key against the one
in their provider's console, and there is no equivalent workflow for an MCP
bearer token.
What every key of the workspace may call; [] denies everyone
The tool names a manager labeled read, which '@read' stands for
Validation Error
PATCH /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"allowed_tools": [
"text"
],
"authorization_token": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"url": "text"
}{
"allowed_tools": [
"text"
],
"created_at": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"has_token": true,
"health": {
"checked_at": "text",
"error": "unsafe_url",
"http_status": 1,
"missing_allowed_tools": [
"text"
],
"read_only_hinted_tools": [
"text"
],
"status": "healthy",
"tool_count": 1,
"tools": [
"text"
]
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"updated_at": "text",
"url": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Delete a server and the token stored with it. Organization owners/admins or this workspace's owners/admins.
Enter your API key here (sent as Otari-Key header).
Successful Response
A human-readable acknowledgment for an operation with nothing to return.
What happened.
Validation Error
DELETE /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"message": "text"
}Check a server's connection now. Organization owners/admins or this workspace's owners/admins.
Opens one session, lists the server's tools, and stores the outcome as health. A server that fails is still a 200, with health.status set to failing. A 429 means every check slot on this gateway was busy and nothing was recorded.
Enter your API key here (sent as Otari-Key header).
Successful Response
The API-facing shape. Never carries the token, only whether one is set.
No last4-style prefix either, unlike OrgProviderKeyPublic: a provider
key's last four digits let an operator match a stored key against the one
in their provider's console, and there is no equivalent workflow for an MCP
bearer token.
What every key of the workspace may call; [] denies everyone
The tool names a manager labeled read, which '@read' stands for
Validation Error
Every check slot on this gateway was busy; nothing was recorded. Try again shortly.
POST /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/check HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
"allowed_tools": [
"text"
],
"created_at": "text",
"enabled": true,
"everyone_tools": [
"text"
],
"has_token": true,
"health": {
"checked_at": "text",
"error": "unsafe_url",
"http_status": 1,
"missing_allowed_tools": [
"text"
],
"read_only_hinted_tools": [
"text"
],
"status": "healthy",
"tool_count": 1,
"tools": [
"text"
]
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"purpose_hint": "text",
"read_tools": [
"text"
],
"updated_at": "text",
"url": "text",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000"
}Last updated
Was this helpful?
