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"
}'
const response = await fetch('https://api.example.com/api/mcp/detect-auth', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://mcp-server.example.com'
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.example.com/api/mcp/detect-auth',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"isAuthenticated": false,
"authType": "oauth",
"requiresAuth": true
}
{
"success": true,
"isAuthenticated": true,
"authType": "none",
"requiresAuth": false
}
Connection
Detect Authentication
Analyzes an MCP server URL to determine required authentication method
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"
}'
const response = await fetch('https://api.example.com/api/mcp/detect-auth', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://mcp-server.example.com'
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.example.com/api/mcp/detect-auth',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"isAuthenticated": false,
"authType": "oauth",
"requiresAuth": true
}
{
"success": true,
"isAuthenticated": true,
"authType": "none",
"requiresAuth": false
}
Request Body
string
required
MCP server URL to analyze (must be a valid URI)
Response
boolean
Whether the detection was successful
boolean
Whether the server is currently authenticated
string
Detected authentication type:
oauth, bearer, custom, or noneboolean
Whether the server requires authentication
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"
}'
const response = await fetch('https://api.example.com/api/mcp/detect-auth', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://mcp-server.example.com'
})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.example.com/api/mcp/detect-auth',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"isAuthenticated": false,
"authType": "oauth",
"requiresAuth": true
}
{
"success": true,
"isAuthenticated": true,
"authType": "none",
"requiresAuth": false
}
⌘I

