Skip to main content
Glama
index.tsโ€ข1.28 kB
import cli from './cli.js' import pkg from './pkg.js' import server from './server.js' const args = process.argv.slice(2) if (args.length === 0) { await server.start() } else if (cli.isCommand(args[0])) { // Run CLI command await cli.run(args) } else if (args[0] === '--check') { process.exit(0) } else { const cmd = pkg.name console.log(`${pkg.author}/${cmd} ${pkg.version} ${pkg.description} Server Usage: ${cmd} # Run MCP server with stdio transport TRANSPORT=http ${cmd} # Run MCP server with HTTP transport CLI Usage: ${cmd} setup <file-path> [workspace] # Setup a task file ${cmd} add <text> [status] [index] # Add a task ${cmd} search [statuses] [terms] # Search tasks ${cmd} update <task-ids> <status> # Update task status ${cmd} summary # Get task summary Examples: ${cmd} setup tasks.md /home/user/project ${cmd} add "Implement login" "To Do" 0 ${cmd} search "To Do,Done" "auth,login" ${cmd} update m3Qw,p9Lx "Done" ${cmd} summary `) process.exit(0) } // Library exports - available for programmatic usage export { default as cli } from './cli.js' export { default as tools } from './tools.js' export type { Tool } from './types.js'

Latest Blog Posts

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/flesler/mcp-tasks'

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