v2
mcp
mcp

Store a bearer token for an MCP server

Store a manually entered MCP credential. Accepts a bare token (sent as Bearer, unchanged from before), an explicit Basic <value> or Bearer <value>, or a complete Authorization: header.

post/api/mcp/token

Request body

server_urlstring required

MCP server URL the credential authenticates against

tokenstring password required

Bare Bearer token, Basic/Bearer value, or complete Authorization header

Response

Successful Response

idstring required
providerstring required
type'api_key' | 'oauth2' | 'user_password' | 'host_scoped' | 'device_code' required
titlestring nullable required
scopesstring[] nullable required
usernamestring nullable required
hoststring nullable

Host pattern for host-scoped or MCP server URL for MCP credentials

mcp_auth_scheme'basic' | 'bearer' nullable

Manual authorization scheme for MCP credentials

is_managedboolean

Changes

Changed in 2 of the 165 revisions of this API.21

    • ●

      the request property's maxLength was set to 8192

      request-property-max-length-set

    • ○

      added the optional property to the response with the status

      response-optional-property-added

    • ●

      added the new device_code enum value to the response property for the response status

      response-property-enum-value-added