agent-bridge-mcp

agent-bridge-mcp

Enables asynchronous messaging and task handoff between Amazon Quick (local desktop) and Kiro (cloud DevSpaces) via an S3-backed message store.

Category
Visit Server

README

Agent Bridge MCP Server

An MCP server + Lambda API that enables real-time communication between Kiro and Amazon Quick across environments (local Windows ↔ cloud DevSpaces). Messages are stored in S3 and accessible via API Gateway — no shared filesystem required.

Architecture

┌──────────────────┐                              ┌──────────────────┐
│   Amazon Quick   │                              │       Kiro       │
│   (Windows PC)   │                              │   (DevSpaces)    │
│                  │                              │                  │
│  MCP Server      │         ┌──────────┐        │  curl / shell    │
│  (stdio, boto3)  │────────►│    S3    │◄───────│                  │
│                  │         │  bucket  │        │                  │
│      — OR —      │         └──────────┘        │      — OR —      │
│                  │              ▲               │                  │
│  Lambda invoke   │              │               │  API Gateway     │
│  (via Matilda)   │────────►┌────┴─────┐◄───────│  (HTTPS POST)    │
│                  │         │  Lambda  │        │                  │
└──────────────────┘         └──────────┘        └──────────────────┘

Components

Component Purpose
server.py Local MCP server (stdio) — Quick connects directly via S3
lambda/lambda_function.py Lambda function — HTTP API relay to same S3 store
API Gateway Public HTTPS endpoint for Kiro (DevSpaces can't hit Lambda URLs directly)
S3 Bucket Shared message store

Endpoints

Who How they connect
Quick MCP server (local stdio) with AGENT_BRIDGE_BUCKET env var, OR Lambda invoke via Matilda
Kiro POST https://<your-api-id>.execute-api.<region>.amazonaws.com/ with x-bridge-secret header

Setup

Prerequisites

  • Python 3.10+
  • pip install mcp boto3
  • AWS credentials with S3 access

Environment Variable

export AGENT_BRIDGE_BUCKET=your-bucket-name

Amazon Quick (local MCP)

Settings → Capabilities → MCP → Add Server:

  • Command: py
  • Args: path to server.py
  • Env: AGENT_BRIDGE_BUCKET=your-bucket-name

Kiro (DevSpaces — via API Gateway)

# Send a message
curl -s -X POST "https://<your-api-id>.execute-api.<region>.amazonaws.com/" \
  -H "Content-Type: application/json" \
  -H "x-bridge-secret: YOUR_SECRET" \
  -d '{"action":"send_message","sender":"kiro","recipient":"quick","content":"Hello from Kiro!"}'

# Check for messages
curl -s -X POST "https://<your-api-id>.execute-api.<region>.amazonaws.com/" \
  -H "Content-Type: application/json" \
  -H "x-bridge-secret: YOUR_SECRET" \
  -d '{"action":"get_messages","agent":"kiro"}'

# Get stats
curl -s -X POST "https://<your-api-id>.execute-api.<region>.amazonaws.com/" \
  -H "Content-Type: application/json" \
  -H "x-bridge-secret: YOUR_SECRET" \
  -d '{"action":"get_stats"}'

API Actions

All requests are POST with JSON body containing "action" plus parameters:

Action Parameters Description
send_message sender, recipient, content, conversation_id?, title?, message_type? Send a message
get_messages agent, status? (unread/read/all), limit? Check inbox
mark_read agent, message_ids?, conversation_id? Mark messages read
list_conversations status? (active/closed/all) List threads
get_conversation conversation_id Full thread history
get_stats (none) Bridge statistics

Message Types

message, task, response, context, status, question

S3 Structure

bridge/
├── inbox/
│   ├── quick/          ← Quick's messages
│   └── kiro/           ← Kiro's messages
└── conversations/
    └── {conv_id}/
        ├── meta.json   ← Thread metadata
        └── messages/   ← Chronological messages

Security

  • S3 bucket: private, all public access blocked
  • API Gateway: secured by x-bridge-secret header checked in Lambda code
  • Lambda function URL: AuthType: NONE (backup path)

AWS Resources (you'll create these)

  • S3 Bucket: any name (set as AGENT_BRIDGE_BUCKET)
  • Lambda: handles API actions against the S3 bucket
  • API Gateway: HTTP API fronting the Lambda
  • IAM Role: Lambda execution role with S3 read/write on the bucket

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured