Skip to main content
Glama
OpenZeppelin

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
erc721.ts922 B
import type { McpServer, RegisteredTool } from '@modelcontextprotocol/sdk/server/mcp.js'; import type { ERC721Options } from '@openzeppelin/wizard-stylus'; import { erc721 } from '@openzeppelin/wizard-stylus'; import { safePrintRustCodeBlock, makeDetailedPrompt } from '../../utils'; import { erc721Schema } from '../schemas'; import { stylusPrompts } from '@openzeppelin/wizard-common'; export function registerStylusERC721(server: McpServer): RegisteredTool { return server.tool( 'stylus-erc721', makeDetailedPrompt(stylusPrompts.ERC721), erc721Schema, async ({ name, burnable, enumerable, info }) => { const opts: ERC721Options = { name, burnable, enumerable, info, }; return { content: [ { type: 'text', text: safePrintRustCodeBlock(() => erc721.print(opts)), }, ], }; }, ); }

Implementation Reference

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