Skip to main content
Glama

MCP Server

by antfu
exports.test.ts729 B
import { x } from 'tinyexec' import { describe, expect, it } from 'vitest' import { getPackageExportsManifest } from 'vitest-package-exports' import yaml from 'yaml' describe('exports-snapshot', async () => { const packages: { name: string, path: string, private?: boolean }[] = JSON.parse( await x('pnpm', ['ls', '--only-projects', '-r', '--json']).then(r => r.stdout), ) for (const pkg of packages) { if (pkg.private) continue it(`${pkg.name}`, async () => { const manifest = await getPackageExportsManifest({ importMode: 'src', cwd: pkg.path, }) await expect(yaml.stringify(manifest.exports)) .toMatchFileSnapshot(`./exports/${pkg.name}.yaml`) }) } })

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/antfu/nuxt-mcp'

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