boj_health
Check the operational status of the BoJ-server to verify its availability and functionality.
Instructions
Check BoJ server health status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-bridge/main.js:95-102 (handler)The fetchHealth function that retrieves the status of the BoJ server.
async function fetchHealth() { try { const res = await fetch(`${BOJ_BASE}/health`); return await res.json(); } catch { return { status: "offline", message: "BoJ REST API not reachable. Start the server with: systemctl --user start boj-server" }; } } - mcp-bridge/main.js:300-304 (registration)Registration of the boj_health tool.
tools.push({ name: "boj_health", description: "Check BoJ server health status", inputSchema: { type: "object", properties: {} }, }); - mcp-bridge/main.js:626-634 (handler)The switch case handler in the main tool execution logic for boj_health.
case "boj_health": { const health = await fetchHealth(); sendResult(id, { content: [ { type: "text", text: JSON.stringify(health, null, 2) }, ], }); break; }