hello-world
Sends a personalized greeting to the user by accepting a name as input. Part of the MCP Server Boilerplate for integrating custom tools with AI assistants like Claude or Cursor.
Instructions
Say hello to the user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the user |
Implementation Reference
- src/index.ts:14-31 (registration)Registers the "hello-world" tool, including its description, input schema, and handler function."hello-world", "Say hello to the user", { name: z.string().describe("The name of the user"), }, async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; } );
- src/index.ts:19-30 (handler)The handler function that constructs and returns a greeting message as text content.async ({ name }) => { const response = `Hello ${name}`; return { content: [ { type: "text", text: response, }, ], }; }
- src/index.ts:16-18 (schema)Zod schema defining the input parameter 'name' as a string.{ name: z.string().describe("The name of the user"), },