Skip to main content
Glama

IT Tools MCP Server

index.ts•845 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; export function registerEncodeHtml(server: McpServer) { server.registerTool("encode_html", { description: "Encode HTML entities", inputSchema: { text: z.string().describe("Text to HTML encode"), }, // VS Code compliance annotations annotations: { title: "Encode Html", description: "Encode HTML entities", readOnlyHint: false } }, async ({ text }) => { const encoded = text .replace(/&/g, '&amp;') .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#39;'); return { content: [ { type: "text", text: `HTML encoded: ${encoded}`, }, ], }; } ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wrenchpilot/it-tools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server