echo
Test MCP server functionality by returning provided messages, enabling developers to verify communication and validate tool integration in the Bootstrap MCP Server.
Instructions
Echo back the provided message
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message to echo |
Implementation Reference
- src/server.ts:117-127 (handler)The handler function that implements the 'echo' tool logic. It extracts the 'message' from the input arguments and returns it as a text content response.private handleEcho(args: any) { const message = args.message as string return { content: [ { type: 'text', text: message, }, ], } }
- src/server.ts:27-40 (schema)The schema definition for the 'echo' tool, including name, description, and input schema specifying a required 'message' string.{ name: 'echo', description: 'Echo back the provided message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Message to echo', }, }, required: ['message'], }, },
- src/server.ts:84-85 (registration)The switch case in the tool execution handler that registers and dispatches the 'echo' tool call to its handler function.case 'echo': return this.handleEcho(args)