health
Verify MCP server connectivity without authentication. Returns server name, version, and timestamp to confirm the connection is active before making Apple Search Ads API calls.
Instructions
Check if the aapl-ads-mcp server is running and reachable. Use this to verify the MCP connection before making API calls. No ASA authentication is required — returns server name, version, and current timestamp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/health.ts:9-29 (handler)The async handler function that executes the health check logic. Returns a JSON response with status 'ok', server name, version, and current timestamp.
async () => { return { content: [ { type: "text", text: JSON.stringify( { status: "ok", server: "aapl-ads-mcp", version: "0.1.0", timestamp: new Date().toISOString(), }, null, 2 ), }, ], }; } ); } - src/tools/health.ts:8-8 (schema)Empty schema object for the health tool — no input parameters are required.
{}, - src/tools/health.ts:4-28 (registration)The registerHealthTool function that calls server.tool("health", ...) to register the tool with the MCP server.
export function registerHealthTool(server: McpServer): void { server.tool( "health", "Check if the aapl-ads-mcp server is running and reachable. Use this to verify the MCP connection before making API calls. No ASA authentication is required — returns server name, version, and current timestamp.", {}, async () => { return { content: [ { type: "text", text: JSON.stringify( { status: "ok", server: "aapl-ads-mcp", version: "0.1.0", timestamp: new Date().toISOString(), }, null, 2 ), }, ], }; } ); - src/server.ts:23-23 (registration)Where registerHealthTool is called from createServer() to wire up the tool.
registerHealthTool(server); - src/tools/index.ts:3-4 (helper)Re-export of registerHealthTool from the tools barrel index file.
export { registerHealthTool } from "./health.js"; export { registerKeywordsTools } from "./keywords.js";