v51

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01302395850.8 KB
v2
mcp
mcp

Store a bearer token for an MCP server

Store a manually provided bearer token as an MCP credential.

Used by the Copilot MCPSetupCard when the server doesn't support the MCP OAuth discovery flow (returns 400 from /oauth/login). Subsequent run_mcp_tool calls will automatically pick up the token via _auto_lookup_credential.

post/api/mcp/token

Request body

server_urlstring required

MCP server URL the token authenticates against

tokenstring password required

Bearer token / API key for the MCP server

Response

Successful Response

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

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

is_managedboolean