For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP servers

List Workspace Mcp Servers

get

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
Query parameters
skipintegerOptional

Number of records to skip

Default: 0
limitinteger · min: 1 · max: 1000Optional

Maximum number of records to return

Default: 100
Responses
200

Successful Response

application/json
countintegerRequired
get/api/v1/workspaces/{workspace_id}/mcp-servers
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"
    }
  ]
}

Create Workspace Mcp Server

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
Body

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.

allowed_toolsstring[] · max: 200 · nullableOptional

Allow-list of tool names; null exposes every tool the server offers

authorization_tokenstring · max: 8192 · nullableOptional

Bearer token for the server; requires an https URL. Encrypted at rest, never returned

enabledbooleanOptional

Whether a request naming this server actually reaches it

Default: true
everyone_toolsstring[]Optional

What 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

namestring · min: 1 · max: 128Required

Label for the server, unique within the workspace

purpose_hintstring · max: 2000 · nullableOptional

Hint prepended to the system message to help the model choose

read_toolsstring[]Optional

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

urlstring · min: 1 · max: 2048Required

Streamable HTTP MCP endpoint

Responses
201

Successful Response

application/json

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.

allowed_toolsstring[] · nullableRequired
created_atstringRequired
enabledbooleanRequired
everyone_toolsstring[]Required

What every key of the workspace may call; [] denies everyone

has_tokenbooleanRequired
idstring · uuidRequired
namestringRequired
purpose_hintstring · nullableRequired
read_toolsstring[]Required

The tool names a manager labeled read, which '@read' stands for

updated_atstringRequired
urlstringRequired
workspace_idstring · uuidRequired
post/api/v1/workspaces/{workspace_id}/mcp-servers
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 Workspace Mcp Server Connection

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
Body

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.

allowed_toolsstring[] · max: 200 · nullableOptional

The allow-list to report the catalog against

authorization_tokenstring · max: 8192 · nullableOptional

Bearer token; omit to use the stored server's, if any

server_idstring · uuid · nullableOptional

A stored server whose token to use

urlstring · min: 1 · max: 2048Required

Streamable HTTP MCP endpoint

Responses
200

Successful Response

application/json

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.

checked_atstringRequired
errorstring · enum · nullableOptional

Why the check failed; null when healthy

Possible values:
http_statusinteger · nullableOptional

The HTTP status the server refused with, if any

missing_allowed_toolsstring[]Optional

Allow-listed names the server did not offer

read_only_hinted_toolsstring[]Optional

Those of tools the server annotates readOnlyHint: untrusted, a suggestion for labeling read_tools and never applied as one

statusstring · enumRequiredPossible values:
tool_countinteger · nullableOptional

Live tools the allow-list admits; null when the check failed

toolsstring[]Optional

Every tool name the server offers, allowed or not, up to 200; empty on a failure

post/api/v1/workspaces/{workspace_id}/mcp-servers/check
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 Workspace Mcp Server

patch

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
server_idstring · uuidRequired
Body

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.

allowed_toolsstring[] · max: 200 · nullableOptional
authorization_tokenstring · max: 8192 · nullableOptional
enabledbooleanOptional
everyone_toolsstring[]Optional
namestring · min: 1 · max: 128Optional
purpose_hintstring · max: 2000 · nullableOptional
read_toolsstring[]Optional
urlstring · min: 1 · max: 2048Optional
Responses
200

Successful Response

application/json

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.

allowed_toolsstring[] · nullableRequired
created_atstringRequired
enabledbooleanRequired
everyone_toolsstring[]Required

What every key of the workspace may call; [] denies everyone

has_tokenbooleanRequired
idstring · uuidRequired
namestringRequired
purpose_hintstring · nullableRequired
read_toolsstring[]Required

The tool names a manager labeled read, which '@read' stands for

updated_atstringRequired
urlstringRequired
workspace_idstring · uuidRequired
patch/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}
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 Workspace Mcp Server

delete

Delete a server and the token stored with it. Organization owners/admins or this workspace's owners/admins.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
server_idstring · uuidRequired
Responses
200

Successful Response

application/json

A human-readable acknowledgment for an operation with nothing to return.

messagestringRequired

What happened.

delete/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}
DELETE /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id} HTTP/1.1
Otari-Key: YOUR_API_KEY
Accept: */*
{
  "message": "text"
}

Check Workspace Mcp Server

post

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.

Authorizations
Otari-KeystringRequired

Enter your API key here (sent as Otari-Key header).

Path parameters
workspace_idstring · uuidRequired
server_idstring · uuidRequired
Responses
200

Successful Response

application/json

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.

allowed_toolsstring[] · nullableRequired
created_atstringRequired
enabledbooleanRequired
everyone_toolsstring[]Required

What every key of the workspace may call; [] denies everyone

has_tokenbooleanRequired
idstring · uuidRequired
namestringRequired
purpose_hintstring · nullableRequired
read_toolsstring[]Required

The tool names a manager labeled read, which '@read' stands for

updated_atstringRequired
urlstringRequired
workspace_idstring · uuidRequired
post/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/check
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?