codemend_project_health
Check the health and status of your Codemend monitoring setup to ensure production error tracking functions correctly.
Instructions
Check the health and status of your Codemend monitoring setup
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:309-330 (handler)The implementation of the 'codemend_project_health' tool, which registers the tool and defines its handler to perform a GET request to '/api/health'.
server.tool( "codemend_project_health", "Check the health and status of your Codemend monitoring setup", {}, async (): Promise<ToolResult> => { try { const apiKey = getApiKey(); const res = await apiRequest<unknown>("GET", "/api/health", apiKey); if (!res.ok) { const msg = typeof res.data === "object" && res.data !== null && "error" in res.data ? String((res.data as Record<string, unknown>).error) : `HTTP ${res.status}`; return errResult(msg); } return okResult(res.data); } catch (err) { return errResult(err instanceof Error ? err.message : String(err)); } }