@grebyn/toolflow-mcp-server
Version:
MCP server for managing other MCP servers - discover, install, organize into bundles, and automate with workflows. Uses StreamableHTTP transport with dual OAuth/API key authentication.
27 lines • 1.08 kB
JavaScript
// ToolFlow MCP Server - Main Entry Point
// Supports two modes:
// 1. Default (proxy) - OAuth authentication via stdio-to-HTTP proxy
// 2. Stdio mode - Direct stdio with API key authentication
// Parse command line arguments to determine mode
const args = process.argv.slice(2);
const modeIndex = args.findIndex(arg => arg.startsWith('--mode='));
const mode = modeIndex !== -1 ? args[modeIndex].split('=')[1] : 'proxy';
// Route to appropriate transport based on mode
if (mode === 'stdio') {
// Direct stdio mode with API key authentication
console.error('Starting ToolFlow MCP Server in stdio mode (API key required)...');
import('./index-stdio.js').catch(error => {
console.error('Failed to start ToolFlow MCP server in stdio mode:', error);
process.exit(1);
});
}
else {
// Default proxy mode with OAuth authentication
import('./index-proxy.js').catch(error => {
console.error('Failed to start ToolFlow MCP server:', error);
process.exit(1);
});
}
export {};
//# sourceMappingURL=index.js.map