Files
ss-tools/docs/openapi/litellm/chunks_paths/paths_{mcp_server_name}.json
busya 30ba70933d feat(llm): mask API keys in UI responses and prevent masked-key leakage in fetch/test/save payloads
- Add mask_api_key() and is_masked_or_placeholder() to llm_provider service
- Return masked keys in all provider CRUD endpoints
- Reject masked/placeholder keys in fetch_models and test_provider_config
- Show masked key with Change button in ProviderConfig.svelte edit form
- Exclude masked keys from fetch-models, test, and submit payloads on frontend
- Update semantics-core skill with clarified complexity tier rules
- Switch agent modes from subagent to all
2026-05-15 23:34:09 +03:00

507 lines
12 KiB
JSON

{
"/{mcp_server_name}/authorize": {
"get": {
"tags": [
"mcp"
],
"summary": "Authorize",
"operationId": "authorize__mcp_server_name__authorize_get",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mcp Server Name"
}
},
{
"name": "redirect_uri",
"in": "query",
"required": true,
"schema": {
"type": "string",
"title": "Redirect Uri"
}
},
{
"name": "client_id",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Client Id"
}
},
{
"name": "state",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "",
"title": "State"
}
},
{
"name": "code_challenge",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Code Challenge"
}
},
{
"name": "code_challenge_method",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Code Challenge Method"
}
},
{
"name": "response_type",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Response Type"
}
},
{
"name": "scope",
"in": "query",
"required": false,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Scope"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/{mcp_server_name}/mcp": {
"patch": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"options": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"post": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"head": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"get": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"summary": "Dynamic Mcp Route",
"description": "Handle dynamic MCP server routes like /github_mcp/mcp and toolset routes like /devtooling-prod/mcp",
"operationId": "dynamic_mcp_route__mcp_server_name__mcp_patch",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/{mcp_server_name}/register": {
"post": {
"tags": [
"mcp"
],
"summary": "Register Client",
"operationId": "register_client__mcp_server_name__register_post",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mcp Server Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/{mcp_server_name}/token": {
"post": {
"tags": [
"mcp"
],
"summary": "Token Endpoint",
"description": "Accept the authorization code from client and exchange it for OAuth token.\nSupports PKCE flow by forwarding code_verifier to upstream provider.\n\n1. Call the token endpoint with PKCE parameters\n2. Store the user's token in the db - and generate a LiteLLM virtual key\n3. Return the token\n4. Return a virtual key in this response",
"operationId": "token_endpoint__mcp_server_name__token_post",
"parameters": [
{
"name": "mcp_server_name",
"in": "path",
"required": true,
"schema": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Mcp Server Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/Body_token_endpoint__mcp_server_name__token_post"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
}