Skip to main content
Glama

Task Master

by eyaltoledano
tsdown.config.ts1.24 kB
import { defineConfig } from 'tsdown'; import { baseConfig, mergeConfig } from '@tm/build-config'; import { load as dotenvLoad } from 'dotenv-mono'; dotenvLoad(); // Get all TM_PUBLIC_* env variables for build-time injection const getBuildTimeEnvs = () => { const envs: Record<string, string> = {}; // Inject package.json version at build time try { const packageJson = JSON.parse( require('fs').readFileSync('package.json', 'utf8') ); envs['TM_PUBLIC_VERSION'] = packageJson.version || 'unknown'; } catch (error) { console.warn('Could not read package.json version during build:', error); envs['TM_PUBLIC_VERSION'] = 'unknown'; } for (const [key, value] of Object.entries(process.env)) { if (key.startsWith('TM_PUBLIC_')) { // Return the actual value, not JSON.stringify'd envs[key] = value || ''; } } return envs; }; export default defineConfig( mergeConfig(baseConfig, { entry: { 'task-master': 'scripts/dev.js', 'mcp-server': 'mcp-server/server.js' }, outDir: 'dist', copy: ['assets'], ignoreWatch: ['node_modules', 'dist', 'tests', 'apps/extension'], // Bundle only our workspace packages, keep npm dependencies external noExternal: [/^@tm\//], env: getBuildTimeEnvs() }) );

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/eyaltoledano/claude-task-master'

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