<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>方法协商 on PlumePHP</title><link>https://plumephp.com/tags/%E6%96%B9%E6%B3%95%E5%8D%8F%E5%95%86/</link><description>Recent content in 方法协商 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Tue, 29 Sep 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E6%96%B9%E6%B3%95%E5%8D%8F%E5%95%86/index.xml" rel="self" type="application/rss+xml"/><item><title>MCP 协议深入：JSON-RPC 2.0 与消息语义</title><link>https://plumephp.com/mcp-json-rpc-specification/</link><pubDate>Tue, 29 Sep 2026 09:00:00 +0800</pubDate><guid>https://plumephp.com/mcp-json-rpc-specification/</guid><description>&lt;h2 id="1-json-rpc-20-在-mcp-中的角色"&gt;1. JSON-RPC 2.0 在 MCP 中的角色&lt;/h2&gt;
&lt;p&gt;MCP（Model Context Protocol）的传输层传送的是 &lt;strong&gt;JSON-RPC 2.0&lt;/strong&gt; 消息。理解 JSON-RPC 是读懂 MCP 一切交互的地基：为什么有的消息有 &lt;code&gt;id&lt;/code&gt;、有的没有？为什么工具调用成功却返回 &lt;code&gt;isError: true&lt;/code&gt;？协议怎么知道客户端支持哪些能力？这些答案都在 JSON-RPC 的消息语义与 MCP 的约定里。&lt;/p&gt;</description></item></channel></rss>