微软苹果都在力挺的开源网关:一个二进制搞定 LLM、MCP、Agent 间通信

lxiol

原文链接:https://mp.weixin.qq.com/s/PPKkIcpcs4oKhky80o5kjw

MCP server 越装越多,LLM 换来换去,Agent 之间通信还得另外搭桥——有没有一个东西能把这三件事全干了?

前言

MCP server 越装越多,LLM 换来换去,Agent 之间通信还得另外搭桥——有没有一个东西能把这三件事全干了?

🔥 agentgateway

agentgateway 是 Linux Foundation 旗下的开源项目,微软、苹果、AWS、阿里、华为都在背后贡献代码。它本质上是一个 Agent 流量的统一网关——把 LLM 调用、MCP 工具代理、A2A Agent 间通信全部收敛到一个二进制文件里,用 Rust 写的,跑起来就是一个进程。

我最先注意到它是因为 MCP server 管不过来了。GitHub MCP、Postgres MCP、浏览器 MCP 各配各的,每加一个就要改一次 Agent 配置。agentgateway 的思路很直接:你在 config.yaml 里把所有 MCP server 定义成 targets,它统一代理在 3000 端口。Agent 只需要连这一个入口,背后你换 server、加新的删旧的,Agent 完全无感。

还不止 MCP。它同时也是一个 LLM 网关——你配好 OpenAI、Anthropic、Gemini 的 key,Agent 通过 agentgateway 调模型,它帮你做负载均衡、限流、故障切换。甚至 Agent 跟 Agent 之间的 A2A 通信也能走它。自带 Web 管理界面跑在 15000 端口,所有流量可观测可审计,还内置了 Guardrails 做内容过滤。


来源:Linux Foundation 项目,agentgateway/agentgateway
star:2,836
权限:本地部署,数据不经过第三方
许可:Apache 2.0

装起来一行:

curl -sL https://agentgateway.dev/install | bash

然后写个 config.yaml,比如我要代理 GitHub 和 Postgres 两个 MCP server:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
`# config.yaml
# yaml-language-server: $schema=https://agentgateway.dev/schema/config

mcp:
port:3000
targets:
-name:github-mcp
    stdio:
      cmd:npx
      args:
      -"-y"
      -"@modelcontextprotocol/server-github"
-name:postgres-mcp
    stdio:
      cmd:npx
      args:
      -"-y"
      -"@modelcontextprotocol/server-postgres"`

启动 agentgateway,Agent 端的 MCP 地址改成 http://localhost:3000/mcp——两个 server 的工具自动合并到一个入口,Agent 该调哪个调哪个。打开浏览器进 http://localhost:15000/ui/ 还能看到所有 MCP target 的运行状态和工具列表。

相关资源

点个关注,带你一起围观最前沿的 Agent 工具生态!


💬 本文评论区已开启,但暂无读者留言。

本文转载自微信公众号,如有侵权请联系删除。

  • 标题: 微软苹果都在力挺的开源网关:一个二进制搞定 LLM、MCP、Agent 间通信
  • 作者: lxiol
  • 创建于 : 2026-06-11 12:22:07
  • 更新于 : 2026-06-30 17:05:33
  • 链接: https://blog.lxiol.cn/2026/06/11/微软苹果都在力挺的开源网关一个二进制搞定-LLMMCPAgent-间通信/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
目录
微软苹果都在力挺的开源网关:一个二进制搞定 LLM、MCP、Agent 间通信