Skip to main content
Glama

IT Tools MCP Server

index.ts•789 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { createHash } from "crypto"; import { z } from "zod"; export function registerHashSha1(server: McpServer) { server.registerTool("hash_sha1", { description: "Generate SHA1 hash", inputSchema: { text: z.string().describe("Text to hash with SHA1"), }, // VS Code compliance annotations annotations: { title: "Hash Sha1", description: "Generate SHA1 hash", readOnlyHint: false } }, async ({ text }) => { const hash = createHash('sha1'); hash.update(text); const result = hash.digest('hex'); return { content: [ { type: "text", text: `SHA1 hash: ${result}`, }, ], }; } ); }

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