Manage Keys & ServersSet per-client tool access

Set per-client tool access

Allows or denies one upstream tool for one client. Upserted, so repeating the call updates the existing record. PUT is accepted on this path and behaves identically.

curl -X POST "https://mythic-analytics.gulp.workers.dev/builder/mcp/tools/123e4567-e89b-12d3-a456-426614174000/access" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "location_id": "loc_abc123",
  "is_allowed": true
}'
{
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "tool_id": "123e4567-e89b-12d3-a456-426614174000",
    "location_id": "loc_abc123",
    "is_allowed": true
  }
}
POST
/builder/mcp/tools/{id}/access
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).
Content-Typestring
Required

The media type of the request body

Options: application/json
location_idstring

Client the rule applies to. Falls back to the location bound to the request; one of the two must be present.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An agency key (ak_). Location secret keys are rejected. Scoped keys (mcp_) are not accepted here (403 not_available_to_scoped_keys).

Path Parameters

Body

application/json
location_idstring

Client the rule applies to. Falls back to the location bound to the request; one of the two must be present.

Example:
loc_abc123

Responses

dataobject