Skip to main content
Glama
paladini

devutils-mcp-server

hash_sha1

Generate SHA-1 cryptographic hash values from input strings for data integrity verification and security applications.

Instructions

Generate a SHA-1 hash of the given input string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe string to hash

Implementation Reference

  • The handler logic for the hash_sha1 MCP tool, including its registration, schema definition (via Zod), and execution logic using node:crypto.
    // SHA-1 hash
    server.tool(
      "hash_sha1",
      "Generate a SHA-1 hash of the given input string.",
      { input: z.string().describe("The string to hash") },
      async ({ input }) => ({
        content: [
          {
            type: "text" as const,
            text: createHash("sha1").update(input).digest("hex"),
          },
        ],
      })
    );

Latest Blog Posts

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/paladini/devutils-mcp-server'

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