ping
Check if the sales recorder MCP server is operational by sending a test request and receiving a status response.
Instructions
Vérifie l’état du serveur MCP. Retourne { result: 'OK' } si le serveur est opérationnel.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg | No |
Implementation Reference
- src/stdio.ts:104-107 (handler)Inline handler function for the 'ping' tool. Takes optional 'msg' input and returns a content block with 'pong' prefixed message and structured echo response.async ({ msg }: { msg?: string }) => ({ content: [{ type: 'text', text: `pong${msg ? ': ' + msg : ''}` }], structuredContent: { ok: true, echo: msg ?? null }, })
- src/stdio.ts:102-102 (schema)Input schema for 'ping' tool: optional string 'msg' field.inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape
- src/stdio.ts:97-108 (registration)Registration of the 'ping' tool on the MCP server, including metadata (title, description), input schema, and inline handler.(server as any).registerTool( 'ping', { title: t('tools.ping.title'), description: t('tools.ping.description'), inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape }, async ({ msg }: { msg?: string }) => ({ content: [{ type: 'text', text: `pong${msg ? ': ' + msg : ''}` }], structuredContent: { ok: true, echo: msg ?? null }, }) );