message
(string) - The message to echo back
How to use it
message is exposed by the MCP Typescript Template MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the message tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Typescript Template
npx degit nickytonline/mcp-typescript-template my-mcp-serverOther tools in MCP Typescript Template (2)
Echoes back the provided message - a simple example to demonstrate MCP tool implementation.
Demonstrates MCP elicitation: the tool takes no input, asks the connected client to prompt the user for a message, then echoes it back. Handles all three elicitation outcomes (accept, decline, cancel) and errors when the client doesn't support elicitation.