---
title: "研究 MCP 时，我发现了一件事"
url: "https://zuey.me/articles/dang-tim-hieu-ve-mcp-thi-phat-hien-ra-mot-dieu?lang=zh"
locale: zh
access: members
full_text: false
published_at: "2025-04-23T15:10:03.000Z"
tags: ["MCP", "AI"]
translations:
  en: "https://zuey.me/articles/dang-tim-hieu-ve-mcp-thi-phat-hien-ra-mot-dieu.md?lang=en"
  vi: "https://zuey.me/articles/dang-tim-hieu-ve-mcp-thi-phat-hien-ra-mot-dieu.md?lang=vi"
  ko: "https://zuey.me/articles/dang-tim-hieu-ve-mcp-thi-phat-hien-ra-mot-dieu.md?lang=ko"
  ja: "https://zuey.me/articles/dang-tim-hieu-ve-mcp-thi-phat-hien-ra-mot-dieu.md?lang=ja"
---
# 研究 MCP 时，我发现了一件事

> 研究 MCP 的时候我突然意识到：这个协议缺少一种类似 webhook 的机制，让 MCP server 能在需要时主动把事件推送给 MCP client。

> **INFO:** **我发现的事：** MCP 缺少一种类似 webhook 的机制，让 MCP server 能在需要时主动向 MCP client 推送事件。

### 目前的 MCP 只能单向运作

目前 MCP 协议采用 client-server 模型：client 发起通信，server 作出响应。这几乎是单向的，因为发起方永远是 client，server 没办法主动这么做。

![MCP Connection 与 HTTP Connection 对比：client 发送 request，server 返回 response](https://media.zuey.me/blog/2025/2623608d-cleanshot-2025-04-24-at-10-14-22.png)

*现在的 MCP 协议和早期的 HTTP 很像*

这限制了 MCP 的一些能力，以后在安全性上也可能难以升级，就像 HTTP 那边我们有 OAuth2 或 webhook events 一样。

#### 例子 1：支付网关

做过支付工具（比如 Stripe、SePay……）的朋友应该一看就懂：

- client 端总会有一个固定的 webhook 地址，当 server 端有更新（余额变动、支付成功/失败……）时，支付网关就把事件推送过来，client 再据此显示通知或执行后续任务。
- 而现在装了 MCP client 的 AI 工具还做不到这一点：“监听 MCP server 返回的事件”。

> **TIP:** **顺便一提：** 那阵子我研究了一下 Polar 的 MCP Server。Polar 是最近挺火的 MoR（Merchant of Record）服务，专门面向数字产品。我之前看到他们很早就推出了这个 MCP，而且平台是开源的，于是立刻钻进代码库，看看他们能不能搞定 webhook 这件事。结果**果然和我想的一样**：这个 MCP 也只停留在写入和查询数据，没办法接收 server 主动发来的事件。

---

*Phần còn lại dành cho thành viên có quyền đọc toàn bài (Knowledges, Kết hợp, Cộng đồng) — see plans at https://zuey.me/pricing*
