external-ai-ecosystem-gateway
External AI Ecosystem Gateway
Ein sicherheitsorientiertes Python-Gateway, das MCP-kompatiblen Assistenten-Clients Tools mit Berechtigungsumfang bereitstellt und dabei den Zugriff auf externe Systeme wie Slack vermittelt. Es demonstriert Mandantenisolierung, delegierte Autorisierung, menschliche Bestätigung für sensible Schreibvorgänge, idempotente Ausführung, signierte Webhook-Verifizierung, widerrufsfähige Grant-Speicherung und einen hash-verketteten Audit-Trail.
Dies ist eine Portfolio-/Referenzimplementierung, kein Produktions-Identitätsanbieter. Der header-basierte Entwicklungs-Auth-Adapter muss vor der Bereitstellung durch die in
docs/security.mdbeschriebene OIDC-Validierungs-Middleware ersetzt werden.
Architektur
Assistant / Slack client
|
v
FastAPI edge + auth adapter
|
v
Policy + tenant boundary ----> confirmation tokens
|
v
Sandboxed tool registry -----> Slack / OpenAI / Claude adapters
|
+--------------------> idempotency store
+--------------------> append-only hash-chained audit logRelated MCP server: MCP Tool Manager
Schnellstart
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
uvicorn ecosystem_gateway.app:app --reloadTools auflisten:
curl localhost:8000/mcp/tools \
-H 'X-Subject: user-1' -H 'X-Tenant-Id: tenant-a' -H 'X-Roles: operator'Führen Sie die Testsuite mit pytest aus. Wenn kein Slack-Token konfiguriert ist, laufen die Connectors in einem sicheren Sandbox-Modus und geben die Anfrage zurück, die sie senden würden.
Sicherheitseigenschaften
Jeder Principal und jeder Idempotenzschlüssel ist im Mandanten-Namespace angesiedelt.
Tool-Richtlinien kombinieren Rollen mit geringsten Privilegien mit delegierten Scopes.
Sensible Schreibvorgänge erfordern ein kurzlebiges Token, das an Subjekt, Mandant, Tool und Argumente gebunden ist.
Webhook-Signaturen verwenden einen Konstantzeit-Vergleich und lehnen veraltete Anfragen ab.
Audit-Datensätze bilden eine SHA-256-Kette, sodass Löschung oder Veränderung erkennbar ist.
OAuth-Grants unterstützen den Widerruf und legen Refresh-Tokens niemals über Tool-Ergebnisse offen.
Siehe docs/security.md für die Checkliste zur Produktionshärtung und das Bedrohungsmodell.
Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
OAuth 2.1 short-link tools for AI agents with scoped tokens, approvals, audit logs, and revocation.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and execute tools via a secure MCP server with JWT authentication, RBAC, rate limiting, and audit logging.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely discover, invoke, and manage tools through a hardened MCP endpoint with protections like injection detection, circuit breakers, retry backoff, response caching, context-window limiting, and state snapshots.9 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to securely call enterprise MCP tools with tenant-scoped RBAC, human approvals, audit logging, and multi-tool workflows across customer, order, document, and ticket data.-
- AlicenseNot gradedqualityAmaintenanceEnables existing apps to expose their users and data to external AI agents via MCP with OAuth 2.1 authentication and scoped tools.27 npmMIT