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