say_hi
Send a greeting to Duyet with an optional personal message and access contact details or connection links directly through the MCP server.
Instructions
Send a friendly greeting to Duyet with an optional personal message. Get contact information and connection links
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Optional personal message to include with the greeting |
Implementation Reference
- src/tools/say-hi.ts:21-52 (handler)The handler function for the 'say_hi' tool that constructs a greeting message with a random response and Duyet's contact information.async ({ message }) => { const greeting = message ? `Hi Duyet! ${message}` : "Hi Duyet!"; const responses = [ "Thanks for saying hi! Hope you're having a great day!", "Hello there! Great to hear from you!", "Hi! Always nice to get a friendly greeting!", "Hey! Thanks for reaching out. Hope all is well!", "Hello! Appreciate you taking the time to say hi!", ]; const randomResponse = responses[Math.floor(Math.random() * responses.length)]; return { content: [ { type: "text", text: `${greeting} ${randomResponse} Connect with Duyet: Email: me@duyet.net GitHub: https://github.com/duyet LinkedIn: https://linkedin.com/in/duyet Blog: https://blog.duyet.net Feel free to reach out anytime!`, }, ], }; },
- src/tools/say-hi.ts:17-19 (schema)Input schema definition for the 'say_hi' tool, specifying an optional 'message' string parameter.inputSchema: { message: messageSchema.describe("Optional personal message to include with the greeting"), },
- src/tools/say-hi.ts:10-54 (registration)The registration function that adds the 'say_hi' tool to the MCP server, defining its metadata, schema, and handler.export function registerSayHiTool(server: McpServer) { server.registerTool( "say_hi", { title: "Say Hi", description: "Send a friendly greeting to Duyet with an optional personal message. Get contact information and connection links", inputSchema: { message: messageSchema.describe("Optional personal message to include with the greeting"), }, }, async ({ message }) => { const greeting = message ? `Hi Duyet! ${message}` : "Hi Duyet!"; const responses = [ "Thanks for saying hi! Hope you're having a great day!", "Hello there! Great to hear from you!", "Hi! Always nice to get a friendly greeting!", "Hey! Thanks for reaching out. Hope all is well!", "Hello! Appreciate you taking the time to say hi!", ]; const randomResponse = responses[Math.floor(Math.random() * responses.length)]; return { content: [ { type: "text", text: `${greeting} ${randomResponse} Connect with Duyet: Email: me@duyet.net GitHub: https://github.com/duyet LinkedIn: https://linkedin.com/in/duyet Blog: https://blog.duyet.net Feel free to reach out anytime!`, }, ], }; }, ); }
- src/tools/index.ts:43-44 (registration)Invokes the say_hi tool registration as part of the overall tools registration in the index file.registerSayHiTool(server); logger.tool("say_hi", "registered");