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) • 707 B
JavaScript
import { z } from "zod";
export function registerEncodeUrl(server) {
server.registerTool("encode_url", {
description: "URL encode text",
inputSchema: {
text: z.string().describe("Text to URL encode"),
},
// VS Code compliance annotations
annotations: {
title: "Encode Url",
description: "URL encode text",
readOnlyHint: false
}
}, async ({ text }) => {
const encoded = encodeURIComponent(text);
return {
content: [
{
type: "text",
text: `URL encoded: ${encoded}`,
},
],
};
});
}