Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
redis.ts673 B
// deno-lint-ignore-file require-await import type { Redis } from '@upstash/redis'; export default class RedisMock implements Pick<Redis, 'exists' | 'hset'> { private store: Record< string, { [field: string]: unknown; } > = {}; async exists(key: string) { return this.store[key] ? 1 : 0; } async hset( key: string, kv: { [field: string]: unknown; }, ) { this.store[key] = this.store[key] || {}; const newFields = Object.entries(kv).filter(([field]) => !(field in this.store[key])); newFields.forEach(([field, value]) => { this.store[key][field] = value; }); return newFields.length; } }

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/OpenZeppelin/contracts-wizard'

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