Skip to main content
Glama
OpenZeppelin

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
build-generic.ts610 B
import type { Contract } from '@openzeppelin/wizard'; import { buildHooks, type HooksOptions } from './hooks'; export interface KindedOptions { Hooks: { kind: 'Hooks' } & HooksOptions; } export type GenericOptions = KindedOptions[keyof KindedOptions]; export function buildGeneric(opts: GenericOptions): Contract { switch (opts.kind) { case 'Hooks': return buildHooks(opts); default: { // TODO: When other contract kinds are available, change the below to: // const _: never = opts; const _: never = opts.kind; throw new Error('Unknown contract kind'); } } }

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

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