curl -X POST https://api.example.com/api/mcp/detect-transport \
-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-transport', {
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-transport',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"message": "Transport types detected successfully",
"supportedTypes": ["http", "sse"],
"recommended": "http"
}
{
"success": false,
"message": "Unable to detect transport types"
}
Connection
Detect Transport Types
Analyzes an MCP server URL to determine supported transport protocols
POST
/
api
/
mcp
/
detect-transport
curl -X POST https://api.example.com/api/mcp/detect-transport \
-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-transport', {
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-transport',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"message": "Transport types detected successfully",
"supportedTypes": ["http", "sse"],
"recommended": "http"
}
{
"success": false,
"message": "Unable to detect transport types"
}
Request Body
string
required
MCP server URL to analyze (must be a valid URI)
Response
boolean
Whether the detection was successful
string
Status message or error details
array
Array of supported transport types:
stdio, http, and/or ssestring
Recommended transport type for this server
curl -X POST https://api.example.com/api/mcp/detect-transport \
-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-transport', {
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-transport',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'url': 'https://mcp-server.example.com'
}
)
data = response.json()
{
"success": true,
"message": "Transport types detected successfully",
"supportedTypes": ["http", "sse"],
"recommended": "http"
}
{
"success": false,
"message": "Unable to detect transport types"
}
⌘I

