echo
Returns the exact message you provide, enabling message verification and testing in the Simple MCP Server environment.
Instructions
Echo back the provided message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The message to echo back |
Implementation Reference
- src/index.ts:98-108 (handler)The handler logic for the 'echo' tool. Parses input arguments and returns a text response echoing the provided message.case 'echo': { const parsed = EchoArgsSchema.parse(args); return { content: [ { type: 'text', text: `Echo, from the MCP Server:==> ${parsed.message}`, }, ], }; }
- src/index.ts:25-27 (schema)Zod schema defining the input for the 'echo' tool: a required 'message' string.const EchoArgsSchema = z.object({ message: z.string().describe('The message to echo back'), });
- src/index.ts:43-56 (registration)Registration of the 'echo' tool in the list of available tools, including name, description, and input schema.{ name: 'echo', description: 'Echo back the provided message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], }, },