home / projects / agency-bridge

Agency-Bridge

Active Dev

High-Throughput Model Serving & MCP Tool Proxy

Asynchronous OpenAI-compatible API gateway supporting Server-Sent Events (SSE) streaming, dynamic Pydantic tool-calling validation, automated circuit breakers, token-based rate limiting, and a Hybrid AI Telegram Remote Ops HQ.

PythonFastAPIAsyncioASGI SSE StreamingModel Context Protocol (MCP)Pydantic v2RedisTelegram Bot API
Private Repository (Architecture Case Study)

// key_features

OpenAI-Compatible SSE Gateway

Asynchronous HTTP bridge (/v1) streaming real-time Server-Sent Events (SSE) responses with zero-overhead protocol translation for local and cloud AI agents.

Circuit Breaker & Token Rate-Limiting

Protects upstream LLM providers with automated circuit breaking, exponential backoff, and token-aware rate limiting.

MCP Tool Proxy & Pydantic Validation

Dynamically validates agent tool-calling schemas using Pydantic v2 and enforces strict sandboxing on file and system operations.

24/7 Hybrid AI Remote Ops HQ

Dual-engine Telegram remote control interface with watchdog auto-recovery, hardware telemetry, and Zero-Trust path/extension security boundaries.

// architecture_highlights

โ†’ โšก INGRESS GATEWAY: FastAPI + ASGI asynchronous server exposing OpenAI-compatible /v1 endpoints with SSE streaming.
โ†’ ๐Ÿ›ก๏ธ RESILIENCE LAYER: Automated Circuit Breaker & token rate-limiter protecting upstream model quotas and preventing cascade failures.
โ†’ ๐Ÿ”ง MCP & TOOL SANDBOX: Dynamic Pydantic schema validation with strict directory/file-extension blocklists (.env, .pem, .key, hardlinks).
โ†’ ๐Ÿ“ก WATCHDOG & REMOTE HQ: 24/7 background daemon with self-healing watchdog logs and Telegram ChatOps control.
โ† Back to Projects