Summary
Implement the MCP Gateway as the central Egress PEP (Policy Enforcement Point) from the Enterprise AI architecture. This component sits between the execution sandbox and corporate data/tools, managing access control, credential injection, and data sealing.
Motivation
The MCP Gateway is the "Back Door" guard — it intercepts all tool calls from the sandbox, evaluates per-tool policies via Cedar/OPA, injects managed credentials (so the LLM never sees API keys), and returns opaque handles instead of raw data.
Architecture
Sandbox → ToolProxy → IPC Bridge → MCP Gateway → PDP (Cedar/OPA)
→ Credential Vault
→ Tool Execution
→ Data Vault (seal)
→ Return Handle
What Needs to Change
- Create
kest/core/gateway/ package
MCPGateway class: HTTP server that receives tool call requests from the IPC bridge
- Per-tool policy evaluation via configured PolicyEngine
- Credential vault: stores tool API keys, injects them at execution time
- Data sealing: wraps tool responses in opaque handles via HandleVault
- Full audit trail: every tool call is a Kest-verified operation
- Taint propagation: tools that return sensitive data auto-taint the lineage
Dependencies
Acceptance Criteria
Effort
~2-3 weeks (Hard)
Summary
Implement the MCP Gateway as the central Egress PEP (Policy Enforcement Point) from the Enterprise AI architecture. This component sits between the execution sandbox and corporate data/tools, managing access control, credential injection, and data sealing.
Motivation
The MCP Gateway is the "Back Door" guard — it intercepts all tool calls from the sandbox, evaluates per-tool policies via Cedar/OPA, injects managed credentials (so the LLM never sees API keys), and returns opaque handles instead of raw data.
Architecture
What Needs to Change
kest/core/gateway/packageMCPGatewayclass: HTTP server that receives tool call requests from the IPC bridgeDependencies
Acceptance Criteria
MCPGatewayclass with tool call routingEffort
~2-3 weeks (Hard)