mcp_management

Add Session Mcp Server

Temporarily cache an MCP server in memory without writing to the database

post/v1/mcp/server/oauth/session

Headers

litellm-changed-bystring nullable

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

The litellm-changed-by header enables tracking of actions performed by authorized users on behalf of other users, providing an audit trail for accountability

Request body

aliasstring nullable
allow_all_keysboolean
allowed_toolsstring[] nullable
approval_statusstring nullable

Server-managed: set by the endpoint; caller values are overridden.

argsstring[]
audiencestring nullable
auth_type'none' | 'api_key' | 'bearer_token' | 'basic' | 'authorization' | 'oauth2' | 'aws_sigv4' | 'token' | 'oauth2_token_exchange' | 'oauth2_id_jag' | 'true_passthrough' | 'oauth_delegate' nullable
authorization_urlstring nullable
available_on_public_internetboolean
byok_api_key_help_urlstring nullable
byok_descriptionstring[]
commandstring nullable
dcr_bridgeboolean nullable
delegate_auth_to_upstreamboolean
descriptionstring nullable
envobject
extra_headersstring[] nullable
instructionsstring nullable
is_byokboolean
issuerstring nullable
max_concurrent_requestsinteger nullable
mcp_access_groupsstring[]
mcp_infoobject nullable
oauth2_flow'client_credentials' | 'authorization_code' nullable
oauth_passthroughboolean
registration_urlstring nullable
server_idstring nullable
server_namestring nullable
source_urlstring nullable
spec_pathstring nullable
static_headersobject nullable
subject_token_typestring nullable
submitted_atstring date-time nullable

Server-managed: set by the endpoint; caller values are overridden.

submitted_bystring nullable

Server-managed: set by the endpoint; caller values are overridden.

timeoutnumber nullable
token_exchange_endpointstring nullable
token_exchange_profilestring nullable
token_urlstring nullable
tool_name_to_descriptionobject nullable
tool_name_to_display_nameobject nullable
transport'sse' | 'http' | 'stdio'
urlstring nullable

Response

Successful Response

{"stackTrail":"paths:/v1/mcp/server/oauth/session:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes