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
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The string to hash |
Implementation Reference
- src/tools/hash.ts:22-35 (handler)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"), }, ], }) );