Skip to main content
Glama
vjouenne76

MCP Server Scaffold

by vjouenne76

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
NameRequiredDescriptionDefault
messageYesThe message to echo back

Implementation Reference

  • 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}`, }, ], };
  • 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,

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vjouenne76/mcp-server-scaffold'

If you have feedback or need assistance with the MCP directory API, please join our Discord server