
CAPI Gateway
io.github.surisoft-io由 GitHub 账号 surisoft-io 发布v1.0.0更新于 Oct 25, 2026
Apache Camel API Gateway with REST-to-MCP bridging for LLM agents.
发布方自己的服务:core.blue
概览
CAPI Gateway 是一个轻量级 API 网关,其试验性 MCP 模式可将 REST 与 MCP 后端暴露为 LLM 智能体可用的 MCP 工具。
- 可以做什么
- 发现并列出在 Consul 中注册的 REST 服务,将其元数据转换为 MCP 工具目录。调用这些工具,由 CAPI 把参数转换为 REST 请求并将响应包装为 MCP 格式。把真正的 MCP Server 后端与 REST 后端聚合到同一个 MCP 端点下。以负载均衡、故障转移和反向代理头代理 REST、WebSocket 与 SSE 流量。应用 OAuth2/OIDC、API Key 与 OPA 授权、限流、链路追踪和 Prometheus 指标。
- 适用场景
- 适用于已在 Consul 后运行 REST 服务、希望助手无需改动后端即可将其作为 MCP 工具调用的情况,或希望把多个 REST 与 MCP 后端统一到一个 MCP 端点的情况。
- 运行要求
- 以 Docker 镜像(surisoft/capi-core)通过 stdio 本地运行,也可用 JAR 或 Helm chart 运行。需要由 CAPI_CONFIG_FILE 环境变量指定的配置文件、带 MCP 元数据的 HashiCorp Consul 注册中心,以及访问网关端口(MCP 默认 8383)的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 CAPI Gateway,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[CAPI] [License] [Docker Image Version (latest by date)]
[Share your use case with us]
CAPI Gateway
Lightweight API Gateway
CAPI is a lightweight API Gateway and load balancer built on Undertow's async proxy architecture. Services register themselves in HashiCorp Consul, and CAPI automatically discovers them, creates proxy handlers, and applies security, throttling, and observability policies — no database required.
Features
- REST, WebSocket, and SSE gateway with fully async proxying (zero threads blocked during backend calls)
- Service discovery via HashiCorp Consul (automatic route creation and removal)
- OAuth2 / OIDC token validation (multi-provider, cookie-based auth supported)
- API Key authentication with per-key throttling (via Consul KV)
- Fine-grained authorization via OPA (Open Policy Agent, async policy evaluation)
- Distributed throttling (Hazelcast, with Kubernetes discovery)
- Load balancing (Round Robin) and Failover
- Distributed tracing (OpenTelemetry / OTLP)
- Prometheus metrics
- OpenAPI spec aggregation from upstream services
- TLS termination and dynamic truststore management (via Consul KV hot-reload)
- CORS management
- Admin API with health, metrics, and route inspection
- Multi-instance support (route targeting per CAPI instance)
- Reverse proxy headers (
X-Forwarded-*) - [Experimental] MCP Gateway — expose services as MCP tools for LLM agents (JSON-RPC 2.0 over Streamable HTTP)
- [Experimental] gRPC Gateway — transparent HTTP/2 reverse proxy for gRPC services with header-based routing
REST-to-MCP Bridging
CAPI's MCP Gateway turns any existing REST API into an MCP tool — no code changes on your backends.
Register a service in Consul with MCP metadata, and LLM agents (Claude Desktop, Cursor, custom agents) can discover and invoke it immediately. Your REST services don't need to know anything about MCP, JSON-RPC, or tool schemas. CAPI handles the translation:
CAPI also supports real MCP Server backends — services that already speak JSON-RPC 2.0. Register them with mcp-type: server and CAPI discovers their tools automatically via tools/list, then proxies tools/call requests transparently. Both REST and MCP Server backends are aggregated under one unified MCP endpoint.
Unlike dedicated MCP gateways that require all backends to be MCP Servers, CAPI bridges the gap between existing REST infrastructure and LLM-native protocols. See the MCP Gateway docs and the demo for a working example with both backend types.
Quickstart
CAPI requires the CAPI_CONFIG_FILE environment variable pointing to a valid configuration file.
Running from JAR
Running with Docker
Running with Helm (Kubernetes)
A Helm chart is available in helm/capi-core/.
See helm/capi-core/values.yaml for all available configuration options.
Ports
Running Modes
The runningMode field controls which types of services CAPI will proxy:
Documentation
来源:README.md,提交 ff325b9
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Core 集成
core.blue
blue.core官方发布者
core.blue 的远程 MCP 端点,提供每位客户独立的私有智能体记忆“house”:可读手册、试用沙盒、查价格与建议,并申请 house。

Brevio Core
由 GitHub 账号 Brevio-Ventures 发布
本地 MCP 服务器,让编码代理扫描代码中反复出现的代理式错误、解释规则、列出规则,并把一次修复固化为守卫。

brain-core
由 GitHub 账号 xy-claude 发布
本地 MCP 服务器,为 Claude Code 智能体提供跨会话的长期记忆,存放在 markdown 库、SQLite 索引和可选的自托管向量库中。

Scovant Core
由 GitHub 账号 Scovant 发布
对网站进行被动式AI代理就绪扫描:robots、llms.txt、JSON-LD、MCP发现、安全性。AI 翻译

ProofCore
由 GitHub 账号 ProofCore-Protocol 发布
面向AI代理的TON区块链零认证加密公证与证据层。AI 翻译