mcp

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

server_idstring nullable
server_namestring nullable
aliasstring nullable
descriptionstring nullable
transport'sse' | 'http' | 'stdio'
auth_type'none' | 'api_key' | 'bearer_token' | 'basic' | 'authorization' | 'oauth2' nullable
urlstring nullable
spec_pathstring nullable
mcp_infoobject nullable
mcp_access_groupsstring[]
allowed_toolsstring[] nullable
extra_headersstring[] nullable
static_headersobject nullable
commandstring nullable
argsstring[]
envobject
authorization_urlstring nullable
token_urlstring nullable
registration_urlstring nullable
allow_all_keysboolean
available_on_public_internetboolean

Response

Successful Response

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

Changes

No recorded changes to this endpoint across all 1 revision of this API.