UNPKG

it-tools-mcp

Version:

MCP-compliant server access to over 100 IT tools and utilities commonly used by developers, system administrators, and IT professionals.

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