UNPKG

it-tools-mcp

Version:

Full MCP 2025-06-18 compliant server with 121+ IT tools, logging, ping, progress tracking, cancellation, and sampling utilities

26 lines (25 loc) 791 B
import { z } from "zod"; export function registerTextCapitalize(server) { server.registerTool("capitalize_text", { description: "Capitalize first letter of each word", inputSchema: { text: z.string().describe("Text to capitalize"), }, // VS Code compliance annotations annotations: { title: "Capitalize Text", description: "Capitalize first letter of each word", readOnlyHint: false } }, async ({ text }) => { const capitalized = text.replace(/\b\w/g, l => l.toUpperCase()); return { content: [ { type: "text", text: `Capitalized: ${capitalized}`, }, ], }; }); }