Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
kind.ts775 B
import type { GenericOptions } from './build-generic'; export type Kind = GenericOptions['kind']; export function sanitizeKind(kind: unknown): Kind { if (typeof kind === 'string') { const sanitized = kind.replace(/^(ERC|.)/i, c => c.toUpperCase()).replace(/^(RealWorldAsset)$/i, 'RealWorldAsset'); if (isKind(sanitized)) { return sanitized; } } return 'ERC20'; } function isKind<T>(value: Kind | T): value is Kind { switch (value) { case 'ERC20': case 'ERC1155': case 'ERC721': case 'Stablecoin': case 'RealWorldAsset': case 'Account': case 'Governor': case 'Custom': return true; default: { // Static assert that we've checked all kinds. const _: T = value; return false; } } }

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