We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/siscale/arcanna-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
health_check.py•1.08 KiB
from typing import Callable, List
import requests
from arcanna_mcp_server.environment import MANAGEMENT_API_KEY
from arcanna_mcp_server.constants import HEALTH_CHECK_URL
from arcanna_mcp_server.utils.exceptions_handler import handle_exceptions
from arcanna_mcp_server.utils.tool_scopes import requires_scope
def export_tools() -> List[Callable]:
return [
health_check
]
@handle_exceptions
@requires_scope('public')
async def health_check() -> dict:
"""
Health check of Arcanna Management API Server.
Returns:
--------
dict
A dictionary with the following keys:
- status (str): The current status of the operation
- reason (str): Short description of the error if one occurred; empty if successful.
- reason_details: (str): A message describing the error if one occurred; empty if successful.
"""
headers = {
"x-arcanna-api-key": MANAGEMENT_API_KEY,
"Content-Type": "application/json"
}
response = requests.get(HEALTH_CHECK_URL, headers=headers)
return response.json()