echo
Echo back provided messages to verify communication and test MCP server functionality within the MCP Server Scaffold framework.
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:77-85 (handler)The handler function for the 'echo' tool that echoes back the provided message in the response content.case 'echo': return { content: [ { type: 'text', text: `Echo: ${args.message}`, }, ], };
- src/index.ts:48-57 (schema)Input schema for the 'echo' tool defining the required 'message' string parameter.inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], },
- src/index.ts:45-58 (registration)Registration of the 'echo' tool in the ListTools response, including name, description, and schema.{ name: 'echo', description: 'Echo back the provided message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], }, } as Tool,