Configure server OAuth
Configure OAuth for an MCP server, enabling per-user OAuth authentication. The client_secret is encrypted at rest using AES-256-GCM.
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://loading/api/v1/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/oauth-config" \ -H "Content-Type: application/json" \ -d '{ "provider": "string", "client_id": "string", "client_secret": "string", "authorize_url": "string", "token_url": "string" }'{
"provider": "string",
"client_id": "string",
"client_secret_masked": "string",
"authorize_url": "string",
"token_url": "string",
"refresh_url": "string",
"scopes": [
"string"
],
"token_endpoint_auth_method": "string",
"pkce_required": true
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Check server health
Check health of an MCP server by attempting to connect and list its tools. Updates status to RUNNING if successful, ERROR if failed.
AI-assisted schema correction
Use AI to validate and correct a tool's JSON Schema. Accepts an optional request body with user-provided schema and prompt. When no body is sent, falls back to the tool's effective schema from the DB. Returns corrected schema with explanation of changes. Returns 503 if no LLM provider is configured.
