Skip to main content
Glama
tsup.config.tsβ€’1.11 kB
import { defineConfig } from 'tsup'; export default defineConfig({ entry: ['src/index.ts'], format: ['esm'], dts: true, splitting: false, sourcemap: true, clean: true, shims: true, minify: false, treeshake: true, outDir: 'dist', platform: 'node', target: 'node20', banner: { js: '#!/usr/bin/env node', }, // Copy instructions.md to dist async onSuccess() { const { copyFileSync, mkdirSync } = await import('fs'); const { join, dirname } = await import('path'); // Copy to dist/tools/codeAgent for non-bundled imports const destPath = join(process.cwd(), 'dist/tools/codeAgent/instructions.md'); mkdirSync(dirname(destPath), { recursive: true }); copyFileSync( join(process.cwd(), 'src/tools/codeAgent/instructions.md'), destPath ); // Also copy to dist root for bundled code copyFileSync( join(process.cwd(), 'src/tools/codeAgent/instructions.md'), join(process.cwd(), 'dist/instructions.md') ); }, });

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/babasida246/ai-mcp-gateway'

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