a2a_mcp_bridge 1.1.0 copy "a2a_mcp_bridge: ^1.1.0" to clipboard
a2a_mcp_bridge: ^1.1.0 copied to clipboard

An MCP server that acts as a bridge between A2A agents and AI clients.

example/a2a_mcp_bridge.dart

/*
* Package : a2a
* Author : S. Hamblett <steve.hamblett@linux.com>
* Date   : 10/07/2025
* Copyright :  S.Hamblett
*/

import 'package:a2a_mcp_bridge/a2a_mcp_bridge.dart';

///
/// An example showing usage of the MCP to A2A bridge.
///
/// The server starts on http://localhost:3080/mcp by default, the port can be changed.
/// To see the server details now run the mcp/a2a_query_mcp_server.dart example -
///
///   'dart example/mcp/a2a_query_mcp_server.dart localhost:3080/mcp'
///
Future<void> main() async {
  // Create and start the bridge
  A2ALog.info('Creating MCP Bridge');
  A2AMCPBridge a2aMcpBridge = A2AMCPBridge(
    name: 'A2A MCP Bridge Manual Test',
    version: '1.0.1',
  );
  try {
    await a2aMcpBridge
        .startServer(); // Set your port if you do not want the default
  } catch (e) {
    A2ALog.fatal('MCP Bridge failed to start $e');
    return;
  }
}
0
likes
150
points
341
downloads
screenshot

Publisher

verified publisherdarticulate.com

Weekly Downloads

An MCP server that acts as a bridge between A2A agents and AI clients.

Repository (GitHub)
View/report issues

Topics

#ai #mcp #web

Documentation

API reference

Funding

Consider supporting this project:

www.darticulate.com

License

MIT (license)

Dependencies

a2a, colorize, mcp_dart, meta, uuid

More

Packages that depend on a2a_mcp_bridge