hello_world
Generate a basic greeting for testing MCP server functionality. Use this tool to verify server connections and confirm proper tool execution in development environments.
Instructions
Devuelve un saludo básico.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:16-25 (registration)Registers the 'hello_world' tool using server.tool(), providing a description, empty input schema, and an inline asynchronous handler function that returns a simple text greeting.
server.tool( "hello_world", "Devuelve un saludo básico.", {}, async () => ({ content: [ { type: "text", text: "¡Hola desde el MCP básico!" }, ], }) ); - src/index.ts:20-24 (handler)The inline handler function for the 'hello_world' tool, which returns a response content block with a Spanish greeting message.
async () => ({ content: [ { type: "text", text: "¡Hola desde el MCP básico!" }, ], }) - src/index.ts:19-19 (schema)Empty input schema for the 'hello_world' tool, indicating no parameters are required.
{},