check_alephant_connection
Check if Alephant API is reachable and credentials are valid for the current MCP configuration.
Instructions
Checks Alephant API connectivity and credential usability for the current MCP mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/shared/health.ts:6-30 (handler)The registerConnectionHealthTool function registers the 'check_alephant_connection' tool. In vk mode, it calls cockpit.health() (public endpoint). In manager mode, it calls manager.getWorkspaceOverview() and includes the workspace ID.
export function registerConnectionHealthTool(server: McpServer, deps: ToolDeps): void { server.tool( "check_alephant_connection", "Checks Alephant API connectivity and credential usability for the current MCP mode.", {}, async () => { if (deps.mode === "vk") { const cockpit = requireCockpit(deps); return safeCall(async () => ({ mode: "vk", status: "ok", health: await cockpit.health(), }), deps.mode); } const manager = requireManager(deps); return safeCall(async () => ({ mode: "manager", status: "ok", workspaceId: manager.getWorkspaceId(), overview: await manager.getWorkspaceOverview(), }), deps.mode); }, ); } - src/tools/shared/health.ts:10-10 (schema)The tool has an empty schema ({}) — no input parameters required.
{}, - src/tools/registry.ts:20-21 (registration)Description metadata mapping for 'check_alephant_connection' used during marketplace registration.
check_alephant_connection: "Checks Alephant API connectivity and credential usability for the current MCP mode.", - src/tools/registry.ts:207-207 (registration)registerConnectionHealthTool is called in registerTools(), registering the tool on the MCP server for both vk and manager modes.
registerConnectionHealthTool(server, deps); - src/tools/deps.ts:11-19 (helper)requireCockpit and requireManager helper functions used by the tool handler to access the appropriate API client.
export function requireCockpit(deps: ToolDeps): CockpitClient { if (!deps.cockpit) throw new Error("Cockpit client not configured"); return deps.cockpit; } export function requireManager(deps: ToolDeps): ManagerClient { if (!deps.manager) throw new Error("Manager client not configured"); return deps.manager; }