Agent SwarmAgent Swarm

MCP OAuth

MCP OAuth API endpoints

DELETE
/api/mcp-oauth/{mcpServerId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Query Parameters

userId?string

Response Body

curl -X DELETE "http://localhost:3013/api/mcp-oauth/string"
Empty
Empty
GET
/api/mcp-oauth/{mcpServerId}/authorize

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Query Parameters

redirect?string
userId?string
scopes?string

Response Body

curl -X GET "http://localhost:3013/api/mcp-oauth/string/authorize"
Empty
Empty
Empty
POST
/api/mcp-oauth/{mcpServerId}/manual-client

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:3013/api/mcp-oauth/string/manual-client" \  -H "Content-Type: application/json" \  -d '{    "clientId": "string"  }'
Empty
Empty
Empty
GET
/api/mcp-oauth/{mcpServerId}/metadata

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Response Body

curl -X GET "http://localhost:3013/api/mcp-oauth/string/metadata"
Empty
Empty
Empty
POST
/api/mcp-oauth/{mcpServerId}/refresh

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

userId?string

Response Body

curl -X POST "http://localhost:3013/api/mcp-oauth/string/refresh" \  -H "Content-Type: application/json" \  -d '{}'
Empty
Empty
Empty
GET
/api/mcp-oauth/{mcpServerId}/status

Authorization

bearerAuth
AuthorizationBearer <token>

API key via Authorization: Bearer <API_KEY>

In: header

Path Parameters

mcpServerId*string

Query Parameters

userId?string

Response Body

curl -X GET "http://localhost:3013/api/mcp-oauth/string/status"
Empty
Empty
GET
/api/mcp-oauth/callback

Query Parameters

code?string
state?string
error?string
error_description?string

Response Body

curl -X GET "http://localhost:3013/api/mcp-oauth/callback"
Empty
Empty