npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

a2a-bridge-mcp-server

v1.6.0

Published

Agent-to-Agent Bridge MCP Server with intelligent model fallback, cross-platform support, and automatic installation for Claude Desktop and Claude Code

Downloads

79

Readme

a2a-bridge-mcp-server

npm version Node.js Version License: MIT

Agent-to-Agent Bridge MCP Server for seamless Claude Code and Gemini CLI integration with automatic installation and configuration.

🚀 Quick Start

One-Command Installation

npx a2a-bridge-mcp-server install

That's it! The installer will:

  • ✅ Detect your operating system
  • ✅ Check/install Gemini CLI
  • ✅ Configure Claude Desktop automatically
  • ✅ Test the installation
  • ✅ Provide setup guidance

Alternative Installation Methods

# Global installation
npm install -g a2a-bridge-mcp-server
a2a-mcp-install install

# Manual configuration
a2a-bridge-mcp setup
a2a-bridge-mcp test

🌟 Features

  • 🌉 Seamless Integration: Bridge Claude Code with Gemini CLI via standardized protocols
  • 🔄 Automatic Setup: One-command installation with OS detection and configuration
  • 🔐 Flexible Authentication: Support for both API keys and Google OAuth
  • 🤖 AI-to-AI Communication: Real-time message routing via A2A protocol
  • 📡 Agent Discovery: Automatic agent registration and capability detection
  • 💾 Persistent Storage: Agent registry and task history management
  • Real-time Processing: Instant message routing and response handling
  • 🛠️ Complete MCP Tools: Full suite of agent management and communication tools
  • 🔧 Smart Configuration: Automatic Claude Desktop configuration across platforms

🛠️ Available MCP Tools

Once installed, these tools will be available in Claude Code:

Core A2A Bridge Tools

| Tool | Description | Parameters | |------|-------------|------------| | register_agent | Register A2A-compatible agents | url, name? | | list_agents | List all registered agents | - | | send_message | Send messages to agents | agent_url, message, session_id? | | get_task_result | Retrieve task results | task_id |

Direct Gemini Integration

| Tool | Description | Parameters | |------|-------------|------------| | gemini_chat | Chat directly with Gemini AI | prompt, model? |

📋 System Requirements

  • Node.js: 18.0.0 or higher
  • Operating System: macOS, Linux, or Windows (with WSL)
  • Claude Desktop: Latest version installed
  • Gemini CLI: Will be installed automatically or prompt for installation

🔧 CLI Commands

Installation & Setup

a2a-mcp-install install    # Interactive installation
a2a-mcp-install test       # Test installation
a2a-mcp-install uninstall  # Remove installation

Server Management

a2a-bridge-mcp start       # Start MCP server
a2a-bridge-mcp status      # Check status
a2a-bridge-mcp setup       # Configure manually
a2a-bridge-mcp test        # Run diagnostics

🖥️ Platform Support

macOS

  • ✅ Claude Desktop auto-configuration
  • ✅ Automatic Gemini CLI installation
  • ✅ OAuth and API key authentication
  • ✅ Full MCP integration

Linux

  • ✅ Claude Desktop auto-configuration
  • ✅ Automatic Gemini CLI installation
  • ✅ OAuth and API key authentication
  • ✅ Full MCP integration

Windows

  • ⚠️ Requires WSL (Windows Subsystem for Linux)
  • ✅ Claude Desktop configuration (in Windows)
  • ✅ Gemini CLI installation (in WSL)
  • ✅ Cross-platform bridge functionality

🔐 Authentication Options

Option 1: Google API Key (Recommended for Development)

  1. Get your API key: https://aistudio.google.com/app/apikey
  2. The installer will prompt for it, or set GOOGLE_API_KEY environment variable

Option 2: OAuth (Recommended for Personal Use)

  1. Run: gemini auth
  2. Complete Google authentication in browser
  3. The installer will detect and verify authentication

📁 Configuration Files

Claude Desktop Config

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

A2A Bridge Data

  • Storage: ~/.a2a-bridge/
  • Agents: registered_agents.json
  • Tasks: task_agent_mapping.json

🎯 Usage Examples

In Claude Code

  1. List available agents:

    Show me all registered A2A agents
  2. Chat with Gemini:

    Use Gemini to explain the difference between async and await in JavaScript
  3. Send message to agent:

    Send a message to the Gemini agent asking about Python best practices
  4. Register new agent:

    Register the agent at http://my-ai-service:8080 with name "My Custom AI"

Command Line Testing

# Check everything is working
a2a-bridge-mcp test

# Start in interactive mode for debugging
a2a-bridge-mcp start --interactive

# Check detailed status
a2a-bridge-mcp status

🔍 Troubleshooting

Common Issues

"Gemini CLI not found"

npm install -g @google/gemini-cli
gemini --version

"Authentication failed"

# Option 1: OAuth
gemini auth

# Option 2: API Key
export GOOGLE_API_KEY="your-api-key-here"

"MCP server not loading in Claude"

  1. Restart Claude Desktop completely
  2. Check configuration: a2a-bridge-mcp status
  3. View Claude Desktop Developer tab for errors

"Installation fails"

# Run with debugging
NODE_ENV=development a2a-mcp-install install

# Check permissions
sudo chown -R $USER ~/.a2a-bridge

Debug Mode

Enable detailed logging:

export DEBUG=a2a-bridge:*
export NODE_ENV=development
a2a-bridge-mcp start

Getting Help

a2a-bridge-mcp help
a2a-mcp-install --help

🏗️ Development

Local Development Setup

# Clone the repository
git clone https://github.com/a2a-bridge-project/mcp-server
cd mcp-server/npm-package

# Install dependencies
npm install

# Build the package
npm run build

# Test locally
npm link
a2a-mcp-install install

Testing

npm test                    # Run test suite
npm run test:integration   # Integration tests
npm run test:cli          # CLI tests

Building

npm run build     # Build for distribution
npm run dev       # Development mode
npm run prepare   # Pre-publish build

📦 Publishing

# Build and test
npm run build
npm test

# Publish to npm
npm publish --access public

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make changes and add tests
  4. Run tests: npm test
  5. Commit with conventional commits: feat: add new feature
  6. Push and create a Pull Request

📄 License

MIT License - see LICENSE file for details.

🔗 Related Projects

  • Desktop Extension: One-click installation via DXT format
  • Docker Version: Containerized deployment option
  • Python Bridge: Original Python implementation
  • Claude Code: AI-powered development environment

📚 Documentation

🌟 Support


Made with ❤️ for the AI development community

Enable seamless AI-to-AI collaboration in your development workflow! 🚀