it-tools-mcp
Version:
Full MCP 2025-06-18 compliant server with 121+ IT tools, logging, ping, progress tracking, cancellation, and sampling utilities
28 lines (27 loc) • 867 B
JavaScript
import { z } from "zod";
export function registerTextPascalcase(server) {
server.registerTool("convert_text_to_pascalcase", {
description: "Convert text to PascalCase",
inputSchema: {
text: z.string().describe("Text to convert to PascalCase"),
},
// VS Code compliance annotations
annotations: {
title: "Convert Text To Pascalcase",
description: "Convert text to PascalCase",
readOnlyHint: false
}
}, async ({ text }) => {
const pascalCase = text
.replace(/(?:^\w|[A-Z]|\b\w)/g, word => word.toUpperCase())
.replace(/\s+/g, '');
return {
content: [
{
type: "text",
text: `PascalCase: ${pascalCase}`,
},
],
};
});
}