We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Bathinanna/CodePilot_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
mcp-server.js•670 B
#!/usr/bin/env node
// MCP Server entry point - designed for STDIO transport
// This file should ONLY output valid JSON-RPC messages to stdout
import { CodePilotMCPServer } from './dist/index.js';
// Ensure we're in MCP STDIO mode - no console logs to stdout
process.env.MCP_STDIO_MODE = 'true';
process.env.NODE_ENV = 'production'; // This will disable console logging entirely
// Redirect any unexpected stdout to stderr
const originalConsoleLog = console.log;
console.log = console.error;
// Start the server
const server = new CodePilotMCPServer();
server.start().catch((error) => {
console.error('Failed to start MCP server:', error);
process.exit(1);
});