<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Resources on PlumePHP</title><link>https://plumephp.com/tags/resources/</link><description>Recent content in Resources on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 28 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/resources/index.xml" rel="self" type="application/rss+xml"/><item><title>MCP 资源模板与订阅：URI 模板、ListChanged 通知与上下文注入</title><link>https://plumephp.com/mcp-resources-templates-subscriptions/</link><pubDate>Mon, 28 Sep 2026 10:00:00 +0800</pubDate><guid>https://plumephp.com/mcp-resources-templates-subscriptions/</guid><description>&lt;h2 id="1-从静态资源到资源模板"&gt;1. 从静态资源到资源模板&lt;/h2&gt;
&lt;p&gt;基础 MCP 资源是「固定的 URI → 固定内容」。但真实世界的资源是&lt;strong&gt;动态&lt;/strong&gt;的：配置文件随环境变、文档按 ID 取、用户数据按参数查。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Resource Template（资源模板）&lt;/strong&gt; 用 URI 模板表达「一类可寻址资源」，让客户端按需取任意子资源。&lt;/p&gt;</description></item></channel></rss>