> For the complete documentation index, see [llms.txt](https://docs.otari.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otari.ai/reference/api-reference/mcp-servers.md).

# MCP servers

## List Mcp Server Requests

> The workspace's pending requests, one entry per catalog server, the longest-waiting first.\
> \
> Organization owners/admins or this workspace's owners/admins. Each entry names the first five\
> who asked, with their notes, and \`requester\_count\` says how many asked in all; the\
> \`requesters\` list pages through the rest. Each also carries the catalog's entry for the server\
> as it is now. A page holds \`limit\` servers after the first \`skip\`; \`count\` says how many\
> requests wait in all, and \`server\_count\` how many servers they ask for.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpServerRequestGroupsPublic":{"description":"A workspace's pending requests, one entry per catalog server, the longest-waiting first.","properties":{"count":{"description":"How many requests are pending in all","title":"Count","type":"integer"},"data":{"items":{"$ref":"#/components/schemas/McpServerRequestGroupPublic"},"title":"Data","type":"array"},"server_count":{"description":"How many catalog servers have a request pending, for paging `data`","title":"Server Count","type":"integer"}},"required":["data","count","server_count"],"title":"McpServerRequestGroupsPublic","type":"object"},"McpServerRequestGroupPublic":{"description":"Everyone waiting for one catalog server in a workspace.","properties":{"catalog_name":{"title":"Catalog Name","type":"string"},"catalog_server":{"anyOf":[{"$ref":"#/components/schemas/McpCatalogServerPublic"},{"type":"null"}],"description":"The catalog's entry as it is now; null once the catalog no longer lists the server"},"first_requested_at":{"format":"date-time","title":"First Requested At","type":"string"},"requester_count":{"description":"How many pending requests ask for this server in all","title":"Requester Count","type":"integer"},"requesters":{"description":"Who asked, earliest first, up to 5. Past that, the requesters list of this server has the rest","items":{"$ref":"#/components/schemas/McpServerRequesterPublic"},"title":"Requesters","type":"array"},"title":{"title":"Title","type":"string"},"url":{"title":"Url","type":"string"}},"required":["catalog_name","title","url","catalog_server","requesters","requester_count","first_requested_at"],"title":"McpServerRequestGroupPublic","type":"object"},"McpCatalogServerPublic":{"description":"One remote MCP server the catalog lists.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The https image the registry entry names as the server's icon, null when it names none.","title":"Icon Url"},"id":{"format":"uuid","title":"Id","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo, which it fetched once and keeps. Null when it looked and found none. A URL without `v` has not been looked for yet, and asking for it starts the look.","title":"Logo Url"},"name":{"description":"The source's own identifier, such as `com.example/mcp`.","title":"Name","type":"string"},"publisher_kind":{"description":"`vendor` when the server is its maker's own: the endpoint lives on the domain the registry verified for the publisher's namespace, the server is named for that domain and nothing else, and the domain is not a hosting platform's. A website or title the publisher writes never earns it, and neither does a GitHub namespace. A few makers' servers the rule cannot recognize are listed by hand. `community` for every other, such as a gateway to another company's API.","enum":["vendor","community"],"title":"Publisher Kind","type":"string"},"requires_token":{"description":"The source says a call needs an Authorization header. False means nothing was declared, not that the server is open: one that signs users in with OAuth declares nothing.","title":"Requires Token","type":"boolean"},"source":{"description":"Where the entry came from. `registry` is the official MCP Registry; `curated` is a short list bundled with Otari of well-known servers the registry does not list.","title":"Source","type":"string"},"title":{"title":"Title","type":"string"},"url":{"description":"The server's streamable HTTP endpoint.","title":"Url","type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"}},"required":["id","name","title","description","url","requires_token","website_url","icon_url","logo_url","logo_tone","publisher_kind","version","source"],"title":"McpCatalogServerPublic","type":"object"},"McpServerRequesterPublic":{"description":"One member who asked for a server, as a workspace manager sees them.","properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"request_id":{"format":"uuid","title":"Request Id","type":"string"},"requested_at":{"format":"date-time","title":"Requested At","type":"string"},"user_id":{"format":"uuid","title":"User Id","type":"string"}},"required":["request_id","user_id","full_name","email","note","requested_at"],"title":"McpServerRequesterPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests":{"get":{"description":"The workspace's pending requests, one entry per catalog server, the longest-waiting first.\n\nOrganization owners/admins or this workspace's owners/admins. Each entry names the first five\nwho asked, with their notes, and `requester_count` says how many asked in all; the\n`requesters` list pages through the rest. Each also carries the catalog's entry for the server\nas it is now. A page holds `limit` servers after the first `skip`; `count` says how many\nrequests wait in all, and `server_count` how many servers they ask for.","operationId":"mcp-servers-list_mcp_server_requests","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"description":"Number of catalog servers to skip","in":"query","name":"skip","required":false,"schema":{"default":0,"description":"Number of catalog servers to skip","minimum":0,"title":"Skip","type":"integer"}},{"description":"Maximum number of catalog servers to return","in":"query","name":"limit","required":false,"schema":{"default":100,"description":"Maximum number of catalog servers to return","maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestGroupsPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"List Mcp Server Requests","tags":["mcp-servers"]}}}}
```

## Request Mcp Server

> Ask the workspace's owners and admins to add a server the MCP catalog lists.\
> \
> Any member who can see the workspace, a viewer included. The request keeps the title and URL\
> the catalog gives the server now. Where this deployment can send mail, the workspace's owners\
> and admins and its organization's are told, at most 20 of them; otherwise they find the\
> request on the MCP servers page. A caller holds one pending request per server.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpServerRequestCreate":{"description":"A member asking the workspace's admins to add one server of the MCP catalog.","properties":{"catalog_name":{"description":"The catalog server's `name`, such as `com.example/mcp`","maxLength":512,"minLength":1,"title":"Catalog Name","type":"string"},"note":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"description":"What the member needs the server for, shown to the admins","title":"Note"}},"required":["catalog_name"],"title":"McpServerRequestCreate","type":"object"},"McpServerRequestPublic":{"description":"One of the caller's own requests for a catalog server.","properties":{"catalog_name":{"title":"Catalog Name","type":"string"},"catalog_server":{"anyOf":[{"$ref":"#/components/schemas/McpCatalogServerPublic"},{"type":"null"}],"description":"The catalog's entry as it is now; null once the catalog no longer lists the server"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Decided At"},"decision_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"An admin's reason for declining, when they gave one","title":"Decision Reason"},"id":{"format":"uuid","title":"Id","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"server_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The stored server an approval produced","title":"Server Id"},"status":{"enum":["pending","approved","declined","withdrawn"],"title":"Status","type":"string"},"title":{"description":"The catalog's title for the server when it was requested","title":"Title","type":"string"},"url":{"description":"The server's endpoint when it was requested","title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","catalog_name","title","url","note","status","decision_reason","decided_at","server_id","catalog_server","created_at"],"title":"McpServerRequestPublic","type":"object"},"McpCatalogServerPublic":{"description":"One remote MCP server the catalog lists.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The https image the registry entry names as the server's icon, null when it names none.","title":"Icon Url"},"id":{"format":"uuid","title":"Id","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo, which it fetched once and keeps. Null when it looked and found none. A URL without `v` has not been looked for yet, and asking for it starts the look.","title":"Logo Url"},"name":{"description":"The source's own identifier, such as `com.example/mcp`.","title":"Name","type":"string"},"publisher_kind":{"description":"`vendor` when the server is its maker's own: the endpoint lives on the domain the registry verified for the publisher's namespace, the server is named for that domain and nothing else, and the domain is not a hosting platform's. A website or title the publisher writes never earns it, and neither does a GitHub namespace. A few makers' servers the rule cannot recognize are listed by hand. `community` for every other, such as a gateway to another company's API.","enum":["vendor","community"],"title":"Publisher Kind","type":"string"},"requires_token":{"description":"The source says a call needs an Authorization header. False means nothing was declared, not that the server is open: one that signs users in with OAuth declares nothing.","title":"Requires Token","type":"boolean"},"source":{"description":"Where the entry came from. `registry` is the official MCP Registry; `curated` is a short list bundled with Otari of well-known servers the registry does not list.","title":"Source","type":"string"},"title":{"title":"Title","type":"string"},"url":{"description":"The server's streamable HTTP endpoint.","title":"Url","type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"}},"required":["id","name","title","description","url","requires_token","website_url","icon_url","logo_url","logo_tone","publisher_kind","version","source"],"title":"McpCatalogServerPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests":{"post":{"description":"Ask the workspace's owners and admins to add a server the MCP catalog lists.\n\nAny member who can see the workspace, a viewer included. The request keeps the title and URL\nthe catalog gives the server now. Where this deployment can send mail, the workspace's owners\nand admins and its organization's are told, at most 20 of them; otherwise they find the\nrequest on the MCP servers page. A caller holds one pending request per server.","operationId":"mcp-servers-request_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestPublic"}}},"description":"Successful Response"},"404":{"description":"The catalog lists no server by that name."},"409":{"description":"The workspace already has the server, or the caller's request for it is already waiting."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"The caller has 10 requests waiting in this workspace, or made 10 there in the last day."}},"summary":"Request Mcp Server","tags":["mcp-servers"]}}}}
```

## Decline Mcp Server Requests

> Decline every pending request for one catalog server.\
> \
> Organization owners/admins or this workspace's owners/admins. Each requester sees the\
> \`reason\`, and is mailed it where this deployment can send mail. To approve instead, add the\
> server to the workspace: storing a server at the requested URL approves every pending request\
> for it.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpServerRequestDecline":{"description":"Declines every pending request for one catalog server.","properties":{"catalog_name":{"maxLength":512,"minLength":1,"title":"Catalog Name","type":"string"},"reason":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"description":"Shown to each requester","title":"Reason"}},"required":["catalog_name"],"title":"McpServerRequestDecline","type":"object"},"McpServerRequestsDeclined":{"properties":{"declined":{"description":"How many requests were declined","title":"Declined","type":"integer"}},"required":["declined"],"title":"McpServerRequestsDeclined","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests/decline":{"post":{"description":"Decline every pending request for one catalog server.\n\nOrganization owners/admins or this workspace's owners/admins. Each requester sees the\n`reason`, and is mailed it where this deployment can send mail. To approve instead, add the\nserver to the workspace: storing a server at the requested URL approves every pending request\nfor it.","operationId":"mcp-servers-decline_mcp_server_requests","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestDecline"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestsDeclined"}}},"description":"Successful Response"},"404":{"description":"Nobody is waiting for that server in this workspace."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Decline Mcp Server Requests","tags":["mcp-servers"]}}}}
```

## List My Mcp Server Requests

> The caller's own requests in this workspace: the pending ones, and the answers they have not acknowledged.\
> \
> Any member who can see the workspace. Pending requests come first, then the answers, each\
> newest first, so a first page of 10 or more holds every pending one. An answer, approved or\
> declined, is listed until the caller acknowledges it. A declined request also leaves the list\
> when the caller asks for the server again or the server is added, and an approved one when its\
> server is deleted.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpServerRequestsPublic":{"description":"The caller's pending requests in a workspace, and the answers they have not acknowledged, newest first.","properties":{"data":{"items":{"$ref":"#/components/schemas/McpServerRequestPublic"},"title":"Data","type":"array"}},"required":["data"],"title":"McpServerRequestsPublic","type":"object"},"McpServerRequestPublic":{"description":"One of the caller's own requests for a catalog server.","properties":{"catalog_name":{"title":"Catalog Name","type":"string"},"catalog_server":{"anyOf":[{"$ref":"#/components/schemas/McpCatalogServerPublic"},{"type":"null"}],"description":"The catalog's entry as it is now; null once the catalog no longer lists the server"},"created_at":{"format":"date-time","title":"Created At","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Decided At"},"decision_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"An admin's reason for declining, when they gave one","title":"Decision Reason"},"id":{"format":"uuid","title":"Id","type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"server_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The stored server an approval produced","title":"Server Id"},"status":{"enum":["pending","approved","declined","withdrawn"],"title":"Status","type":"string"},"title":{"description":"The catalog's title for the server when it was requested","title":"Title","type":"string"},"url":{"description":"The server's endpoint when it was requested","title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","catalog_name","title","url","note","status","decision_reason","decided_at","server_id","catalog_server","created_at"],"title":"McpServerRequestPublic","type":"object"},"McpCatalogServerPublic":{"description":"One remote MCP server the catalog lists.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"icon_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The https image the registry entry names as the server's icon, null when it names none.","title":"Icon Url"},"id":{"format":"uuid","title":"Id","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo, which it fetched once and keeps. Null when it looked and found none. A URL without `v` has not been looked for yet, and asking for it starts the look.","title":"Logo Url"},"name":{"description":"The source's own identifier, such as `com.example/mcp`.","title":"Name","type":"string"},"publisher_kind":{"description":"`vendor` when the server is its maker's own: the endpoint lives on the domain the registry verified for the publisher's namespace, the server is named for that domain and nothing else, and the domain is not a hosting platform's. A website or title the publisher writes never earns it, and neither does a GitHub namespace. A few makers' servers the rule cannot recognize are listed by hand. `community` for every other, such as a gateway to another company's API.","enum":["vendor","community"],"title":"Publisher Kind","type":"string"},"requires_token":{"description":"The source says a call needs an Authorization header. False means nothing was declared, not that the server is open: one that signs users in with OAuth declares nothing.","title":"Requires Token","type":"boolean"},"source":{"description":"Where the entry came from. `registry` is the official MCP Registry; `curated` is a short list bundled with Otari of well-known servers the registry does not list.","title":"Source","type":"string"},"title":{"title":"Title","type":"string"},"url":{"description":"The server's streamable HTTP endpoint.","title":"Url","type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"}},"required":["id","name","title","description","url","requires_token","website_url","icon_url","logo_url","logo_tone","publisher_kind","version","source"],"title":"McpCatalogServerPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests/mine":{"get":{"description":"The caller's own requests in this workspace: the pending ones, and the answers they have not acknowledged.\n\nAny member who can see the workspace. Pending requests come first, then the answers, each\nnewest first, so a first page of 10 or more holds every pending one. An answer, approved or\ndeclined, is listed until the caller acknowledges it. A declined request also leaves the list\nwhen the caller asks for the server again or the server is added, and an approved one when its\nserver is deleted.","operationId":"mcp-servers-list_my_mcp_server_requests","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"description":"Number of records to skip","in":"query","name":"skip","required":false,"schema":{"default":0,"description":"Number of records to skip","minimum":0,"title":"Skip","type":"integer"}},{"description":"Maximum number of records to return","in":"query","name":"limit","required":false,"schema":{"default":50,"description":"Maximum number of records to return","maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestsPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"List My Mcp Server Requests","tags":["mcp-servers"]}}}}
```

## List Mcp Server Requesters

> Everyone waiting for one catalog server, a page at a time, the earliest first.\
> \
> Organization owners/admins or this workspace's owners/admins. For a server whose entry in the\
> list above names fewer requesters than its \`requester\_count\`.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpServerRequestersPublic":{"description":"A page of the members waiting for one catalog server in a workspace.","properties":{"count":{"description":"How many pending requests ask for this server in all","title":"Count","type":"integer"},"data":{"description":"Who asked, earliest first","items":{"$ref":"#/components/schemas/McpServerRequesterPublic"},"title":"Data","type":"array"}},"required":["data","count"],"title":"McpServerRequestersPublic","type":"object"},"McpServerRequesterPublic":{"description":"One member who asked for a server, as a workspace manager sees them.","properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"request_id":{"format":"uuid","title":"Request Id","type":"string"},"requested_at":{"format":"date-time","title":"Requested At","type":"string"},"user_id":{"format":"uuid","title":"User Id","type":"string"}},"required":["request_id","user_id","full_name","email","note","requested_at"],"title":"McpServerRequesterPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests/requesters":{"get":{"description":"Everyone waiting for one catalog server, a page at a time, the earliest first.\n\nOrganization owners/admins or this workspace's owners/admins. For a server whose entry in the\nlist above names fewer requesters than its `requester_count`.","operationId":"mcp-servers-list_mcp_server_requesters","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"description":"The catalog server asked for","in":"query","name":"catalog_name","required":true,"schema":{"description":"The catalog server asked for","maxLength":512,"minLength":1,"title":"Catalog Name","type":"string"}},{"description":"Number of records to skip","in":"query","name":"skip","required":false,"schema":{"default":0,"description":"Number of records to skip","minimum":0,"title":"Skip","type":"integer"}},{"description":"Maximum number of records to return","in":"query","name":"limit","required":false,"schema":{"default":100,"description":"Maximum number of records to return","maximum":100,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpServerRequestersPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"List Mcp Server Requesters","tags":["mcp-servers"]}}}}
```

## Withdraw Mcp Server Request

> Withdraw one of the caller's own pending requests. Someone else's request is a 404.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests/{request_id}":{"delete":{"description":"Withdraw one of the caller's own pending requests. Someone else's request is a 404.","operationId":"mcp-servers-withdraw_mcp_server_request","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","title":"Request Id","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"409":{"description":"The request was already answered or withdrawn."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Withdraw Mcp Server Request","tags":["mcp-servers"]}}}}
```

## Acknowledge Mcp Server Request

> Record that the caller has seen the answer to one of their own requests, so it is no longer listed for them.\
> \
> Repeating it changes nothing. Someone else's request is a 404.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-server-requests/{request_id}/acknowledge":{"post":{"description":"Record that the caller has seen the answer to one of their own requests, so it is no longer listed for them.\n\nRepeating it changes nothing. Someone else's request is a 404.","operationId":"mcp-servers-acknowledge_mcp_server_request","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"request_id","required":true,"schema":{"format":"uuid","title":"Request Id","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"409":{"description":"The request is still waiting for an answer."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Acknowledge Mcp Server Request","tags":["mcp-servers"]}}}}
```

## List Workspace 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.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServersPublic":{"properties":{"count":{"title":"Count","type":"integer"},"data":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"},"title":"Data","type":"array"},"sign_in_unavailable":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why this deployment cannot sign anyone in to an MCP server yet, in words for a workspace admin: a server in personal-accounts mode cannot be added, and nobody can sign in for everyone. Null when sign-ins work.","title":"Sign In Unavailable"}},"required":["data","count"],"title":"WorkspaceMcpServersPublic","type":"object"},"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers":{"get":{"description":"List the MCP servers configured for a workspace.\n\nReadable by any member who can see the workspace: these servers act on\nevery request a member sends through it, so what they are is a member's\nto view (otari-ai#1942). Changing them stays with organization\nowners/admins or this workspace's owners/admins. Authorization tokens are\nnever included; each server reports only whether it has one.","operationId":"mcp-servers-list_workspace_mcp_servers","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"description":"Number of records to skip","in":"query","name":"skip","required":false,"schema":{"default":0,"description":"Number of records to skip","minimum":0,"title":"Skip","type":"integer"}},{"description":"Maximum number of records to return","in":"query","name":"limit","required":false,"schema":{"default":100,"description":"Maximum number of records to return","maximum":1000,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServersPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"List Workspace Mcp Servers","tags":["mcp-servers"]}}}}
```

## Create Workspace Mcp Server

> 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.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerCreate":{"description":"Request body for registering a server.\n\n``authorization_token`` is never stored as sent: it is encrypted with\n``OTARI_SECRET_KEY`` and only the ciphertext is kept, the same convention\n`providers.ProviderCredential` and `OrgProviderKey` already use.","properties":{"allowed_tools":{"anyOf":[{"items":{"maxLength":256,"type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"description":"Allow-list of tool names; null exposes every tool the server offers","title":"Allowed Tools"},"attach_by_default":{"default":false,"description":"Add this server to every model request from the workspace's keys, as if the request named it in mcp_server_ids. A key the server's access rules grant nothing is left without it","title":"Attach By Default","type":"boolean"},"authorization_token":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}],"description":"Bearer token for the server; requires an https URL. Encrypted at rest, never returned","title":"Authorization Token"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","default":"shared","description":"Whose credential a call carries: 'shared' sends one credential for every caller, authorization_token or the account a manager signs in to for everyone once the server is stored; 'per_user' sends the calling user's own token, which each user gets by signing in to the server, and takes no authorization_token"},"enabled":{"default":true,"description":"Whether a request naming this server actually reaches it","title":"Enabled","type":"boolean"},"everyone_tools":{"description":"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","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"name":{"description":"Label for the server, unique within the workspace","maxLength":128,"minLength":1,"title":"Name","type":"string"},"oauth_client_id":{"anyOf":[{"maxLength":512,"minLength":1,"type":"string"},{"type":"null"}],"description":"For a server whose authorization server does not register clients on its own: the OAuth client ID a sign-in goes through. Omit it to let Otari register itself","title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"maxLength":8192,"minLength":1,"type":"string"},{"type":"null"}],"description":"The secret of oauth_client_id, when it has one. Encrypted at rest, never returned","title":"Oauth Client Secret"},"purpose_hint":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"description":"Hint prepended to the system message to help the model choose","title":"Purpose Hint"},"read_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"The tool names a manager labeled read, which '@read' in an access rule stands for. Omit it, or send null, and the labels follow the tools the server itself marks readOnlyHint","title":"Read Tools"},"url":{"description":"Streamable HTTP MCP endpoint","maxLength":2048,"minLength":1,"title":"Url","type":"string"}},"required":["name","url"],"title":"WorkspaceMcpServerCreate","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers":{"post":{"description":"Register an MCP server for a workspace. Organization owners/admins or this workspace's owners/admins.\n\nThe authorization token is encrypted at rest and never returned. The URL\nis checked for SSRF safety here as well as on the request path, and must\nuse https when a token is set. A name already used in this workspace is\nrefused with a 409.\n\nOnce stored, the server is connected to and its tools listed, and the\noutcome is returned as `health`. A server that fails this check is still\nstored, and `health.error` says why.","operationId":"mcp-servers-create_workspace_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerCreate"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Create Workspace Mcp Server","tags":["mcp-servers"]}}}}
```

## Check Workspace Mcp Server Connection

> 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 credential, which is\
> only sent to a URL on that server's own origin (scheme, host and port): any\
> other is a 400. The URL is checked for SSRF safety first, with the same 400\
> a create gets.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerCheckRequest":{"description":"Connection details to check without storing them, for a form to test before it saves.\n\n``server_id`` names a stored server whose credential stands in when\n``authorization_token`` is omitted, so an edit form can test a new path with\na token it was never shown. The credential is only sent to that server's own\norigin. ``\"\"`` checks with no token at all.","properties":{"allowed_tools":{"anyOf":[{"items":{"maxLength":256,"type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"description":"The allow-list to report the catalog against","title":"Allowed Tools"},"authorization_token":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}],"description":"Bearer token; omit to use the stored server's, if any","title":"Authorization Token"},"server_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"A stored server whose credential to use, when `url` is on that server's origin","title":"Server Id"},"url":{"description":"Streamable HTTP MCP endpoint","maxLength":2048,"minLength":1,"title":"Url","type":"string"}},"required":["url"],"title":"WorkspaceMcpServerCheckRequest","type":"object"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/check":{"post":{"description":"Check connection details without storing them. Organization owners/admins or this workspace's owners/admins.\n\nWhat a form's Test button calls before it saves. Answers with what a stored\nserver's `health` would say, and records nothing. Pass `server_id` and omit\n`authorization_token` to test with that server's stored credential, which is\nonly sent to a URL on that server's own origin (scheme, host and port): any\nother is a 400. The URL is checked for SSRF safety first, with the same 400\na create gets.","operationId":"mcp-servers-check_workspace_mcp_server_connection","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerCheckRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"}}},"description":"Successful Response"},"400":{"description":"The URL failed the SSRF or TLS check, or is on another origin than the stored server whose credential was asked for; nothing was sent to it."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"Every check slot on this gateway was busy. Try again shortly."}},"summary":"Check Workspace Mcp Server Connection","tags":["mcp-servers"]}}}}
```

## Get Workspace Mcp Key Access

> What one key reaches on each of the workspace's MCP servers.\
> \
> Organization owners/admins or this workspace's owners/admins.\
> \
> For each server, oldest first: the rule that decides (the key's own grant, its owner's, or the\
> server's \`everyone\_tools\`) and that rule's tool patterns, beside the server's own \`allowed\_tools\`\
> ceiling. A key of another workspace is answered with a 404.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerKeyAccess":{"description":"What one key reaches on one stored server, and which rule decides it.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"The server's own ceiling; null exposes every tool","title":"Allowed Tools"},"decided_by":{"enum":["key","user","everyone"],"title":"Decided By","type":"string"},"enabled":{"title":"Enabled","type":"boolean"},"grant_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"title":"Grant Id"},"name":{"title":"Name","type":"string"},"read_tools":{"description":"The server's tools labeled read, which '@read' in tools stands for","items":{"type":"string"},"title":"Read Tools","type":"array"},"server_id":{"format":"uuid","title":"Server Id","type":"string"},"tools":{"description":"The deciding rule's tool patterns; [] means the key cannot reach the server","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["server_id","name","enabled","decided_by","grant_id","tools","allowed_tools"],"title":"WorkspaceMcpServerKeyAccess","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/keys/{api_key_id}/access":{"get":{"description":"What one key reaches on each of the workspace's MCP servers.\n\nOrganization owners/admins or this workspace's owners/admins.\n\nFor each server, oldest first: the rule that decides (the key's own grant, its owner's, or the\nserver's `everyone_tools`) and that rule's tool patterns, beside the server's own `allowed_tools`\nceiling. A key of another workspace is answered with a 404.","operationId":"mcp-servers-get_workspace_mcp_key_access","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"api_key_id","required":true,"schema":{"title":"Api Key Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerKeyAccess"},"title":"Response Mcp-Servers-Get Workspace Mcp Key Access","type":"array"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Get Workspace Mcp Key Access","tags":["mcp-servers"]}}}}
```

## List Workspace Mcp Server Logos

> The logo of each of the workspace's MCP servers, and whether it needs a tile to stay visible.\
> \
> Paged as the server list is, oldest server first. Readable by any member who can\
> see the workspace, as the servers are. A logo is an admin's upload, else the\
> catalog's for the server's URL, else one the gateway found on the server's host.\
> Listing them makes the gateway fetch nothing.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerLogosPublic":{"description":"The logo of each of a workspace's MCP servers.","properties":{"data":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerLogoPublic"},"title":"Data","type":"array"}},"required":["data"],"title":"WorkspaceMcpServerLogosPublic","type":"object"},"WorkspaceMcpServerLogoPublic":{"description":"How the dashboard shows one of a workspace's MCP servers.","properties":{"has_logo_override":{"description":"An admin uploaded this server's logo.","title":"Has Logo Override","type":"boolean"},"logo_tile":{"description":"An admin's choice: a tile only where the logo would fade out, always, or never.","enum":["auto","always","never"],"title":"Logo Tile","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both, or the tile is `never`.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo: an admin's upload, else the catalog's logo for its URL, else one found on its host. Null when none was found; the dashboard shows the server's initial.","title":"Logo Url"},"server_id":{"format":"uuid","title":"Server Id","type":"string"}},"required":["server_id","logo_url","logo_tone","logo_tile","has_logo_override"],"title":"WorkspaceMcpServerLogoPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/logos":{"get":{"description":"The logo of each of the workspace's MCP servers, and whether it needs a tile to stay visible.\n\nPaged as the server list is, oldest server first. Readable by any member who can\nsee the workspace, as the servers are. A logo is an admin's upload, else the\ncatalog's for the server's URL, else one the gateway found on the server's host.\nListing them makes the gateway fetch nothing.","operationId":"mcp-servers-list_workspace_mcp_server_logos","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"description":"Number of records to skip","in":"query","name":"skip","required":false,"schema":{"default":0,"description":"Number of records to skip","minimum":0,"title":"Skip","type":"integer"}},{"description":"Maximum number of records to return","in":"query","name":"limit","required":false,"schema":{"default":100,"description":"Maximum number of records to return","maximum":1000,"minimum":1,"title":"Limit","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerLogosPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"List Workspace Mcp Server Logos","tags":["mcp-servers"]}}}}
```

## Get Workspace Mcp Server

> One MCP server of a workspace. Readable by any member who can see the workspace, as the list is.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}":{"get":{"description":"One MCP server of a workspace. Readable by any member who can see the workspace, as the list is.","operationId":"mcp-servers-get_workspace_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Get Workspace Mcp Server","tags":["mcp-servers"]}}}}
```

## Update Workspace Mcp Server

> 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.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerUpdate":{"description":"Partial update. Only the fields the caller sets are applied.\n\n``authorization_token`` has three states rather than two, which is what a\nwrite-only field needs: omit it to leave the stored token alone, send\n``\"\"`` to clear it, send a value to rotate it. An explicit ``null`` also\nleaves it alone, matching the platform: a client that serializes its whole\nform back, with an empty token box it never filled in, must not destroy a\ntoken it was never shown. ``oauth_client_secret`` follows the same three\nstates, and so does ``oauth_client_id``, where ``\"\"`` goes back to letting\nOtari register itself.\n\nChanging ``credential_mode``, the URL, or the OAuth client ends every\nsign-in to the server, each user's own and the shared account: the tokens\nwere issued for the server and the client as they were. Setting a token on\na shared server ends its shared account too, since a server sends one\ncredential.","properties":{"allowed_tools":{"anyOf":[{"items":{"maxLength":256,"type":"string"},"maxItems":200,"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"title":"Attach By Default","type":"boolean"},"authorization_token":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}],"title":"Authorization Token"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","title":"Credential Mode"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"items":{"type":"string"},"title":"Everyone Tools","type":"array"},"name":{"maxLength":128,"minLength":1,"title":"Name","type":"string"},"oauth_client_id":{"anyOf":[{"maxLength":512,"type":"string"},{"type":"null"}],"title":"Oauth Client Id"},"oauth_client_secret":{"anyOf":[{"maxLength":8192,"type":"string"},{"type":"null"}],"title":"Oauth Client Secret"},"purpose_hint":{"anyOf":[{"maxLength":2000,"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"The tool names a manager labeled read. An explicit null goes back to following the tools the server marks readOnlyHint; omit it to leave the labels as they are","title":"Read Tools"},"url":{"maxLength":2048,"minLength":1,"title":"Url","type":"string"}},"title":"WorkspaceMcpServerUpdate","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}":{"patch":{"description":"Update a server. Organization owners/admins or this workspace's owners/admins.\n\nOnly the fields sent are applied. Omit `authorization_token` to leave the\nstored token alone, send an empty string to clear it, or send a value to\nrotate it. A change to the URL, the token or the allow-list checks the\nserver again, as creating it does. `everyone_tools` is what every key of\nthe workspace may call; the server's grants override it per key or user.","operationId":"mcp-servers-update_workspace_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Update Workspace Mcp Server","tags":["mcp-servers"]}}}}
```

## Delete Workspace Mcp Server

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

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"Message":{"description":"A human-readable acknowledgment for an operation with nothing to return.","properties":{"message":{"description":"What happened.","title":"Message","type":"string"}},"required":["message"],"title":"Message","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}":{"delete":{"description":"Delete a server and the token stored with it. Organization owners/admins or this workspace's owners/admins.","operationId":"mcp-servers-delete_workspace_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Delete Workspace Mcp Server","tags":["mcp-servers"]}}}}
```

## Get Workspace Mcp Server Access

> A server's access list. Organization owners/admins or this workspace's owners/admins.\
> \
> \`everyone\_tools\` is what every key of the workspace may call. Each grant overrides it for one\
> key, or for one user and so every key they own; a key's own grant decides over its owner's.\
> Tool patterns are names, \`\*\`, \`prefix\*\`, or \`@read\` for the tools the server's \`read\_tools\`\
> labels read, and \`\[]\` denies. The server's \`allowed\_tools\` is a ceiling over all of them. A\
> server holds at most 1000 grants, returned oldest first.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerAccess":{"description":"A stored server's access list: what everyone may call, and the exceptions for keys and users.\n\nA key's own grant decides over its owner's, and either decides over ``everyone_tools``. The\nserver's ``allowed_tools`` is a ceiling over all of them.","properties":{"everyone_tools":{"items":{"type":"string"},"title":"Everyone Tools","type":"array"},"grants":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantPublic"},"title":"Grants","type":"array"}},"required":["everyone_tools","grants"],"title":"WorkspaceMcpServerAccess","type":"object"},"WorkspaceMcpServerGrantPublic":{"description":"One exception to a server's ``everyone_tools``: for a key, or for a user and so every key they own.","properties":{"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key a key grant names; null on a user's grant","title":"Api Key Id"},"created_at":{"title":"Created At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a key grant's key is active","title":"Key Active"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"subject":{"enum":["key","user"],"title":"Subject","type":"string"},"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"},"updated_at":{"title":"Updated At","type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user a grant names, or the owner of a key grant's key","title":"User Id"}},"required":["id","subject","api_key_id","user_id","tools","created_at","updated_at"],"title":"WorkspaceMcpServerGrantPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/access":{"get":{"description":"A server's access list. Organization owners/admins or this workspace's owners/admins.\n\n`everyone_tools` is what every key of the workspace may call. Each grant overrides it for one\nkey, or for one user and so every key they own; a key's own grant decides over its owner's.\nTool patterns are names, `*`, `prefix*`, or `@read` for the tools the server's `read_tools`\nlabels read, and `[]` denies. The server's `allowed_tools` is a ceiling over all of them. A\nserver holds at most 1000 grants, returned oldest first.","operationId":"mcp-servers-get_workspace_mcp_server_access","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerAccess"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Get Workspace Mcp Server Access","tags":["mcp-servers"]}}}}
```

## Check Workspace Mcp Server Access

> Whether a key may call a tool on a server, and which rule decides.\
> \
> Organization owners/admins or this workspace's owners/admins.\
> \
> Applies the same order a request does: the server must be enabled and its \`allowed\_tools\`\
> must include the tool, then the key's own grant decides, else its owner's, else the\
> server's \`everyone\_tools\`. A key of another workspace is answered with a 404.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerAccessCheck":{"description":"Whether one key may call one tool on a server, and which rule says so.","properties":{"allowed":{"title":"Allowed","type":"boolean"},"decided_by":{"description":"The key's own grant, its owner's, the server's everyone_tools, or the server itself (disabled, or its allowed_tools leaves the tool out)","enum":["key","user","everyone","server"],"title":"Decided By","type":"string"},"grant_id":{"anyOf":[{"format":"uuid","type":"string"},{"type":"null"}],"description":"The deciding grant, when a grant decided","title":"Grant Id"},"tools":{"description":"The deciding rule's tool patterns; the server's allowed_tools when it decided","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["allowed","decided_by","grant_id","tools"],"title":"WorkspaceMcpServerAccessCheck","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/access/check":{"get":{"description":"Whether a key may call a tool on a server, and which rule decides.\n\nOrganization owners/admins or this workspace's owners/admins.\n\nApplies the same order a request does: the server must be enabled and its `allowed_tools`\nmust include the tool, then the key's own grant decides, else its owner's, else the\nserver's `everyone_tools`. A key of another workspace is answered with a 404.","operationId":"mcp-servers-check_workspace_mcp_server_access","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}},{"description":"The key to test","in":"query","name":"api_key_id","required":true,"schema":{"description":"The key to test","maxLength":64,"minLength":1,"title":"Api Key Id","type":"string"}},{"description":"The tool name to test","in":"query","name":"tool","required":true,"schema":{"description":"The tool name to test","maxLength":256,"minLength":1,"title":"Tool","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerAccessCheck"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Check Workspace Mcp Server Access","tags":["mcp-servers"]}}}}
```

## Add Workspace Mcp Server Grants

> Give keys and users the same tools on a server.\
> \
> Organization owners/admins or this workspace's owners/admins.\
> \
> A key or user that already has a grant on the server gets these tools instead. A key must\
> belong to this workspace, and a user must own a key in it or be someone the Playground lets in\
> (a member of the workspace, or an owner or admin of its organization), named by their\
> identity's canonical id; a deleted user, or anyone else, is refused with a 400. Answers with the\
> server's whole access list.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerGrantsCreate":{"description":"Grant the same tools to several keys and users at once; a subject that already has a grant gets these tools.","properties":{"api_key_ids":{"items":{"maxLength":64,"minLength":1,"type":"string"},"maxItems":500,"title":"Api Key Ids","type":"array"},"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"},"user_ids":{"items":{"maxLength":255,"minLength":1,"type":"string"},"maxItems":500,"title":"User Ids","type":"array"}},"required":["tools"],"title":"WorkspaceMcpServerGrantsCreate","type":"object"},"WorkspaceMcpServerAccess":{"description":"A stored server's access list: what everyone may call, and the exceptions for keys and users.\n\nA key's own grant decides over its owner's, and either decides over ``everyone_tools``. The\nserver's ``allowed_tools`` is a ceiling over all of them.","properties":{"everyone_tools":{"items":{"type":"string"},"title":"Everyone Tools","type":"array"},"grants":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantPublic"},"title":"Grants","type":"array"}},"required":["everyone_tools","grants"],"title":"WorkspaceMcpServerAccess","type":"object"},"WorkspaceMcpServerGrantPublic":{"description":"One exception to a server's ``everyone_tools``: for a key, or for a user and so every key they own.","properties":{"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key a key grant names; null on a user's grant","title":"Api Key Id"},"created_at":{"title":"Created At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a key grant's key is active","title":"Key Active"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"subject":{"enum":["key","user"],"title":"Subject","type":"string"},"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"},"updated_at":{"title":"Updated At","type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user a grant names, or the owner of a key grant's key","title":"User Id"}},"required":["id","subject","api_key_id","user_id","tools","created_at","updated_at"],"title":"WorkspaceMcpServerGrantPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/access/grants":{"post":{"description":"Give keys and users the same tools on a server.\n\nOrganization owners/admins or this workspace's owners/admins.\n\nA key or user that already has a grant on the server gets these tools instead. A key must\nbelong to this workspace, and a user must own a key in it or be someone the Playground lets in\n(a member of the workspace, or an owner or admin of its organization), named by their\nidentity's canonical id; a deleted user, or anyone else, is refused with a 400. Answers with the\nserver's whole access list.","operationId":"mcp-servers-add_workspace_mcp_server_grants","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantsCreate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerAccess"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Add Workspace Mcp Server Grants","tags":["mcp-servers"]}}}}
```

## Update Workspace Mcp Server Grant

> Change the tools of one grant. Organization owners/admins or this workspace's owners/admins.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerGrantUpdate":{"description":"New tools for one grant.","properties":{"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["tools"],"title":"WorkspaceMcpServerGrantUpdate","type":"object"},"WorkspaceMcpServerAccess":{"description":"A stored server's access list: what everyone may call, and the exceptions for keys and users.\n\nA key's own grant decides over its owner's, and either decides over ``everyone_tools``. The\nserver's ``allowed_tools`` is a ceiling over all of them.","properties":{"everyone_tools":{"items":{"type":"string"},"title":"Everyone Tools","type":"array"},"grants":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantPublic"},"title":"Grants","type":"array"}},"required":["everyone_tools","grants"],"title":"WorkspaceMcpServerAccess","type":"object"},"WorkspaceMcpServerGrantPublic":{"description":"One exception to a server's ``everyone_tools``: for a key, or for a user and so every key they own.","properties":{"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key a key grant names; null on a user's grant","title":"Api Key Id"},"created_at":{"title":"Created At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a key grant's key is active","title":"Key Active"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"subject":{"enum":["key","user"],"title":"Subject","type":"string"},"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"},"updated_at":{"title":"Updated At","type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user a grant names, or the owner of a key grant's key","title":"User Id"}},"required":["id","subject","api_key_id","user_id","tools","created_at","updated_at"],"title":"WorkspaceMcpServerGrantPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/access/grants/{grant_id}":{"patch":{"description":"Change the tools of one grant. Organization owners/admins or this workspace's owners/admins.","operationId":"mcp-servers-update_workspace_mcp_server_grant","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}},{"in":"path","name":"grant_id","required":true,"schema":{"format":"uuid","title":"Grant Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantUpdate"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerAccess"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Update Workspace Mcp Server Grant","tags":["mcp-servers"]}}}}
```

## Delete Workspace Mcp Server Grant

> Remove one grant, so its key or user falls back to the next rule.\
> \
> Organization owners/admins or this workspace's owners/admins.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerAccess":{"description":"A stored server's access list: what everyone may call, and the exceptions for keys and users.\n\nA key's own grant decides over its owner's, and either decides over ``everyone_tools``. The\nserver's ``allowed_tools`` is a ceiling over all of them.","properties":{"everyone_tools":{"items":{"type":"string"},"title":"Everyone Tools","type":"array"},"grants":{"items":{"$ref":"#/components/schemas/WorkspaceMcpServerGrantPublic"},"title":"Grants","type":"array"}},"required":["everyone_tools","grants"],"title":"WorkspaceMcpServerAccess","type":"object"},"WorkspaceMcpServerGrantPublic":{"description":"One exception to a server's ``everyone_tools``: for a key, or for a user and so every key they own.","properties":{"api_key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key a key grant names; null on a user's grant","title":"Api Key Id"},"created_at":{"title":"Created At","type":"string"},"id":{"format":"uuid","title":"Id","type":"string"},"key_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a key grant's key is active","title":"Key Active"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"},"subject":{"enum":["key","user"],"title":"Subject","type":"string"},"tools":{"description":"Tool patterns: names, '*', 'prefix*' or '@read' for the server's read_tools; [] denies","items":{"type":"string"},"title":"Tools","type":"array"},"updated_at":{"title":"Updated At","type":"string"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user a grant names, or the owner of a key grant's key","title":"User Id"}},"required":["id","subject","api_key_id","user_id","tools","created_at","updated_at"],"title":"WorkspaceMcpServerGrantPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/access/grants/{grant_id}":{"delete":{"description":"Remove one grant, so its key or user falls back to the next rule.\n\nOrganization owners/admins or this workspace's owners/admins.","operationId":"mcp-servers-delete_workspace_mcp_server_grant","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}},{"in":"path","name":"grant_id","required":true,"schema":{"format":"uuid","title":"Grant Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerAccess"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Delete Workspace Mcp Server Grant","tags":["mcp-servers"]}}}}
```

## Check Workspace Mcp Server

> 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. A per-user server holds no token to check with and\
> is refused with a 409: start its check with \`POST .../check/sign-in\`.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/check":{"post":{"description":"Check a server's connection now. Organization owners/admins or this workspace's owners/admins.\n\nOpens one session, lists the server's tools, and stores the outcome as\n`health`. A server that fails is still a 200, with `health.status` set to\n`failing`. A 429 means every check slot on this gateway was busy and\nnothing was recorded. A per-user server holds no token to check with and\nis refused with a 409: start its check with `POST .../check/sign-in`.","operationId":"mcp-servers-check_workspace_mcp_server","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"},"429":{"description":"Every check slot on this gateway was busy; nothing was recorded. Try again shortly."}},"summary":"Check Workspace Mcp Server","tags":["mcp-servers"]}}}}
```

## Start Workspace Mcp Server Check Sign In

> Start a sign-in made only to check a per-user server. Organization or workspace owners/admins.\
> \
> Returns the authorization page to send the browser to, as starting a connection does. The\
> caller signs in with any account; finishing the sign-in (\`POST /mcp-connections/complete\`)\
> lists the server's tools once with the token it returns, stores the outcome as \`health\`, and\
> drops the token, revoking it where the authorization server allows. No connection is created,\
> and the caller's own connection, if they have one, is left as it was. A server in \`shared\` mode\
> is refused with a 409.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpConnectionStart":{"description":"What a caller sends to start their own sign-in to a per-user MCP server.","properties":{"return_to":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"description":"A dashboard path to land on once signed in, such as /tools/mcp-servers. Anything that is not a path inside the dashboard is refused","title":"Return To"}},"title":"McpConnectionStart","type":"object"},"McpConnectionStarted":{"description":"Where to send the caller's browser to sign in.","properties":{"authorization_url":{"description":"The MCP server's authorization page. It carries a single-use state that expires in 30 minutes","title":"Authorization Url","type":"string"}},"required":["authorization_url"],"title":"McpConnectionStarted","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/check/sign-in":{"post":{"description":"Start a sign-in made only to check a per-user server. Organization or workspace owners/admins.\n\nReturns the authorization page to send the browser to, as starting a connection does. The\ncaller signs in with any account; finishing the sign-in (`POST /mcp-connections/complete`)\nlists the server's tools once with the token it returns, stores the outcome as `health`, and\ndrops the token, revoking it where the authorization server allows. No connection is created,\nand the caller's own connection, if they have one, is left as it was. A server in `shared` mode\nis refused with a 409.","operationId":"mcp-servers-start_workspace_mcp_server_check_sign_in","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionStarted"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Start Workspace Mcp Server Check Sign In","tags":["mcp-servers"]}}}}
```

## Set Workspace Mcp Server Logo

> Set how a server's logo shows: the tile choice, and an uploaded PNG in place of its own logo.\
> \
> Organization owners/admins or this workspace's owners/admins. The upload is kept\
> apart from the logo the gateway fetches, so no fetch or catalog sync replaces it.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerLogoPublic":{"description":"How the dashboard shows one of a workspace's MCP servers.","properties":{"has_logo_override":{"description":"An admin uploaded this server's logo.","title":"Has Logo Override","type":"boolean"},"logo_tile":{"description":"An admin's choice: a tile only where the logo would fade out, always, or never.","enum":["auto","always","never"],"title":"Logo Tile","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both, or the tile is `never`.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo: an admin's upload, else the catalog's logo for its URL, else one found on its host. Null when none was found; the dashboard shows the server's initial.","title":"Logo Url"},"server_id":{"format":"uuid","title":"Server Id","type":"string"}},"required":["server_id","logo_url","logo_tone","logo_tile","has_logo_override"],"title":"WorkspaceMcpServerLogoPublic","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/logo":{"put":{"description":"Set how a server's logo shows: the tile choice, and an uploaded PNG in place of its own logo.\n\nOrganization owners/admins or this workspace's owners/admins. The upload is kept\napart from the logo the gateway fetches, so no fetch or catalog sync replaces it.","operationId":"mcp-servers-set_workspace_mcp_server_logo","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"properties":{"file":{"contentMediaType":"image/png","description":"A PNG of at most 512 KB to show instead of the server's own logo. Leave out to keep it.","type":"string"},"tile":{"description":"Whether the logo sits on a tile: where it would fade out, always, or never.","enum":["auto","always","never"],"type":"string"}},"required":["tile"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerLogoPublic"}}},"description":"Successful Response"},"413":{"description":"The body is larger than the logo limit."},"422":{"description":"The file is not a PNG, or the tile is not one of the choices."}},"summary":"Set Workspace Mcp Server Logo","tags":["mcp-servers"]}}}}
```

## Remove Workspace Mcp Server Logo

> Remove a server's uploaded logo, so it shows its own again. The tile choice stays.\
> \
> Organization owners/admins or this workspace's owners/admins.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerLogoPublic":{"description":"How the dashboard shows one of a workspace's MCP servers.","properties":{"has_logo_override":{"description":"An admin uploaded this server's logo.","title":"Has Logo Override","type":"boolean"},"logo_tile":{"description":"An admin's choice: a tile only where the logo would fade out, always, or never.","enum":["auto","always","never"],"title":"Logo Tile","type":"string"},"logo_tone":{"anyOf":[{"enum":["dark","light","tile"],"type":"string"},{"type":"null"}],"description":"Where the logo needs a tile to stay visible: `dark` ink on a dark background, `light` ink on a light background, `tile` on every background. Null when it reads on both, or the tile is `never`.","title":"Logo Tone"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where this gateway serves the server's logo: an admin's upload, else the catalog's logo for its URL, else one found on its host. Null when none was found; the dashboard shows the server's initial.","title":"Logo Url"},"server_id":{"format":"uuid","title":"Server Id","type":"string"}},"required":["server_id","logo_url","logo_tone","logo_tile","has_logo_override"],"title":"WorkspaceMcpServerLogoPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/logo":{"delete":{"description":"Remove a server's uploaded logo, so it shows its own again. The tile choice stays.\n\nOrganization owners/admins or this workspace's owners/admins.","operationId":"mcp-servers-remove_workspace_mcp_server_logo","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerLogoPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Remove Workspace Mcp Server Logo","tags":["mcp-servers"]}}}}
```

## Get My Workspace Mcp Server Tools

> The tools the caller may use on a server. Any member who can see the workspace.\
> \
> Applies the caller's own rule: their user's grant, else the server's \`everyone\_tools\`, within\
> its \`allowed\_tools\`; a disabled server admits nothing. The tool list comes from the server's\
> last passing check; where there is none and the server is per-user, it is listed with the\
> caller's own connection and not stored. \`known\` is false when neither is available.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerMyTools":{"description":"The tools the caller may use on one server, under the access rules that apply to them.\n\nThe rule is the caller's own: their user's grant, else the server's ``everyone_tools``. A key\nwith a grant of its own can reach more or less than this.","properties":{"access":{"description":"'all' when the rule admits every tool the server offers, 'none' when it admits nothing","enum":["all","some","none"],"title":"Access","type":"string"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the tool list was read; null when it is not known","title":"Checked At"},"decided_by":{"description":"The caller's own grant, the server's everyone_tools, or the server itself when it is disabled","enum":["user","everyone","server"],"title":"Decided By","type":"string"},"known":{"description":"Whether the server's tool list is known: from its last passing check, or listed just now with the caller's own connection to a per-user server","title":"Known","type":"boolean"},"server_id":{"format":"uuid","title":"Server Id","type":"string"},"tools":{"description":"The tools the caller may use, in the server's order; empty when not known","items":{"$ref":"#/components/schemas/McpToolSummary"},"title":"Tools","type":"array"}},"required":["server_id","decided_by","access","known","checked_at","tools"],"title":"WorkspaceMcpServerMyTools","type":"object"},"McpToolSummary":{"description":"One tool of a server: its name and, where the server described it, the first line of that description.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Untrusted text the server wrote; null when it has none","title":"Description"},"name":{"title":"Name","type":"string"},"read_only":{"default":false,"description":"Whether the tool is one of the server's read tools","title":"Read Only","type":"boolean"}},"required":["name"],"title":"McpToolSummary","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/my-tools":{"get":{"description":"The tools the caller may use on a server. Any member who can see the workspace.\n\nApplies the caller's own rule: their user's grant, else the server's `everyone_tools`, within\nits `allowed_tools`; a disabled server admits nothing. The tool list comes from the server's\nlast passing check; where there is none and the server is per-user, it is listed with the\ncaller's own connection and not stored. `known` is false when neither is available.","operationId":"mcp-servers-get_my_workspace_mcp_server_tools","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerMyTools"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Get My Workspace Mcp Server Tools","tags":["mcp-servers"]}}}}
```

## Start Workspace Mcp Server Shared Sign In

> Start a sign-in for everyone, to a shared server. Organization or workspace owners/admins.\
> \
> Returns the authorization page to send the browser to, as starting a connection does. The\
> caller signs in with the account the whole workspace should act as, so a service account is\
> the better choice. Finishing the sign-in (\`POST /mcp-connections/complete\`) stores that\
> account as the server's \`shared\_account\`: every caller's call then carries its token, which\
> Otari renews as it does a user's own, and a stored \`authorization\_token\` is removed. A server\
> in \`per\_user\` mode is refused with a 409.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"McpConnectionStart":{"description":"What a caller sends to start their own sign-in to a per-user MCP server.","properties":{"return_to":{"anyOf":[{"maxLength":2048,"type":"string"},{"type":"null"}],"description":"A dashboard path to land on once signed in, such as /tools/mcp-servers. Anything that is not a path inside the dashboard is refused","title":"Return To"}},"title":"McpConnectionStart","type":"object"},"McpConnectionStarted":{"description":"Where to send the caller's browser to sign in.","properties":{"authorization_url":{"description":"The MCP server's authorization page. It carries a single-use state that expires in 30 minutes","title":"Authorization Url","type":"string"}},"required":["authorization_url"],"title":"McpConnectionStarted","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/shared-account":{"post":{"description":"Start a sign-in for everyone, to a shared server. Organization or workspace owners/admins.\n\nReturns the authorization page to send the browser to, as starting a connection does. The\ncaller signs in with the account the whole workspace should act as, so a service account is\nthe better choice. Finishing the sign-in (`POST /mcp-connections/complete`) stores that\naccount as the server's `shared_account`: every caller's call then carries its token, which\nOtari renews as it does a user's own, and a stored `authorization_token` is removed. A server\nin `per_user` mode is refused with a 409.","operationId":"mcp-servers-start_workspace_mcp_server_shared_sign_in","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionStart"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/McpConnectionStarted"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"Start Workspace Mcp Server Shared Sign In","tags":["mcp-servers"]}}}}
```

## End Workspace Mcp Server Shared Account

> End a shared server's account. Organization owners/admins or this workspace's owners/admins.\
> \
> The stored tokens are deleted, and the authorization server is asked to revoke them where it\
> publishes a revocation endpoint. The server is then checked again with no credential, and\
> comes back with \`needs\_setup\` when it asks for one. A server with no shared account is a 404.

```json
{"openapi":"3.1.0","info":{"title":"otari","version":"0.55.1"},"security":[{"ApiKeyAuth":[]},{"XApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"Enter your API key here (sent as Otari-Key header).","in":"header","name":"Otari-Key","type":"apiKey"},"XApiKeyAuth":{"description":"Anthropic-native clients send credentials here (no Bearer prefix).","in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"WorkspaceMcpServerPublic":{"description":"The API-facing shape. Never carries the token, only whether one is set.\n\nNo ``last4``-style prefix either, unlike `OrgProviderKeyPublic`: a provider\nkey's last four digits let an operator match a stored key against the one\nin their provider's console, and there is no equivalent workflow for an MCP\nbearer token.","properties":{"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Tools"},"attach_by_default":{"description":"Whether every model request from the workspace's keys gets this server without naming it","title":"Attach By Default","type":"boolean"},"caller_access":{"anyOf":[{"enum":["all","read","some","none"],"type":"string"},{"type":"null"}],"description":"On a read of one server or of the list: what the access rules give the caller's own user. 'all' every tool, 'read' the read tools only, 'some' a named subset, 'none' nothing. A key with a rule of its own can differ","title":"Caller Access"},"connected_users":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"On a per_user server, for a caller who may manage the workspace: how many users have connected their own account. Null on a shared server, and for a caller who may not manage","title":"Connected Users"},"created_at":{"title":"Created At","type":"string"},"credential_mode":{"$ref":"#/components/schemas/McpCredentialMode","description":"'shared': one workspace credential for every caller. 'per_user': each user's own connection"},"enabled":{"title":"Enabled","type":"boolean"},"everyone_tools":{"description":"What every key of the workspace may call; [] denies everyone","items":{"type":"string"},"title":"Everyone Tools","type":"array"},"has_oauth_client_secret":{"title":"Has Oauth Client Secret","type":"boolean"},"has_token":{"title":"Has Token","type":"boolean"},"health":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceMcpServerHealth"},{"type":"null"}],"description":"What the gateway last learned by talking to the server, from a check or from a real request; null until either has happened"},"id":{"format":"uuid","title":"Id","type":"string"},"name":{"title":"Name","type":"string"},"needs_setup":{"default":false,"description":"A shared server with no token and no shared account, whose server asked for a credential when last reached. Requests skip it, as they skip a disabled server, until it has one","title":"Needs Setup","type":"boolean"},"oauth_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The OAuth client ID a manager supplied for sign-ins; null when Otari registers itself","title":"Oauth Client Id"},"purpose_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose Hint"},"read_tools":{"description":"The tool names '@read' stands for: a manager's labels, or until one edits them the tools the server marked readOnlyHint when its tools were first listed. A later listing never adds to them","items":{"type":"string"},"title":"Read Tools","type":"array"},"read_tools_from_server":{"description":"True while no manager has edited read_tools, so they are the readOnlyHint of the server's first listing","title":"Read Tools From Server","type":"boolean"},"shared_account":{"anyOf":[{"$ref":"#/components/schemas/McpSharedAccountPublic"},{"type":"null"}],"description":"On a shared server: the account a manager signed in to for everyone, which every call carries in place of a token; null when it has none"},"updated_at":{"title":"Updated At","type":"string"},"url":{"title":"Url","type":"string"},"workspace_id":{"format":"uuid","title":"Workspace Id","type":"string"}},"required":["id","workspace_id","name","url","purpose_hint","allowed_tools","enabled","everyone_tools","read_tools","read_tools_from_server","has_token","credential_mode","oauth_client_id","has_oauth_client_secret","attach_by_default","health","created_at","updated_at"],"title":"WorkspaceMcpServerPublic","type":"object"},"McpCredentialMode":{"description":"Whose credential the gateway sends to a stored MCP server.","enum":["shared","per_user"],"title":"McpCredentialMode","type":"string"},"WorkspaceMcpServerHealth":{"description":"The last time the gateway talked to the server: whether it answered, and what it found.\n\nWritten by a manager's check and by real requests that reach the server. Describes the server\nas the gateway saw it at ``checked_at``, not now: a server that answered then can be down\nsince, and the request path checks nothing in advance on the strength of this.","properties":{"checked_at":{"title":"Checked At","type":"string"},"error":{"anyOf":[{"$ref":"#/components/schemas/CheckFailure"},{"type":"null"}],"description":"Why the check failed; null when healthy"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"The HTTP status the server refused with, if any","title":"Http Status"},"missing_allowed_tools":{"description":"Allow-listed names the server did not offer","items":{"type":"string"},"title":"Missing Allowed Tools","type":"array"},"read_only_hinted_tools":{"description":"Those of tools the server annotates readOnlyHint in this listing: untrusted, and never what '@read' stands for after the server's first listing","items":{"type":"string"},"title":"Read Only Hinted Tools","type":"array"},"status":{"enum":["healthy","failing"],"title":"Status","type":"string"},"tool_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Live tools the allow-list admits; null when the check failed, or when the server answered a request that did not list its tools and no listing is on record","title":"Tool Count"},"tool_descriptions":{"additionalProperties":{"type":"string"},"description":"The first line of each offered tool's own description, where it has one: untrusted text the server wrote, for a person to read","title":"Tool Descriptions","type":"object"},"tools":{"description":"Every tool name the server offers, allowed or not, up to 200; empty on a failure","items":{"type":"string"},"title":"Tools","type":"array"}},"required":["status","checked_at"],"title":"WorkspaceMcpServerHealth","type":"object"},"CheckFailure":{"description":"Why a stored server failed its connection check.\n\nStored on the server's row and shown to whoever manages it, so each value\nnames a cause an operator can act on, and none carries anything the remote\nserver said. The first two are decided before any connection is opened.","enum":["unsafe_url","credentials_unavailable","unreachable","tls_failed","timeout","redirected","unauthorized","forbidden","not_found","server_error","http_error","not_mcp","limits_exceeded","connection_failed","sign_in_unsupported","sign_in_unavailable"],"title":"CheckFailure","type":"string"},"McpSharedAccountPublic":{"description":"The account a manager signed in to for everyone on a shared server. Never carries a token.","properties":{"renewable":{"description":"Whether Otari can renew the token on its own; false means signing in again once it expires","title":"Renewable","type":"boolean"},"signed_in_at":{"title":"Signed In At","type":"string"},"signed_in_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name, or else the email, of the dashboard account that signed in; null once it is gone","title":"Signed In By"}},"required":["signed_in_by","signed_in_at","renewable"],"title":"McpSharedAccountPublic","type":"object"},"HTTPValidationError":{"properties":{"code":{"const":"invalid_request","description":"Stable error code, also sent as the Otari-Error-Code header.","title":"Code","type":"string"},"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"}}},"paths":{"/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}/shared-account":{"delete":{"description":"End a shared server's account. Organization owners/admins or this workspace's owners/admins.\n\nThe stored tokens are deleted, and the authorization server is asked to revoke them where it\npublishes a revocation endpoint. The server is then checked again with no credential, and\ncomes back with `needs_setup` when it asks for one. A server with no shared account is a 404.","operationId":"mcp-servers-end_workspace_mcp_server_shared_account","parameters":[{"in":"path","name":"workspace_id","required":true,"schema":{"format":"uuid","title":"Workspace Id","type":"string"}},{"in":"path","name":"server_id","required":true,"schema":{"format":"uuid","title":"Server Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMcpServerPublic"}}},"description":"Successful Response"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}},"description":"Validation Error"}},"summary":"End Workspace Mcp Server Shared Account","tags":["mcp-servers"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otari.ai/reference/api-reference/mcp-servers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
