{"id":5783,"date":"2026-02-25T09:13:38","date_gmt":"2026-02-25T01:13:38","guid":{"rendered":"http:\/\/xinblog.ltd\/?p=5783"},"modified":"2026-02-25T09:46:26","modified_gmt":"2026-02-25T01:46:26","slug":"8-mcp%e4%b8%ad%e8%b5%84%e6%ba%90-%e6%a0%b8%e5%bf%83%e5%8e%9f%e8%af%ad%e4%b8%8e%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"http:\/\/xinblog.ltd\/?p=5783","title":{"rendered":"8.MCP\u4e2d\u8d44\u6e90-\u6838\u5fc3\u539f\u8bed\u4e0e\u4f7f\u7528\u65b9\u5f0f"},"content":{"rendered":"<p>MCP\u4e2d\u7684\u8d44\u6e90<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u8bf4\u4e0bMCP\u4e2d\uff0c\u4ec0\u4e48\u662f\u8d44\u6e90<\/p>\n<p>\u5728MCP\u4e4b\u4e2d\uff0c\u8d44\u6e90\u662f\u5176\u4e2d\u7684\u6838\u5fc3\u539f\u8bed\uff0c\u7528\u4e8e\u5c06\u670d\u52a1\u5668\u7aef\u7684\u67d0\u4e9b\u6570\u636e\u66b4\u9732\u7ed9\u5ba2\u6237\u7aef\uff0c\u4f9b\u5ba2\u6237\u7aef\u4e0a\u7684\u5927\u6a21\u578b\u8fdb\u884c\u4f7f\u7528\uff0c\u6dfb\u52a0\u5230\u4e0a\u4e0b\u6587\u4e4b\u4e2d\u3002<\/p>\n<p>\u800c\u8fd9\u4e2a\u6570\u636e\uff0c\u53ef\u4ee5\u662f\u4efb\u610f\u7c7b\u578b\u7684\u6587\u672c\u6216\u8005\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u5305\u62ec\u6587\u4ef6\uff0c\u6570\u636e\u5e93\u8bb0\u5f55\uff0c\u65e5\u5fd7\uff0c\u97f3\u9891\uff0c\u89c6\u9891\u7b49\u3002<\/p>\n<p>\u5bf9\u4e8e\u8d44\u6e90\uff0c\u5728\u4e3b\u673a\u4e0a\u662f\u7531\u7740\u552f\u4e00\u7684URI\u786e\u5b9a\u7684\uff0c\u9075\u5faa\u7740\u901a\u7528\u5316\u7684\u534f\u8bae<\/p>\n<p>\u4f8b\u5982<\/p>\n<p>file:\/\/\/home\/user\/docs\/report.pdf<\/p>\n<p>postgres:\/\/db.example.com\/customers\/schema<\/p>\n<p>screen:\/\/localhost\/display<\/p>\n<p>\u6839\u636e\u4e0d\u540c\u7684\u534f\u8bae\uff0c\u786e\u5b9aURI\u683c\u5f0f\uff0c\u5185\u5bb9<\/p>\n<p>\u4f46\u662f\u9700\u8981\u6ce8\u610f\u4e00\u70b9\uff0c\u5c31\u662f\u4e0d\u540c\u7684MCP\u7684\u5ba2\u6237\u7aef\u5904\u7406\u8d44\u6e90\u7684\u65b9\u5f0f\u4e0d\u540c<\/p>\n<p>\u6bd4\u5982\u5e38\u89c1\u7684Claude Tare\uff0c\u9700\u8981\u8ba9\u7528\u6237\u660e\u786e\u9009\u62e9\u8d44\u6e90<\/p>\n<p>\u5176\u4ed6\u7684\u5ba2\u6237\u7aef\u4f1a\u81ea\u4e3b\u7684\u9009\u62e9\u8d44\u6e90<\/p>\n<p>\u56e0\u6b64\u9700\u8981\u6ce8\u610f\uff0c\u5728\u5229\u7528MCP\u534f\u8bae\u66b4\u9732\u8d44\u6e90\u7684\u65f6\u5019\uff0c\u9700\u8981\u610f\u8bc6\u5230MCP Host\u7c7b\u578b\u4e0d\u540c\uff0c\u4f7f\u7528\u8d44\u6e90\u7684\u65b9\u5f0f\u4e0d\u540c\uff0c\u5982\u679c\u9700\u8981\u660e\u786e\u7531LLM\u6765\u63a7\u5236\u8d44\u6e90\u4f7f\u7528\uff0c\u5e94\u8be5\u5c06\u8d44\u6e90\u5c01\u88c5\u4e3a\u5de5\u5177\u800c\u4e0d\u662f\u8d44\u6e90\u3002<\/p>\n<p>\u5176\u6b21\u662f\u5728MCP\u4e2d\u8d44\u6e90\u7684\u5177\u4f53\u4f7f\u7528\u65b9\u5f0f<\/p>\n<p>\u670d\u52a1\u5668\u9996\u5148\u8981\u58f0\u660e\u81ea\u5df1\u652f\u6301Resource\u66b4\u9732\u529f\u80fd<\/p>\n<p>{<\/p>\n<p>&#8220;capabilities&#8221;: {<\/p>\n<p>&#8220;resources&#8221;: {<\/p>\n<p>&#8220;subscribe&#8221;: true,<\/p>\n<p>&#8220;listChanged&#8221;: true<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>\u5176\u4e2dsubscribe \u662f\u6307\u7684\u5ba2\u6237\u7aef\u662f\u5426\u652f\u6301\u8ba2\u9605\u5355\u4e2a\u8d44\u6e90<\/p>\n<p>listChanged\u6307\u7684\u662f\u8d44\u6e90\u5217\u8868\u53d8\u5316\u7684\u65f6\u5019\uff0c\u670d\u52a1\u5668\u7aef\u662f\u5426\u53d1\u9001\u901a\u77e5\u3002<\/p>\n<p>\u670d\u52a1\u5668\u7aef\u9700\u8981\u4e00\u4e2a\u7edf\u4e00\u7684\u6570\u636e\u7ed3\u6784\u6765\u63cf\u8ff0\u6bcf\u4e2a\u8d44\u6e90\u5bf9\u8c61\uff0c<\/p>\n<p>\u5305\u542b URI \u8d44\u6e90\u6807\u8bc6\u7b26\uff0cname\uff0cdescription\uff0cmineType\uff0csize<\/p>\n<p>\u5e76\u4e14\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u5206\u4e3a\u4e86\u9759\u6001\u8d44\u6e90\u548c\u52a8\u6001\u8d44\u6e90<\/p>\n<table>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;uri&#8221;: &#8220;file:\/\/\/logs\/app.log&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;Application Logs&#8221;,<\/p>\n<p>&#8220;description&#8221;: &#8220;\u5b9e\u65f6\u65e5\u5fd7\u6587\u4ef6&#8221;,<\/p>\n<p>&#8220;mimeType&#8221;: &#8220;text\/plain&#8221;<\/p>\n<p>}<\/td>\n<\/tr>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;uriTemplate&#8221;: &#8220;logs:\/\/recent?timeframe={duration}&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;\u6700\u8fd1\u65e5\u5fd7&#8221;,<\/p>\n<p>&#8220;description&#8221;: &#8220;\u6309\u65f6\u957f\u83b7\u53d6\u65e5\u5fd7&#8221;,<\/p>\n<p>&#8220;mimeType&#8221;: &#8220;text\/plain&#8221;<\/p>\n<p>}<\/td>\n<\/tr>\n<\/table>\n<p>\u5bf9\u4e8e\u52a8\u6001\u6570\u636e\uff0c\u6839\u636e\u5176\u4e2d\u7684\u6807\u51c6\u586b\u5165\uff0c\u8ba9\u5ba2\u6237\u7aef\u8fdb\u884c\u6784\u5efa\u5bf9\u5e94\u7684URI\uff0c\u4ece\u800c\u83b7\u53d6\u5230\u6700\u8fd1\u7684\u8d44\u6e90\u3002<\/p>\n<p>\u5bf9\u4e8e\u670d\u52a1\u5668\u7aef\u7684\u4ee3\u7801\u5b9e\u73b0\uff0c\u5219\u662f\u53ef\u4ee5\u901a\u8fc7\u88c5\u9970\u5668\u548c\u6ce8\u518c\u51fd\u6570\u6765\u5b9e\u73b0\u8d44\u6e90\u5b9a\u4e49\u63a5\u53e3<\/p>\n<table>\n<tr>\n<td>\n  # \u4f7f\u7528\u88c5\u9970\u5668\u6ce8\u518c\u8d44\u6e90\u5217\u8868\u5904\u7406\u51fd\u6570<\/p>\n<p>@app.list_resources()<\/p>\n<p>async def list_resources() -&gt; list[types.Resource]:<\/p>\n<p>&#8220;&#8221;&#8221;<\/p>\n<p>\u5b9e\u73b0\u8d44\u6e90\u5217\u8868API\uff0c\u8fd4\u56de\u670d\u52a1\u5668\u63d0\u4f9b\u7684\u8d44\u6e90\u5217\u8868<\/p>\n<p>\u8fd4\u56de:<\/p>\n<p>list[types.Resource]: \u8d44\u6e90\u5bf9\u8c61\u5217\u8868<\/p>\n<p>&#8220;&#8221;&#8221;<\/p>\n<p>return [<\/p>\n<p># \u521b\u5efa\u4e00\u4e2a\u8d44\u6e90\u5bf9\u8c61<\/p>\n<p>types.Resource(<\/p>\n<p>uri=&#8221;file:\/\/\/logs\/app.log&#8221;,  # \u8d44\u6e90\u7684\u552f\u4e00\u6807\u8bc6\u7b26<\/p>\n<p>name=&#8221;Application Logs&#8221;    # \u8d44\u6e90\u7684\u663e\u793a\u540d\u79f0<\/p>\n<p>mimeType=&#8221;text\/plain&#8221;<\/p>\n<p>)<\/p>\n<p>]<\/td>\n<\/tr>\n<\/table>\n<p>\u901a\u8fc7app.list_resources\u6765\u8ba9\u670d\u52a1\u5668\u7aef\u6ce8\u518c\u66b4\u9732\u8d44\u6e90\u7684\u51fd\u6570<\/p>\n<p>\u5bf9\u4e8e\u5ba2\u6237\u7aef\uff0c\u5219\u662f\u901a\u8fc7\u53d1\u8d77\u4e0d\u540c\u7684\u67e5\u8be2\u8bf7\u6c42\uff0c\u83b7\u53d6\u5230\u53ef\u7528\u8d44\u6e90<\/p>\n<p>\u6bd4\u5982\u5e38\u89c1\u7684 resources\/list \u8bf7\u6c42\u6765\u83b7\u53d6\u5230\u53ef\u7528\u8d44\u6e90<\/p>\n<table>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;jsonrpc&#8221;: &#8220;2.0&#8221;,<\/p>\n<p>&#8220;id&#8221;: 1,<\/p>\n<p>&#8220;method&#8221;: &#8220;resources\/list&#8221;,<\/p>\n<p>&#8220;params&#8221;: {<\/p>\n<p>&#8220;cursor&#8221;: &#8220;optional-cursor-value&#8221;<\/p>\n<p>}<\/p>\n<p>}<\/td>\n<\/tr>\n<\/table>\n<p>\u5bf9\u5e94\u7684\u54cd\u5e94\u4e3a\uff1a<\/p>\n<table>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;jsonrpc&#8221;: &#8220;2.0&#8221;,<\/p>\n<p>&#8220;id&#8221;: 1,<\/p>\n<p>&#8220;result&#8221;: {<\/p>\n<p>&#8220;resources&#8221;: [<\/p>\n<p>{<\/p>\n<p>&#8220;uri&#8221;: &#8220;file:\/\/\/project\/src\/main.rs&#8221;,<\/p>\n<p>&#8220;name&#8221;: &#8220;main.rs&#8221;,<\/p>\n<p>&#8220;description&#8221;: &#8220;Primary application entry point&#8221;,<\/p>\n<p>&#8220;mimeType&#8221;: &#8220;text\/x-rust&#8221;<\/p>\n<p>}<\/p>\n<p>],<\/p>\n<p>&#8220;nextCursor&#8221;: &#8220;next-page-cursor&#8221;<\/p>\n<p>}<\/p>\n<p>}<\/td>\n<\/tr>\n<\/table>\n<p>\u901a\u8fc7resources\/read \u6765\u6307\u5b9aURI\uff0c\u4ece\u800c\u8bfb\u53d6\u5230\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<p>\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u683c\u5f0f\u5982\u4e0b<\/p>\n<table>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;jsonrpc&#8221;: &#8220;2.0&#8221;,<\/p>\n<p>&#8220;id&#8221;: 2,<\/p>\n<p>&#8220;method&#8221;: &#8220;resources\/read&#8221;,<\/p>\n<p>&#8220;params&#8221;: {<\/p>\n<p>&#8220;uri&#8221;: &#8220;file:\/\/\/logs\/app.log&#8221;,<\/p>\n<p>}<\/p>\n<p>}<\/td>\n<\/tr>\n<\/table>\n<p>\u670d\u52a1\u5668\u7684\u54cd\u5e94\u4e3a<\/p>\n<table>\n<tr>\n<td>\n  {<\/p>\n<p>&#8220;jsonrpc&#8221;: &#8220;2.0&#8221;,<\/p>\n<p>&#8220;id&#8221;: 2,<\/p>\n<p>&#8220;method&#8221;: &#8220;resources\/read&#8221;,<\/p>\n<p>&#8220;params&#8221;: {<\/p>\n<p>&#8220;uri&#8221;: &#8220;file:\/\/\/logs\/app.log&#8221;,<\/p>\n<p>}<\/p>\n<p>}<\/td>\n<\/tr>\n<\/table>\n<p>\u9664\u6b64\u5916\u8fd8\u6709\u8fd9\u5b9e\u65f6\u901a\u77e5\u673a\u5236\uff0c\u8ba9\u5ba2\u6237\u7aef\u4fdd\u6301\u5bf9\u8d44\u6e90\u72b6\u6001\u7684\u611f\u77e5<\/p>\n<p>\u5217\u8868\u53d8\u66f4\u901a\u77e5\uff0c\u5f53\u670d\u52a1\u5668\u8d44\u6e90\u8fdb\u884c\u589e\u5220\u6539\u7684\u65f6\u5019\uff0c\u53d1\u51fa\u5bf9\u5e94\u7684\u901a\u77e5<\/p>\n<p>\u6216\u8005\u6587\u4ef6\u5185\u5bb9\u53d1\u751f\u66f4\u65b0\u8ba2\u9605\uff0c\u670d\u52a1\u5668\u7aef\u4f1a\u901a\u77e5\u5bf9\u5e94\u7684\u8ba2\u9605\u8005\uff0c\u65b9\u4fbf\u83b7\u53d6\u5230\u6700\u65b0\u5185\u5bb9\u3002<\/p>\n<p>\u90a3\u4e48\u6700\u7ec8\u7684\u4ea4\u4e92\u6d41\u7a0b\u4e3a<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"2160\" height=\"3337\" src=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1.png\" class=\"wp-image-5784\" alt=\"IMG_256\" srcset=\"http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1.png 2160w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1-194x300.png 194w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1-663x1024.png 663w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1-768x1186.png 768w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1-994x1536.png 994w, http:\/\/xinblog.ltd\/wp-content\/uploads\/2025\/11\/img_256-1-1326x2048.png 1326w\" sizes=\"(max-width: 2160px) 100vw, 2160px\" \/><\/p>\n<p>\u540c\u65f6\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408\u4ee3\u7801\u6765\u770b\uff0c\u5047\u8bbe\u6211\u4eec\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u6709\u4e00\u7cfb\u5217\u7684\u6587\u6863<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7aef\u901a\u8fc7\u51fd\u6570\u8fdb\u884c\u8d44\u6e90\u66b4\u9732\uff0c\u4ee3\u7801\u5982\u4e0b<\/p>\n<table>\n<tr>\n<td>\n  # \u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/p>\n<p>import asyncio<\/p>\n<p>import os<\/p>\n<p>import mcp.types as types<\/p>\n<p>from mcp.server import Server<\/p>\n<p>from mcp.server.stdio import stdio_server<\/p>\n<p># \u521b\u5efa\u4e00\u4e2aMCP\u670d\u52a1\u5668\u5b9e\u4f8b\uff0c\u540d\u79f0\u4e3a&#8221;example-server&#8221;<\/p>\n<p>app = Server(&#8220;example-server&#8221;)<\/p>\n<p>DOC_DIR = &#8220;\u4f60\u7684\u8def\u5f84\/mcp-in-action\/05-resource-\u8d44\u6e90\u53d1\u73b0\/server\/medical_docs&#8221;<\/p>\n<p># \u6ce8\u518c\u8d44\u6e90\u5217\u8868<\/p>\n<p>@app.list_resources()<\/p>\n<p>async def list_resources() -&gt; list[types.Resource]:<\/p>\n<p>files = [f for f in os.listdir(DOC_DIR) if f.endswith(&#8220;.txt&#8221;)]<\/p>\n<p>return [<\/p>\n<p>types.Resource(<\/p>\n<p>uri=f&#8221;file:\/\/{os.path.join(DOC_DIR, fname)}&#8221;,<\/p>\n<p>name=fname,<\/p>\n<p>description=&#8221;\u6587\u6863&#8221;,<\/p>\n<p>mimeType=&#8221;text\/plain&#8221;<\/p>\n<p>)<\/p>\n<p>for fname in files<\/p>\n<p>]<\/p>\n<p># \u8bfb\u53d6\u8d44\u6e90\u5185\u5bb9<\/p>\n<p>@app.read_resource()<\/p>\n<p>async def read_resource(uri: str) -&gt; str:<\/p>\n<p>path = uri.replace(&#8220;file:\/\/&#8221;, &#8220;&#8221;)<\/p>\n<p>with open(path, encoding=&#8221;utf-8&#8243;) as f:<\/p>\n<p>return f.read()<\/p>\n<p>async def main():<\/p>\n<p>async with stdio_server() as streams:<\/p>\n<p>await app.run(<\/p>\n<p>streams[0],<\/p>\n<p>streams[1],<\/p>\n<p>app.create_initialization_options()<\/p>\n<p>)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<\/p>\n<p>asyncio.run(main())<\/td>\n<\/tr>\n<\/table>\n<p>\u4e4b\u540e\u5ba2\u6237\u7aef\u53ef\u4ee5\u901a\u8fc7\u8bf8\u5982stdio\u7684\u534f\u8bae\u8fdb\u884c\u8bfb\u53d6\u3002<\/p>\n<table>\n<tr>\n<td>\n  import asyncio<\/p>\n<p>import sys<\/p>\n<p>from mcp import ClientSession, StdioServerParameters<\/p>\n<p>from mcp.types import Notification, Resource<\/p>\n<p>from mcp.client.stdio import stdio_client<\/p>\n<p>async def main():<\/p>\n<p># \u68c0\u67e5\u547d\u4ee4\u884c\u53c2\u6570 &#8211; \u5fc5\u987b\u901a\u8fc7\u4e24\u4e2a\u53c2\u6570\u542f\u52a8\u6b64\u7a0b\u5e8f\uff0c\u4e00\u4e2a\u5f53\u524d\u5ba2\u6237\u7aef\uff0c\u4e00\u4e2a\u670d\u52a1\u5668\u7a0b\u5e8f<\/p>\n<p>if len(sys.argv) &lt; 2:<\/p>\n<p>print(&#8220;Usage: python simple_client.py &lt;path_to_server_script&gt;&#8221;)<\/p>\n<p>sys.exit(1)<\/p>\n<p>server_script = sys.argv[1]<\/p>\n<p># \u4f7f\u7528\u670d\u52a1\u5668\u7684 Python \u89e3\u91ca\u5668\u6765\u542f\u52a8 Server\uff0c\u800c\u4e0d\u662f\u5f53\u524d\u5ba2\u6237\u7aef\u7684Python\u73af\u5883<\/p>\n<p>params = StdioServerParameters(<\/p>\n<p>command=&#8221;\u4f60\u7684\u73af\u5883\u8def\u5f84\/bin\/python3&#8243;,<\/p>\n<p>args=[server_script],<\/p>\n<p>env=None<\/p>\n<p>)<\/p>\n<p># \u5efa\u7acb stdio \u4f20\u8f93\u5e76\u521b\u5efa Session<\/p>\n<p>async with stdio_client(params) as (reader, writer):<\/p>\n<p>async with ClientSession(reader, writer) as session:<\/p>\n<p># \u521d\u59cb\u5316\u63e1\u624b<\/p>\n<p>await session.initialize()<\/p>\n<p># \u53d1\u9001\u521d\u59cb\u5316\u5b8c\u6210\u901a\u77e5<\/p>\n<p>notification = Notification(<\/p>\n<p>method=&#8221;notifications\/initialized&#8221;,<\/p>\n<p>params={}<\/p>\n<p>)<\/p>\n<p>await session.send_notification(notification)<\/p>\n<p># \u5217\u51fa\u8d44\u6e90<\/p>\n<p>response = await session.list_resources()<\/p>\n<p>print(&#8220;\u8d44\u6e90\u5217\u8868\uff1a&#8221;)<\/p>\n<p># \u6253\u5370\u8fd4\u56de\u683c\u5f0f<\/p>\n<p>print(f&#8221;\u8fd4\u56de\u7c7b\u578b: {type(response)}&#8221;)<\/p>\n<p>print(f&#8221;\u8fd4\u56de\u5185\u5bb9: {response}&#8221;)<\/p>\n<p># \u7b80\u5316\u5904\u7406\u8d44\u6e90\u5217\u8868<\/p>\n<p>resources = getattr(response, &#8216;resources&#8217;, response)<\/p>\n<p>for res in resources:<\/p>\n<p>print(f&#8221;- URI: {res.uri}, Name: {res.name}&#8221;)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<\/p>\n<p>asyncio.run(main())<\/td>\n<\/tr>\n<\/table>\n<p>\u901a\u8fc7\u53d1\u9001\u901a\u77e5\u5e76\u5229\u7528list_resources\u51fd\u6570\u83b7\u53d6\u5230\u4e86\u76f8\u5173\u7684\u8d44\u6e90\u3002<\/p>\n<p>\u6700\u540e\u6211\u4eec\u603b\u7ed3\u4e0b\uff0c<\/p>\n<p>MCP\u652f\u6301\u5176\u4e2d\u670d\u52a1\u7aef\u7684\u8d44\u6e90\u5411\u7740\u5ba2\u6237\u7aef\u66b4\u9732\u6570\u636e\u548c\u5185\u5bb9\uff0c\u4f5c\u4e3aLLM\u4ea4\u4e92\u7684\u4e0a\u4e0b\u6587<\/p>\n<p>\u5e76\u901a\u8fc7\u7279\u5b9a\u51fd\u6570\uff0c\u8bf8\u5982resources\/list\u63a5\u53e3\u6765\u63d0\u4f9bURI\u4f7f\u7528\u3002\u4ece\u800c\u5efa\u7acb\u4e86\u5408\u683c\u7684\u8d44\u6e90\u7ba1\u7406\u673a\u5236\uff0c\u6765\u5bf9\u5916\u90e8\u6570\u636e\u8fdb\u884c\u5f15\u7528<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MCP\u4e2d\u7684\u8d44\u6e90 \u8fd9\u91cc\u6211\u4eec\u8bf4\u4e0bM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"_links":{"self":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5783"}],"collection":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5783"}],"version-history":[{"count":1,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5783\/revisions"}],"predecessor-version":[{"id":5785,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=\/wp\/v2\/posts\/5783\/revisions\/5785"}],"wp:attachment":[{"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5783"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinblog.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}