Parse existing systems into Agent Integration Kits: a Claude-controllable tool layer for APIs, databases, GraphQL, and jobs.
Project description
AgentBridge
AgentBridge automatically parses existing projects and systems into a versioned tool layer controllable by Claude Agent chat. It discovers system evidence, normalizes it into capabilities, packages those capabilities as an Agent Integration Kit, and exposes the kit through Claude Agent SDK, MCP, terminal chat, and Web Chat.
Existing project/system
-> parse project/API/DB/GraphQL/job evidence
-> normalized capabilities
-> Agent Integration Kit
-> Claude Agent SDK / MCP / Web Chat
-> controlled APIs / DB / GraphQL / background jobs
What It Provides
- AI-first project analysis with Claude Agent SDK.
- Candidate discovery from OpenAPI, GraphQL, SQL, gRPC proto files, explicit Python plugins, and source routes.
- A stable
agentbridge-kit/v1contract containing capabilities, tools, prompts, skills, schemas, guardrails, dry-run plans, client configs, and tests. - Claude Agent SDK, MCP, Claude, OpenAI, and Vercel AI tool definitions generated from the same capability model.
- Browser and terminal chat control surfaces over the generated tool layer.
- Dry-run by default, runtime policy controls, and explicit authorization for high-risk operations.
- Session history, streaming Web Chat responses, tool timelines, clickable tool invocation, required-parameter guidance, file attachments, and AI token usage/cost metadata.
- In-place re-analysis of an existing kit when the source system changes.
Runtime adapters now cover HTTP/OpenAPI, GraphQL POST operations, SQLite read-only SQL SELECT tools, gRPC via grpcurl, and explicit Python plugin dry-run/execute hooks. Dry-run remains the default for every transport.
Install
pip install "agbr[agent]"
Project analysis and agentbridge enhance require:
export ANTHROPIC_API_KEY="..."
Optional Anthropic-compatible endpoint:
export ANTHROPIC_BASE_URL="https://api.example.com/anthropic"
export ANTHROPIC_MODEL="your-model"
Generate a Kit
Analyze a project directory with Claude Agent SDK:
agentbridge generate ./my-system \
--output .agentbridge/my-system-kit \
--analysis-mode agentic
For schema-only deterministic generation:
agentbridge generate ./openapi.json \
--output .agentbridge/openapi-kit \
--no-ai
Validate the result:
agentbridge validate .agentbridge/my-system-kit
Enhance an Existing Kit
Re-analyze the current project and update the existing kit in place:
agentbridge enhance .agentbridge/my-system-kit ./my-system
This command always uses Claude Agent SDK. Existing AI-inferred capabilities are retained as a baseline, current project evidence is rescanned, duplicate operations are consolidated, and changed or new capabilities are regenerated.
Use --resume to reuse valid batch checkpoints:
agentbridge enhance .agentbridge/my-system-kit ./my-system --resume
Start the Web Chat
agentbridge web .agentbridge/my-system-kit --port 8765
Open the printed URL. The Web UI acts as a Claude Agent chat control surface over the parsed system capabilities and supports:
- Dry-run and real-system mode switching.
- Base URL validation and connectivity testing.
- Clickable tools that insert
/runcommands and required parameters. - Visible authorization buttons for high-risk operations.
- Real-time SSE streaming, tool call timeline, interrupt control, recent conversations, file attachments, Markdown responses, and Claude Agent SDK model/token/cost usage.
Real-system mode still enforces generated guardrails and confirmation requirements.
Runtime credentials can be supplied when starting the server:
agentbridge web .agentbridge/my-system-kit \
--base-url http://localhost:8080 \
--bearer-env API_TOKEN \
--execute
Start Terminal Chat
agentbridge chat .agentbridge/my-system-kit
Useful commands:
/tools
/use
/run <tool> key=value
/mode dry-run
/mode execute http://localhost:8080
/connect http://localhost:8080
/usage
/history
/use provides numbered tool selection and prompts for required parameters. High-risk operations provide an explicit Authorize/Cancel choice.
Run as an MCP Server
Expose the generated Agent Integration Kit as MCP tools.
Dry-run:
agentbridge serve .agentbridge/my-system-kit
Real HTTP execution:
agentbridge serve .agentbridge/my-system-kit \
--base-url http://localhost:8080 \
--bearer-env API_TOKEN \
--execute
GraphQL, SQL, and gRPC tools use transport-specific runtime targets:
agentbridge serve .agentbridge/my-system-kit \
--graphql-endpoint http://localhost:8080/graphql \
--database-url sqlite:///tmp/app.db \
--grpc-target 127.0.0.1:50051 \
--execute
Generate client configuration:
agentbridge mcp-config .agentbridge/my-system-kit --write
Safety Defaults
- Dry-run never executes the target operation.
- Destructive and external-side-effect tools require explicit confirmation.
- Switching runtime mode clears pending authorization.
- Project analysis is read-only; generated files are written only to the selected kit directory.
- Secrets are runtime inputs and must not be stored in generated kits.
Main Commands
| Command | Purpose |
|---|---|
discover <paths> |
Print deterministic candidate capabilities |
generate <paths> -o <kit> |
Generate a Claude-controllable Agent Integration Kit |
enhance <kit> <paths> |
Re-analyze and update an existing kit with Claude Agent SDK |
validate <kit> |
Validate kit protocol and safety contracts |
doctor <kit> |
Check runtime readiness |
web <kit> |
Start browser chat over the tool layer |
chat <kit> |
Start terminal chat over the tool layer |
serve <kit> |
Expose the kit as a stdio MCP server |
dry-run <kit> <tool> |
Preview one tool invocation |
mcp-config <kit> |
Generate MCP client configuration |
Documentation
Development
PYTHONPATH=src python -m unittest discover -s tests
PYTHONPATH=src python -m compileall src tests
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agbr-0.5.0.tar.gz.
File metadata
- Download URL: agbr-0.5.0.tar.gz
- Upload date:
- Size: 179.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb57fc9f570165b95fcd9c2fa14fb6142db10b9755b15cba53e5accd6880fbd7
|
|
| MD5 |
48edb1a9d630b35acea09399442e6d5d
|
|
| BLAKE2b-256 |
67df18ec31d01c5ebdf4b323a850befb2cd6896fc8acd2bbdb9390b53e9301bb
|
File details
Details for the file agbr-0.5.0-py3-none-any.whl.
File metadata
- Download URL: agbr-0.5.0-py3-none-any.whl
- Upload date:
- Size: 143.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70f3b8622f4acf00cd80394aae316cfcbb1b614ecf745885cb2aef0c0bb7b405
|
|
| MD5 |
fa94595677afafcd181654ba852ab5f0
|
|
| BLAKE2b-256 |
a251809d4c8d781dd3f5230cad1961e98c4dd0a98d09d8b98e1aa996f6e27ff0
|