Check MCP server health
import requests
url = "https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health \
--header 'Authorization: Bearer <token>'{
"server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"transport": "stdio",
"enabled": true,
"status": "ok",
"error": "<string>",
"tool_count": 123,
"tool_names": [
"<string>"
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}MCP Servers
Check MCP server health
Connects to the server now and reports whether it answered, with the names of the allowed tools it offers. A server that cannot be reached is still a 200, with status error and the reason. Only http and sse servers can be probed.
GET
/
api
/
v1
/
org
/
mcp-servers
/
{server_id}
/
health
Check MCP server health
import requests
url = "https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/mcp-servers/{server_id}/health \
--header 'Authorization: Bearer <token>'{
"server_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"transport": "stdio",
"enabled": true,
"status": "ok",
"error": "<string>",
"tool_count": 123,
"tool_names": [
"<string>"
]
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The registered MCP server's id.
Response
The probe result
Available options:
stdio, http, sse ok when the server answered, error when it could not be reached or refused, unsupported_transport for a stdio server, which cannot be probed.
Available options:
ok, error, unsupported_transport Why the probe failed, or null.
How many allowed tools the server offers.
The allowed tools the server offers.