Skip to main content
Glama

Captain Data MCP API

generate-openapi.ts734 B
import dotenv from 'dotenv'; dotenv.config(); import { buildServer } from '../src/server/build'; import { writeFileSync } from 'fs'; import { resolve } from 'path'; (async () => { process.env.ENABLE_SWAGGER = 'true'; const app = await buildServer(); await app.ready(); const spec = (app as any).swagger?.(); if (!spec) throw new Error('Swagger not registered; set ENABLE_SWAGGER=true'); // Remove /openapi.json from the spec to avoid meta-circular reference if (spec.paths && spec.paths['/openapi.json']) { delete spec.paths['/openapi.json']; } const out = resolve(process.cwd(), 'openapi.json'); writeFileSync(out, JSON.stringify(spec, null, 2)); console.log('Wrote', out); process.exit(0); })();

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/captaindatatech/captaindata-mcp'

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