ping
Check the operational status of the cash register MCP server to verify system connectivity and availability.
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:97-108 (registration)Registration of the 'ping' tool, including metadata, inputSchema, and inline handler function.(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 }, }) );
- src/stdio.ts:104-107 (handler)Handler function for the 'ping' tool that returns a pong response with echoed message in both text and structured content.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 definition for the 'ping' tool: optional string parameter 'msg'.inputSchema: { msg: z.string().optional() }, // ✅ ZodRawShape