UNPKG

mcp-a2a-gateway

Version:

A bridge server that connects Model Context Protocol (MCP) with Agent-to-Agent (A2A) protocol

26 lines (19 loc) 599 B
#!/usr/bin/env node const { spawn } = require('child_process'); const args = process.argv.slice(2); const command = 'uv'; const commandArgs = ['run', 'python', '-m', 'mcp_a2a_gateway.cli', ...args]; console.error(`> Executing: ${command} ${commandArgs.join(' ')}`); const pyProcess = spawn(command, commandArgs, { stdio: 'inherit', shell: true, cwd: __dirname }); pyProcess.on('close', (code) => { if (code !== 0) { console.error(`Process exited with code ${code}`); } }); pyProcess.on('error', (err) => { console.error('Failed to start subprocess.', err); });