We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/johnie/traktamente-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/usr/bin/env bun
import { startHttpServer } from "@/transports/http";
import { startStdioServer } from "@/transports/stdio";
// Determine transport based on environment variable or CLI arguments
const transport = process.env.TRANSPORT || process.argv[2] || "stdio";
async function main() {
if (transport === "http") {
await startHttpServer();
} else if (transport === "stdio") {
await startStdioServer();
} else {
console.error(`Unknown transport: ${transport}`);
console.error('Valid options: "stdio" or "http"');
process.exit(1);
}
}
main().catch((error) => {
console.error("Fatal error in main():", error);
process.exit(1);
});