ServersSet client access
Servers

Set client access

Set access control for a specific client on a server.

curl -X PUT "https://api.mythic-analytics.com/api/v1/mcp/servers/example_string/access/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "allowed": true,
  "tool_restrictions": [
    "example_string"
  ]
}'
{
  "success": true
}
PUT
/mcp/servers/{id}/access/{clientId}
PUT
Security Scheme
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
path
idstring
Required

MCP server identifier.

path
clientIdstring
Required

Client identifier.

Content-Typestring
Required

The media type of the request body

Options: application/json
allowedboolean
Required

Whether the client can access the server.

tool_restrictionsarray

Optional list of tool IDs the client can access. Empty means all tools.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Path Parameters

idstring
Required

MCP server identifier.

clientIdstring
Required

Client identifier.

Body

application/json
allowedboolean
Required

Whether the client can access the server.

tool_restrictionsarray

Optional list of tool IDs the client can access. Empty means all tools.

Responses

successboolean