Skip to main content
Glama
OpenZeppelin

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
kind.ts703 B
import type { GenericOptions } from './build-generic'; export type Kind = GenericOptions['kind']; export function capitalize(str: string): string { const lowered = str.trim().toLowerCase(); return lowered.charAt(0).toUpperCase() + lowered.slice(1); } export function sanitizeKind(kind: unknown): Kind { if (typeof kind === 'string') { const sanitized = capitalize(kind); if (isKind(sanitized)) { return sanitized; } } return 'Hooks'; } function isKind<T>(value: Kind | T): value is Kind { switch (value) { case 'Hooks': return true; default: { // Static assert that we've checked all kinds. const _: T = value; return false; } } }

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