echo
Verify MCP server functionality by sending a message and receiving an immediate echo response. A simple test tool to ensure server communication is working correctly.
Instructions
Simple test tool that echoes back your input. Use to verify the MCP server is responding correctly.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- index.js:227-232 (handler)The handler function that implements the 'echo' tool. It validates the input message and returns an MCP-formatted response with 'Echo: ' prefixed to the message.async function internalHandleEcho(args) { if (!args || typeof args.message !== 'string') { throw new Error("Invalid input. 'message' (string) is required."); } return { content: [{ type: "text", text: `Echo: ${args.message}` }] }; }
- index.js:564-567 (schema)The schema definition for the 'echo' tool, including input schema requiring a 'message' string, used in tools/list response.name: "echo", description: "Simple test tool that echoes back your input. Use to verify the MCP server is responding correctly.", inputSchema: { type: "object", properties: { message: { type: "string"}}, required: ["message"], additionalProperties: false }, },
- index.js:793-793 (registration)Registration of the 'echo' tool handler in the INTERNAL_TOOL_HANDLERS map, which is used to dispatch tools/call requests to the correct handler."echo": internalHandleEcho,