hello_world
Greet users by name using a simple Model Context Protocol tool on the Bootstrap MCP Server, designed for testing and basic interaction.
Instructions
A simple hello world tool
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name to greet |
Implementation Reference
- src/server.ts:105-115 (handler)Implements the logic for the 'hello_world' tool by returning a greeting message with the provided name.private handleHelloWorld(args: any) { const name = args.name as string return { content: [ { type: 'text', text: `Hello, ${name}! Welcome to the Bootstrap MCP Server.`, }, ], } }
- src/server.ts:13-26 (schema)Defines the input schema and metadata for the 'hello_world' tool, including name, description, and required 'name' parameter.{ name: 'hello_world', description: 'A simple hello world tool', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Name to greet', }, }, required: ['name'], }, },
- src/server.ts:82-83 (registration)Registers the 'hello_world' tool handler in the switch statement for tool execution dispatch.case 'hello_world': return this.handleHelloWorld(args)