UNPKG

it-tools-mcp

Version:

Full MCP 2025-06-18 compliant server with 121+ IT tools, logging, ping, progress tracking, cancellation, and sampling utilities

29 lines (28 loc) 801 B
import { createHash } from "crypto"; import { z } from "zod"; export function registerHashMd5(server) { server.registerTool("hash_md5", { description: "Generate MD5 hash", inputSchema: { text: z.string().describe("Text to hash with MD5"), }, // VS Code compliance annotations annotations: { title: "Hash Md5", description: "Generate MD5 hash", readOnlyHint: false } }, async ({ text }) => { const hash = createHash('md5'); hash.update(text); const result = hash.digest('hex'); return { content: [ { type: "text", text: `MD5 hash: ${result}`, }, ], }; }); }