Skip to main content
POST
/
api
/
mcp
/
detect-auth
curl -X POST https://api.example.com/api/mcp/detect-auth \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://mcp-server.example.com"
  }'
{
  "success": true,
  "isAuthenticated": false,
  "authType": "oauth",
  "requiresAuth": true
}

Request Body

url
string
required
MCP server URL to analyze (must be a valid URI)

Response

success
boolean
Whether the detection was successful
isAuthenticated
boolean
Whether the server is currently authenticated
authType
string
Detected authentication type: oauth, bearer, custom, or none
requiresAuth
boolean
Whether the server requires authentication
error
string
Error message if detection failed
curl -X POST https://api.example.com/api/mcp/detect-auth \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://mcp-server.example.com"
  }'
{
  "success": true,
  "isAuthenticated": false,
  "authType": "oauth",
  "requiresAuth": true
}