Skip to content

Reference

Grants

The grants endpoints of the HTTP API.

GET /me/grants

List the MCP clients the signed-in person has connected.

Newest first, live connections only: a disconnected or expired one is not listed. client.name is the name the client registered under and is not verified, and null when it registered none. redirect_host and local describe the client’s first registered redirect URI. last_used_at is null until the client first uses an access token. Only signed-in people may call it: a service-account key gets 403 forbidden.

Parameters

Name In Type Description
limit query integer Between 1 and 200. Default 50.
cursor query string

Responses

Status Description Body
200 One page of connected agents. ConnectedAgentList
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
500 The server failed to handle the request. Error

PATCH /me/grants/{id}

Set how one of the signed-in person’s MCP clients makes changes.

direct is the default; propose makes the agent’s dashboard writes proposals that someone who can edit merges. The mode applies from the agent’s next request. Another person’s connection, a connection already disconnected and one that does not exist all answer 404 not_found. Only signed-in people may call it: a service-account key gets 403 forbidden, so no agent changes its own mode.

Parameters

Name In Type Description
id (required) path string (uuid)

Request body

application/json, required.

A UpdateConnectedAgentRequest object.

Responses

Status Description Body
200 The connection with its new mode. ConnectedAgent
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
404 The resource does not exist, or the caller cannot see it; the two are never told apart. Error
500 The server failed to handle the request. Error

DELETE /me/grants/{id}

Disconnect one of the signed-in person’s MCP clients.

The client’s access and refresh tokens stop working at once and the client must be approved again. Another person’s connection, a connection already disconnected and one that does not exist all answer 404 not_found. Only signed-in people may call it: a service-account key gets 403 forbidden.

Parameters

Name In Type Description
id (required) path string (uuid)

Responses

Status Description Body
204 The connection is disconnected.
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
404 The resource does not exist, or the caller cannot see it; the two are never told apart. Error
500 The server failed to handle the request. Error

GET /grants

List every person’s connected MCP clients.

Admin only. Same shape and order as the signed-in person’s own list, with every person’s live connections. Service accounts cannot call it.

Parameters

Name In Type Description
limit query integer Between 1 and 200. Default 50.
cursor query string

Responses

Status Description Body
200 One page of connected agents. ConnectedAgentList
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
500 The server failed to handle the request. Error

DELETE /grants/{id}

Disconnect any person’s MCP client.

Admin only. The connection’s tokens stop working at once, and the person can connect the client again. A connection already disconnected or that does not exist answers 404 not_found. Service accounts cannot call it.

Parameters

Name In Type Description
id (required) path string (uuid)

Responses

Status Description Body
204 The connection is disconnected.
400 The request is malformed or fails validation. Error
401 Authentication is missing or invalid. Error
403 The caller is not allowed to perform the request; a role that is too low is code forbidden_role. Error
404 The resource does not exist, or the caller cannot see it; the two are never told apart. Error
500 The server failed to handle the request. Error

Generated from api/openapi.yaml at c770e5e0. Report a problem.

Reading this as an agent? Every page is in /llms.txt and /llms-full.txt as plain text.

/observeOpen source under Apache-2.0.Grafana is a trademark of Grafana Labs. Elasticsearch and Kibana are trademarks of Elasticsearch B.V. OpenSearch is a trademark of LF Projects, LLC. SlashObserve is not affiliated with or endorsed by any of them.

Search pages and headings.