Skip to main content
Glama

OpenZeppelin Contracts MCP Server

Official
by OpenZeppelin
test.ts885 B
import { promises as fs } from 'fs'; import os from 'os'; import type { TestFn, ExecutionContext } from 'ava'; import _test from 'ava'; import path from 'path'; import { writeGeneratedSources } from './generate/sources'; import type { KindedOptions } from './build-generic'; interface Context { generatedSourcesPath: string; } const test = _test as TestFn<Context>; test.serial('fungible result generated', async t => { await testGenerate(t, 'Fungible'); }); test.serial('non-fungible result generated', async t => { await testGenerate(t, 'NonFungible'); }); async function testGenerate(t: ExecutionContext<Context>, kind: keyof KindedOptions) { const generatedSourcesPath = path.join(os.tmpdir(), 'oz-wizard-stellar'); await fs.rm(generatedSourcesPath, { force: true, recursive: true }); await writeGeneratedSources(generatedSourcesPath, true, kind); t.pass(); }

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