{"id":121921,"date":"2026-11-04T01:16:49","date_gmt":"2026-11-03T17:16:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/121921.html"},"modified":"2026-11-04T01:16:49","modified_gmt":"2026-11-03T17:16:49","slug":"mcp-%e5%ae%9e%e6%88%98%e6%89%8b%e8%ae%b0%ef%bc%88%e5%8d%81%e4%b8%89%ef%bc%89%ef%bc%9amcp%e5%a4%9a%e7%a7%9f%e6%88%b7%e9%9a%94%e7%a6%bb%ef%bc%8c%e4%b8%80%e4%b8%aa%e7%bd%91%e5%85%b3%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/121921.html","title":{"rendered":"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103171645-6aea16fda8c68.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u524d\u7f6e&#xff1a;\u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173\u3001\u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001\u751f\u4ea7\u843d\u5730\u3001\u7bc7&#xff08;\u4e5d&#xff09;6\u5c42\u5b89\u5168\u9632\u62a4 \u6280\u672f\u57fa\u7ebf&#xff1a;MCP Java SDK 2.0.0&#xff08;\u975e Spring AI&#xff0c;\u540c\u7bc7\u516d\u7f51\u5173&#xff09;&#xff1b;\u591a\u79df\u6237\u5728\u4f20\u8f93\u62e6\u622a\u5668\u5c42\u5b9e\u65bd&#xff0c;\u4e0d\u4f9d\u8d56 Spring AI \u6ce8\u89e3 \u5b9e\u6d4b\u73af\u5883&#xff1a;\u672c\u5730 Docker &#043; \u5185\u7f6e k8s&#xff0c;\u53cc\u7f51\u5173\u5b9e\u4f8b &#043; Redis&#xff08;\u672c\u6587\u5b9e\u6d4b\u9879\u5747\u5728\u8be5\u73af\u5883\u9a8c\u8bc1&#xff09;<\/p>\n<hr \/>\n<h3>\u5f15\u5b50&#xff1a;\u7f51\u5173\u63a5\u4e86\u7b2c\u4e09\u4e2a\u56e2\u961f&#xff0c;\u5f00\u59cb\u4e32\u5473<\/h3>\n<p>\u7bc7&#xff08;\u516d&#xff09;\u6211\u628a\u7f51\u5173\u642d\u8d77\u6765\u4e86&#xff0c;\u95e8\u5e97\u8fd0\u8425\u7684\u5de5\u5177\u5148\u6302\u4e0a\u53bb&#xff0c;\u8dd1\u5f97\u633a\u597d\u3002\u540e\u6765\u4f9b\u5e94\u94fe\u56e2\u961f\u8bf4&#034;\u6211\u4eec\u4e5f\u60f3\u7528&#034;&#xff0c;\u518d\u540e\u6765\u8d22\u52a1\u56e2\u961f\u4e5f\u6765\u4e86\u3002<\/p>\n<p>\u7b2c\u4e09\u4e2a\u56e2\u961f\u63a5\u8fdb\u6765\u90a3\u5929\u51fa\u4e86\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<ul>\n<li>\u8d22\u52a1\u7684 gen_finance_report \u88ab\u4f9b\u5e94\u94fe\u8bef\u8c03\u2014\u2014\u4e0d\u662f\u6545\u610f&#xff0c;\u662f\u5de5\u5177\u76ee\u5f55\u6ca1\u9694\u5f00&#xff0c;\u641c\u51fa\u6765\u5c31\u70b9\u4e86&#xff1b;<\/li>\n<li>\u4f9b\u5e94\u94fe\u5199\u4e86\u4e2a\u811a\u672c\u72c2\u5237 get_inventory&#xff0c;\u628a\u95e8\u5e97\u90a3\u8fb9\u7684\u914d\u989d\u5168\u5403\u5149&#xff0c;\u95e8\u5e97\u5927\u4fc3\u65f6\u8c03\u4e0d\u52a8\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e00\u523b\u6211\u61c2\u4e86&#xff1a;\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u56e2\u961f&#xff0c;\u4e0d\u9694\u79bb\u5c31\u662f\u4e8b\u6545\u3002\u672c\u6587\u5c31\u8bb2\u600e\u4e48\u5728\u5df2\u6709\u7f51\u5173\u4e0a&#xff0c;\u628a&#034;\u591a\u79df\u6237&#034;\u8fd9\u5c42\u8865\u4e0a\u2014\u2014\u79df\u6237\u8def\u7531\u3001\u51ed\u8bc1\u9694\u79bb\u3001\u914d\u989d\u3001\u6570\u636e\u9694\u79bb&#xff0c;\u56db\u4ef6\u5957\u3002<\/p>\n<p>\u8303\u56f4\u8bf4\u660e&#xff1a;\u672c\u6587\u662f\u903b\u8f91\u9694\u79bb&#xff08;\u5355\u7f51\u5173\u6309 tenantId \u8fc7\u6ee4&#xff09;&#xff0c;\u5b9e\u4f8b\u7ea7\u5f3a\u9694\u79bb\u53ea\u5728\u5bf9\u6bd4\u91cc\u63d0&#xff0c;\u4e0d\u5c55\u5f00\u90e8\u7f72\u3002\u9884\u7b97\u8ba1\u91cf\u3001\u9519\u8bef\u5904\u7406\u5c5e\u4e8e\u53e6\u4e00\u56de\u4e8b&#xff0c;\u89c1\u914d\u5957\u6563\u70b9\u6587\u3002<\/p>\n<hr \/>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103171647-6aea16ff5f1b1.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9700\u8981\u591a\u79df\u6237<\/h3>\n<table>\n<tr>\u52a8\u673a\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u6210\u672c<\/td>\n<td>\u4e00\u5957\u7f51\u5173\u517b\u591a\u4e2a\u56e2\u961f&#xff0c;\u8fdc\u6bd4\u6bcf\u56e2\u961f\u5404\u8d77\u4e00\u5957\u7701\u8fd0\u7ef4<\/td>\n<\/tr>\n<tr>\n<td>\u9694\u79bb<\/td>\n<td>\u5de5\u5177\u3001\u6743\u9650\u3001\u6570\u636e\u3001\u914d\u989d\u90fd\u6309\u79df\u6237\u9694\u5f00&#xff0c;\u4e92\u4e0d\u4e32\u5473<\/td>\n<\/tr>\n<tr>\n<td>\u5408\u89c4<\/td>\n<td>\u8d22\u52a1\/HR \u8fd9\u7c7b\u654f\u611f\u79df\u6237&#xff0c;\u51fa\u4e86\u6cc4\u6f0f\u80fd\u5b9a\u4f4d\u5230&#034;\u54ea\u4e2a\u79df\u6237&#034;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u9694\u79bb\u7684\u4e09\u7c7b\u540e\u679c&#xff0c;\u6b63\u662f\u5f15\u5b50\u91cc\u7684\u771f\u5b9e\u4e8b\u6545&#xff1a;\u4e32\u8c03&#xff08;\u5de5\u5177\u53ef\u89c1\u6027&#xff09;\u3001\u8d85\u989d&#xff08;\u914d\u989d&#xff09;\u3001\u6cc4\u6f0f&#xff08;\u6570\u636e&#xff09;\u3002\u4e0b\u9762\u56db\u4e2a\u5c0f\u8282\u4e00\u4e00\u5bf9\u5e94\u89e3\u51b3\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u4e09\u79cd\u591a\u79df\u6237\u65b9\u6848\u5bf9\u6bd4<\/h3>\n<table>\n<tr>\u65b9\u6848\u505a\u6cd5\u9694\u79bb\u5f3a\u5ea6\u6210\u672c\u9002\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u5171\u4eab\u5b9e\u4f8b\u903b\u8f91\u9694\u79bb<\/td>\n<td>\u5355\u7f51\u5173&#xff0c;\u4e00\u5207\u6309 tenantId \u8fc7\u6ee4<\/td>\n<td>\u4e2d&#xff08;\u540c\u8fdb\u7a0b&#xff09;<\/td>\n<td>\u6700\u4f4e<\/td>\n<td>\u672c\u6587\u505a\u6cd5&#xff0c;\u7edd\u5927\u591a\u6570\u4f01\u4e1a\u591f\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u5b9e\u4f8b\u7ea7\u9694\u79bb<\/td>\n<td>\u6bcf\u79df\u6237\u72ec\u7acb\u7f51\u5173\u5b9e\u4f8b \/ \u547d\u540d\u7a7a\u95f4<\/td>\n<td>\u9ad8&#xff08;\u8fdb\u7a0b\u7ea7&#xff09;<\/td>\n<td>\u9ad8<\/td>\n<td>\u5f3a\u5408\u89c4&#xff08;\u91d1\u878d\/\u653f\u52a1&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6df7\u5408<\/td>\n<td>\u6838\u5fc3\u79df\u6237\u72ec\u7acb\u5b9e\u4f8b &#043; \u957f\u5c3e\u5171\u4eab<\/td>\n<td>\u9ad8<\/td>\n<td>\u4e2d<\/td>\n<td>\u591a\u6570\u4e2d\u5927\u578b\u4f01\u4e1a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9009\u5171\u4eab\u5b9e\u4f8b\u903b\u8f91\u9694\u79bb&#xff0c;\u56e0\u4e3a\u5b83\u6539\u52a8\u6700\u5c0f\u3001\u590d\u7528\u7bc7\u516d\u7f51\u5173\u3001\u4e14\u914d\u989d\/\u51ed\u8bc1\u5929\u7136\u80fd\u96c6\u4e2d\u3002\u5b9e\u4f8b\u7ea7\u9694\u79bb\u53ea\u662f\u628a&#034;\u903b\u8f91&#034;\u6362\u6210&#034;\u7269\u7406&#034;&#xff0c;\u8fc7\u6ee4\u903b\u8f91\u4e00\u6837&#xff0c;\u672c\u6587\u4e0d\u91cd\u590d\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u79df\u6237\u8def\u7531&#xff1a;\u8bf7\u6c42\u600e\u4e48\u8ba4\u51fa\u662f\u54ea\u4e2a\u79df\u6237<\/h3>\n<p>\u4f20\u9012\u65b9\u5f0f&#xff08;\u4e09\u9009\u4e00&#xff0c;\u63a8\u8350\u7b2c\u4e09\u79cd&#xff09;&#xff1a;<\/p>\n<li>API Key \u9690\u542b tenantId&#xff08;Key \u67e5\u8868\u5f97\u79df\u6237&#xff09;\u2014\u2014\u7b80\u5355\u4f46 Key \u8f6e\u6362\u65f6\u8981\u540c\u6b65\u6620\u5c04&#xff1b;<\/li>\n<li>\u72ec\u7acb\u5934 X-Tenant-Id\u2014\u2014\u76f4\u89c2&#xff0c;\u4f46\u5ba2\u6237\u7aef\u8981\u914d\u5408\u5e26&#xff1b;<\/li>\n<li>Token claim \u5e26 tenant&#xff08;OAuth 2.1 \/ IdP \u7b7e\u53d1\u65f6\u585e tenant claim&#xff09;\u2014\u2014\u6700\u5e72\u51c0&#xff0c;\u4e0e\u7bc7\u4e5d L2\/L3 \u8eab\u4efd\u4f53\u7cfb\u6253\u901a\u3002<\/li>\n<p>\u672c\u6587\u7528\u65b9\u6848 1&#043;2 \u7ec4\u5408\u6f14\u793a&#xff08;Key \u6620\u5c04\u4e3a\u4e3b&#xff0c;X-Tenant-Id \u4e3a\u8f85\u8986\u76d6\u670d\u52a1\u95f4\u8c03\u7528&#xff09;&#xff0c;\u751f\u4ea7\u5efa\u8bae\u5347\u7ea7\u5230\u65b9\u6848 3\u3002<\/p>\n<p>\u5728\u4f20\u8f93\u5c42\u63d0\u53d6 tenantId&#xff08;\u5b9e\u6d4b\u843d\u5730\u7248&#xff0c;\u4ee3\u7801\u89c1 13-multitenant\/TenantFilter.java&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u4f20\u8f93\u5c42\u62e6\u622a&#xff1a;\u6bcf\u4e2a\u8bf7\u6c42\u5148\u89e3\u6790\u79df\u6237&#xff0c;\u7f3a\u5931\/\u975e\u6cd5\u76f4\u63a5\u62d2&#xff1b;\u518d\u505a\u914d\u989d\u8ba1\u6570<\/span><br \/>\n<span class=\"token annotation punctuation\">&#064;Component<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">class<\/span> <span class=\"token class-name\">TenantFilter<\/span> <span class=\"token keyword\">extends<\/span> <span class=\"token class-name\">OncePerRequestFilter<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">TenantStore<\/span> store<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">private<\/span> <span class=\"token keyword\">final<\/span> <span class=\"token class-name\">QuotaService<\/span> quota<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token annotation punctuation\">&#064;Override<\/span><br \/>\n    <span class=\"token keyword\">protected<\/span> <span class=\"token keyword\">void<\/span> <span class=\"token function\">doFilterInternal<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">HttpServletRequest<\/span> request<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">HttpServletResponse<\/span> response<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">FilterChain<\/span> chain<span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token keyword\">throws<\/span> <span class=\"token class-name\">ServletException<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">IOException<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token class-name\">String<\/span> apiKey <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">firstNonBlank<\/span><span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">.<\/span><span class=\"token function\">getHeader<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;X-Api-Key&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> request<span class=\"token punctuation\">.<\/span><span class=\"token function\">getHeader<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;X-Tenant-Id&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token class-name\">TenantProperties<span class=\"token punctuation\">.<\/span>TenantDef<\/span> tenant <span class=\"token operator\">&#061;<\/span> store<span class=\"token punctuation\">.<\/span><span class=\"token function\">resolve<\/span><span class=\"token punctuation\">(<\/span>apiKey<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ Redis \u67e5\u6620\u5c04<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>tenant <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token function\">reject<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">,<\/span> <span class=\"token number\">401<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;unknown tenant&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">return<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;POST&#034;<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">equalsIgnoreCase<\/span><span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">.<\/span><span class=\"token function\">getMethod<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token operator\">!<\/span>quota<span class=\"token punctuation\">.<\/span><span class=\"token function\">allow<\/span><span class=\"token punctuation\">(<\/span>tenant<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token function\">reject<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">,<\/span> <span class=\"token number\">429<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;tenant quota exceeded&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token keyword\">return<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token constant\">MDC<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">put<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tenant&#034;<\/span><span class=\"token punctuation\">,<\/span> tenant<span class=\"token punctuation\">.<\/span><span class=\"token function\">getId<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u65e5\u5fd7\u5168\u94fe\u8def\u5e26\u79df\u6237<\/span><br \/>\n        <span class=\"token class-name\">TenantContext<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span>tenant<span class=\"token punctuation\">.<\/span><span class=\"token function\">getId<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>            <span class=\"token comment\">\/\/ \u4e0b\u6e38\u62e6\u622a\u5668\/\u5de5\u5177\u53ef\u53d6<\/span><br \/>\n        <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            chain<span class=\"token punctuation\">.<\/span><span class=\"token function\">doFilter<\/span><span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">,<\/span> response<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">finally<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token class-name\">TenantContext<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">clear<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n            <span class=\"token constant\">MDC<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">remove<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tenant&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u2705 \u5df2\u5b9e\u6d4b\u6838\u5bf9&#xff08;\u7ed3\u8bba\u4e0e\u521d\u7a3f\u5047\u8bbe\u4e0d\u540c&#xff09;&#xff1a;MCP Java SDK 2.0.0 \u4e0d\u63d0\u4f9b ServerTransportInterceptor \u63a5\u53e3\u2014\u2014\u7bc7&#xff08;\u516d&#xff09;\u7f51\u5173\u5b9e\u9645\u7528\u7684\u662f HttpServletStatelessServerTransport &#043; McpServer.sync(&#8230;)&#xff08;SDK \u66b4\u9732\u7684\u662f transport provider&#xff0c;\u4e0d\u662f\u62e6\u622a\u5668&#xff09;\u3002\u56e0\u6b64\u6309\u9884\u6848\u628a\u62e6\u622a\u7b49\u4ef7\u8fc1\u79fb\u5230 Servlet Filter&#xff1a;\u4f4d\u7f6e\u540c\u6837\u5728\u4f20\u8f93\u5c42&#xff0c;\u903b\u8f91\u5b8c\u5168\u4e00\u81f4&#xff08;\u89e3\u6790\u79df\u6237 \u2192 \u62d2\u975e\u6cd5 \u2192 \u914d\u989d \u2192 \u5199\u4e0a\u4e0b\u6587\/\u65e5\u5fd7&#xff09;\u3002\u82e5\u540e\u7eed SDK \u63d0\u4f9b\u88c5\u9970\u5668\u5f0f\u6269\u5c55\u70b9&#xff0c;\u628a\u8fd9\u56db\u6b65\u642c\u8fc7\u53bb\u5373\u53ef&#xff0c;\u4e1a\u52a1\u4ee3\u7801\u96f6\u6539\u52a8\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u51ed\u8bc1\u9694\u79bb&#xff1a;\u4e0d\u540c\u79df\u6237\u4e0d\u540c API Key<\/h3>\n<ul>\n<li>\u6bcf\u4e2a\u79df\u6237\u7b7e\u53d1\u72ec\u7acb Key&#xff0c;Key\u2192tenantId \u6620\u5c04\u5b58 Redis&#xff08;tenant:key:{hash} \u2192 tenantId&#xff09;\u3002<\/li>\n<li>\u540a\u9500\/\u8f6e\u6362&#xff1a;\u5220 Redis \u952e\u5373\u751f\u6548&#xff0c;\u65e0\u9700\u91cd\u542f\u7f51\u5173\u2014\u2014\u8fd9\u662f Redis \u96c6\u4e2d\u5b58\u7684\u597d\u5904\u3002<\/li>\n<li>\u4e0e\u7bc7&#xff08;\u4e5d&#xff09;L2 \u5ba2\u6237\u7aef\u8eab\u4efd\u8854\u63a5&#xff1a;\u672c\u6587\u7684 Key \u662f&#034;\u5ba2\u6237\u7aef\u8eab\u4efd&#034;\u90a3\u4e00\u5c42&#xff1b;\u79df\u6237\u5185\u7684&#034;\u7528\u6237\u8eab\u4efd&#034;\u8d70\u7bc7\u4e5d L3&#xff08;X-User-Id \/ ID-JAG&#xff09;\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/\/ \u51ed\u8bc1\u7b7e\u53d1\u4e0e\u6821\u9a8c&#xff08;\u793a\u610f&#xff09;<\/span><br \/>\n<span class=\"token class-name\">String<\/span> key <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;sk-&#034;<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token class-name\">TenantId<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;-&#034;<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token function\">random32<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\nredis<span class=\"token punctuation\">.<\/span><span class=\"token function\">opsForValue<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tenant:key:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token function\">hash<\/span><span class=\"token punctuation\">(<\/span>key<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> tenantId<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Duration<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">ofDays<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">90<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ 90\u5929\u8fc7\u671f<\/span><br \/>\n<span class=\"token comment\">\/\/ \u6821\u9a8c&#xff1a;\u62e6\u622a\u5668\u91cc resolve(apiKey) \u547d\u4e2d\u5373\u8fc7&#xff0c;\u672a\u547d\u4e2d 401<\/span><\/p>\n<hr \/>\n<h3>\u4e94\u3001\u914d\u989d\u7ba1\u7406&#xff1a;\u522b\u8ba9\u4e00\u4e2a\u79df\u6237\u5237\u7206<\/h3>\n<p>\u8fd9\u662f\u5f15\u5b50\u91cc&#034;\u4f9b\u5e94\u94fe\u5237\u7206\u95e8\u5e97\u914d\u989d&#034;\u7684\u76f4\u63a5\u89e3\u3002\u8ba1\u6570\u653e Redis&#xff0c;\u5929\u7136\u8de8\u5b9e\u4f8b\u4e00\u81f4\u2014\u2014\u547c\u5e94\u7bc7&#xff08;\u516b&#xff09;\u201c\u591a\u5b9e\u4f8b\u4e0b\u72b6\u6001\u8981\u5916\u7f6e\u201d&#xff1a;\u914d\u989d\u8ba1\u6570\u5c5e\u4e8e&#034;\u4e0b\u4e00\u6b21\u8bf7\u6c42\u6253\u5230\u53e6\u4e00\u4e2a\u5b9e\u4f8b\u8fd8\u5fc5\u987b\u5bf9&#034;\u7684\u6570\u636e&#xff0c;\u6240\u4ee5\u5fc5\u987b\u8fdb Redis\u3002<\/p>\n<p>\u56fa\u5b9a\u7a97\u53e3\u914d\u989d&#xff08;Redis &#043; Lua \u539f\u5b50\u81ea\u589e &#043; TTL&#xff1b;\u975e\u771f\u6ed1\u52a8\u7a97\u53e3&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u56fa\u5b9a\u7a97\u53e3&#xff1a;\u7a97\u53e3&#061;60s TTL&#xff0c;\u9996\u8c03\u7528\u8d77\u7b97&#xff08;\u6bcf\u6b21\u81ea\u589e\u4f1a\u7eed\u671f TTL&#xff0c;\u6545\u662f&#034;\u56fa\u5b9a\u7a97\u53e3&#034;\u800c\u975e\u771f\u6ed1\u52a8\u7a97\u53e3&#xff09;<\/span><br \/>\n<span class=\"token comment\">\/\/ \u771f\u6ed1\u52a8\u7a97\u53e3\u9700\u7528 ZSET \u8bb0\u6bcf\u6b21\u65f6\u95f4\u6233&#xff0c;\u672c\u6587\u4e3a\u53ef\u8bfb\u6027\u7528\u56fa\u5b9a\u7a97\u53e3\u8fd1\u4f3c&#xff0c;\u751f\u4ea7\u53ef\u6309\u7cbe\u5ea6\u5347\u7ea7<\/span><br \/>\n<span class=\"token class-name\">String<\/span> lua <span class=\"token operator\">&#061;<\/span> <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;<br \/>\n  local cnt &#061; redis.call(&#039;INCR&#039;, KEYS[1])<br \/>\n  if cnt &#061;&#061; 1 then redis.call(&#039;EXPIRE&#039;, KEYS[1], 60) end<br \/>\n  return cnt<br \/>\n&#034;&#034;&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">Long<\/span> now <span class=\"token operator\">&#061;<\/span> redis<span class=\"token punctuation\">.<\/span><span class=\"token function\">eval<\/span><span class=\"token punctuation\">(<\/span>lua<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">List<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">of<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;quota:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> tenantId <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> toolName<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">List<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">of<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>now <span class=\"token operator\">&gt;<\/span> limit<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">throw<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">QuotaExceededException<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">429<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;tenant quota exceeded&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8d85\u9650\u8fd4\u56de 429&#xff0c;\u4e0e\u7bc7&#xff08;\u4e5d&#xff09;L5 \u9650\u6d41\u4e00\u81f4&#xff1b;limit \u6309\u79df\u6237\u914d\u7f6e&#xff08;\u957f\u5c3e\u79df\u6237\u4f4e\u914d\u3001\u6838\u5fc3\u79df\u6237\u9ad8\u914d&#xff09;\u3002<\/p>\n<p>\u591a\u5b9e\u4f8b\u4e00\u81f4\u6027&#xff1a;\u56e0\u4e3a\u8ba1\u6570\u5728 Redis&#xff0c;\u4e24\u4e2a\u7f51\u5173\u526f\u672c&#xff08;Docker\/k8s \u53cc\u5b9e\u4f8b&#xff09;\u770b\u5230\u7684\u662f\u540c\u4e00\u4efd\u6570\u5b57\u2014\u2014\u4e0d\u4f1a\u51fa\u73b0&#034;\u526f\u672cA \u9650\u4e86\u3001\u526f\u672cB \u8fd8\u653e&#034;\u7684\u88c2\u9699\u3002\u8fd9\u6070\u597d\u662f\u7bc7&#xff08;\u516b&#xff09;&#034;\u4f1a\u8bdd\u6570\u636e\u5916\u7f6e&#034;\u601d\u60f3\u5728\u914d\u989d\u4e0a\u7684\u843d\u5730\u3002<\/p>\n<p>\u2705 \u5df2\u5b9e\u6d4b&#xff08;\u53cc\u526f\u672c &#043; Redis&#xff09;&#xff1a;\u8d77\u4e24\u4e2a\u7f51\u5173\u526f\u672c&#xff08;18080\/18081&#xff0c;\u672c\u673a 8080 \u88ab\u5360\u6545\u6539\u7528\u9ad8\u4f4d\u7aef\u53e3&#xff09;&#043; \u5171\u4eab Redis&#xff0c;\u4ece\u526f\u672cA \u8fde\u7eed\u6253\u6ee1\u95e8\u5e97\u79df\u6237\u914d\u989d&#xff08;limit&#061;20 \/ \u7a97\u53e360s&#xff09;&#xff0c;\u526f\u672cB \u7acb\u5373\u540c\u6837 429\u2014\u2014\u5b9e\u6d4b\u8f93\u51fa&#xff1a;<\/p>\n<p>GW1 hit  1~20 -&gt; 200<br \/>\nGW1 hit 21~23 -&gt; 429<br \/>\nGW2 store     -&gt; 429      # \u540c\u4e00\u79df\u6237&#xff0c;\u8ba1\u6570\u5728 Redis&#xff0c;\u6362\u526f\u672c\u540c\u6837\u88ab\u9650<br \/>\nGW2 supply    -&gt; 200      # \u672a\u8d85\u9650\u79df\u6237\u4e0d\u53d7\u5f71\u54cd&#xff08;\u8bc1\u660e\u662f\u79df\u6237\u7ea7\u800c\u975e\u5168\u5c40\u9650\u6d41&#xff09;<\/p>\n<p>\u6545\u969c\u6f14\u7ec3&#xff1a;Redis \u6302\u4e86\u600e\u4e48\u529e&#xff1f;\u4e24\u79cd\u7b56\u7565\u2014\u2014fail-open&#xff08;\u653e\u884c&#xff0c;\u4fdd\u53ef\u7528&#xff0c;\u9002\u5408\u5185\u90e8\u53ef\u4fe1&#xff09;\u6216 fail-closed&#xff08;\u5168\u62d2&#xff0c;\u4fdd\u9694\u79bb&#xff0c;\u9002\u5408\u591a\u79df\u6237\u516c\u7f51&#xff09;\u3002\u672c\u6587\u9009\u6309\u79df\u6237\u5206\u7ea7&#xff1a;\u6838\u5fc3\u79df\u6237 fail-closed&#xff0c;\u957f\u5c3e\u79df\u6237 fail-open\u3002\u914d\u7f6e\u793a\u4f8b&#xff1a;<\/p>\n<p># \u914d\u989d\u964d\u7ea7\u7b56\u7565&#xff08;\u6309\u79df\u6237\u5206\u7ea7&#xff09;<br \/>\nquota.failover.policy.core&#061;closed      # \u6838\u5fc3\u79df\u6237&#xff1a;Redis \u4e0d\u53ef\u7528\u65f6\u5168\u62d2&#xff0c;\u4fdd\u9694\u79bb<br \/>\nquota.failover.policy.longtail&#061;open    # \u957f\u5c3e\u79df\u6237&#xff1a;Redis \u4e0d\u53ef\u7528\u65f6\u653e\u884c&#xff0c;\u4fdd\u53ef\u7528<\/p>\n<hr \/>\n<h3>\u516d\u3001\u6570\u636e\u9694\u79bb&#xff1a;\u65e5\u5fd7 \/ \u914d\u7f6e \/ \u7f13\u5b58<\/h3>\n<table>\n<tr>\u7c7b\u578b\u505a\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u65e5\u5fd7<\/td>\n<td>MDC \u5e26 tenant&#xff0c;\u6309\u79df\u6237\u5206\u7d22\u5f15&#xff1b;\u654f\u611f\u79df\u6237&#xff08;\u8d22\u52a1\/HR&#xff09;\u884c\u7ea7\u8131\u654f\u540e\u518d\u843d\u76d8<\/td>\n<\/tr>\n<tr>\n<td>\u914d\u7f6e<\/td>\n<td>\u79df\u6237\u7ea7\u914d\u7f6e\u547d\u540d\u7a7a\u95f4 cfg:{tenantId}:&#8230;&#xff0c;\u907f\u514d\u5171\u4eab map \u4e32\u6539<\/td>\n<\/tr>\n<tr>\n<td>\u7f13\u5b58<\/td>\n<td>\u6240\u6709\u7f13\u5b58 key \u524d\u7f00 tenant:{id}:&#xff0c;\u5373\u4f7f\u540c key \u4e0d\u540c\u79df\u6237\u4e5f\u4e0d\u4e32&#xff1b;\u4e0e\u7bc7&#xff08;\u516b&#xff09;&#034;\u4f1a\u8bdd\u6570\u636e\u5916\u7f6e Redis&#034;\u540c\u4e00\u5957\u952e\u89c4\u8303<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>redis<span class=\"token punctuation\">.<\/span><span class=\"token function\">opsForValue<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">set<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;tenant:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> tenantId <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;:ctx:&#034;<\/span> <span class=\"token operator\">&#043;<\/span> sessionKey<span class=\"token punctuation\">,<\/span> ctx<span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Duration<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">ofMinutes<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<hr \/>\n<h3>\u4e03\u3001\u5b9e\u6218&#xff1a;\u5728\u73b0\u6709\u7f51\u5173\u4e0a\u52a0\u591a\u79df\u6237<\/h3>\n<p>\u62d3\u6251&#xff08;\u672c\u5730 Docker &#043; \u5185\u7f6e k8s \u9a8c\u8bc1\u73af\u5883&#xff09;&#xff1a;<\/p>\n<p>            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 LB \/ Ingress \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n            \u2502                                       \u2502<br \/>\n   client \u2500\u2500\u2524  gw-1 (MCP \u7f51\u5173\u526f\u672c1)  \u2510              \u2502<br \/>\n            \u2502  gw-2 (MCP \u7f51\u5173\u526f\u672c2)  \u251c\u2500 \u5171\u4eab \u2500\u2500 Redis&#xff08;\u79df\u6237\u6620\u5c04 &#043; \u914d\u989d\u8ba1\u6570&#xff09;\u2502<br \/>\n            \u2502  (k8s Deployment 2\u526f\u672c)\u2518              \u2502<br \/>\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>\u4e24\u4e2a\u7f51\u5173\u526f\u672c\u65e0\u72b6\u6001&#xff08;\u7bc7\u516b&#xff09;&#xff0c;\u72b6\u6001\u5168\u5728 Redis&#xff1b;\u6269\u526f\u672c\u53ea\u6539 replicas&#xff0c;\u9694\u79bb\u903b\u8f91\u4e0d\u53d8\u3002<\/p>\n<p>\u6539\u9020\u6b65\u9aa4\u6e05\u5355&#xff1a;<\/p>\n<li>\u5f15\u5165 TenantTransportInterceptor&#xff0c;\u6240\u6709\u8bf7\u6c42\u5148\u89e3\u6790\u79df\u6237&#xff1b;<\/li>\n<li>\u63a5 Redis \u5b58 Key\u2192tenant \u6620\u5c04\u4e0e\u914d\u989d\u8ba1\u6570&#xff1b;<\/li>\n<li>\u5de5\u5177\u76ee\u5f55\u6309\u79df\u6237\u8fc7\u6ee4&#xff08;\u79df\u6237\u53ea\u80fd list \u5230\u81ea\u5df1\u88ab\u6388\u6743\u7684\u5de5\u5177\u2014\u2014\u9632\u5f15\u5b50\u7684&#034;\u8bef\u8c03&#034;&#xff09;&#xff1b;<\/li>\n<li>MDC &#043; \u7f13\u5b58 key \u524d\u7f00\u63a5\u5165&#xff1b;<\/li>\n<li>\u53cc\u526f\u672c\u90e8\u7f72&#xff0c;\u8dd1\u914d\u989d\u4e00\u81f4\u6027 &#043; \u6545\u969c\u6f14\u7ec3\u3002<\/li>\n<p>\u76ee\u5f55\u8fc7\u6ee4\u662f\u5173\u952e&#xff1a;\u5f15\u5b50\u4e8b\u6545\u2460&#xff08;\u8d22\u52a1\u5de5\u5177\u88ab\u4f9b\u5e94\u94fe\u8bef\u8c03&#xff09;\u7684\u6839\u56e0\u662f&#034;\u76ee\u5f55\u6ca1\u9694\u5f00&#034;\u3002\u79df\u6237 list \u5de5\u5177\u65f6&#xff0c;\u7f51\u5173\u53ea\u8fd4\u56de\u8be5\u79df\u6237 allowed_tools \u96c6\u5408\u5185\u7684\u5de5\u5177\u2014\u2014\u770b\u4e0d\u89c1\u5c31\u70b9\u4e0d\u5230\u3002<\/p>\n<p>\u2705 \u5df2\u5b9e\u6d4b&#xff1a;\u4ee5\u4e0a\u62d3\u6251\u4e0e\u6f14\u7ec3\u5df2\u8dd1\u901a&#xff0c;\u771f\u5b9e\u8f93\u51fa\u5982\u4e0b&#xff08;\u672c\u673a\u53cc\u526f\u672c &#043; Redis \u5bb9\u5668&#xff09;\u3002<\/p>\n<p>&#061;&#061;&#061;&#061; 1) \u79df\u6237\u8def\u7531 &#061;&#061;&#061;&#061;<br \/>\n  no-key  -&gt; 401        bad-key -&gt; 401        store -&gt; 200<\/p>\n<p>&#061;&#061;&#061;&#061; 2) \u76ee\u5f55\u9694\u79bb&#xff08;\u770b\u4e0d\u89c1\u5c31\u70b9\u4e0d\u5230&#xff09;&#061;&#061;&#061;&#061;<br \/>\n  store   \u76ee\u5f55: {&#034;tools&#034;:[&#034;get_store_sales&#034;,&#034;get_inventory&#034;],&#034;tenant&#034;:&#034;store&#034;}<br \/>\n  finance \u76ee\u5f55: {&#034;tools&#034;:[&#034;gen_finance_report&#034;],&#034;tenant&#034;:&#034;finance&#034;}<br \/>\n  PASS: \u95e8\u5e97\u76ee\u5f55\u5df2\u8fc7\u6ee4&#xff08;\u4e0d\u542b gen_finance_report&#xff09;<\/p>\n<p>&#061;&#061;&#061;&#061; 3) \u51ed\u8bc1\u9694\u79bb &#061;&#061;&#061;&#061;<br \/>\n  supply -&gt; get_store_sales -&gt; 403<\/p>\n<p>&#061;&#061;&#061;&#061; 5) \u6545\u969c\u6f14\u7ec3&#xff08;Redis \u4e0d\u53ef\u7528&#xff0c;\u6309\u79df\u6237\u5206\u7ea7&#xff09;&#061;&#061;&#061;&#061;<br \/>\n  finance(closed) -&gt; 429      # \u6838\u5fc3\u79df\u6237\u5168\u62d2&#xff0c;\u4fdd\u9694\u79bb<br \/>\n  supply(open)    -&gt; 200      # \u957f\u5c3e\u79df\u6237\u653e\u884c&#xff0c;\u4fdd\u53ef\u7528<br \/>\n  \u6062\u590d Redis \u540e   -&gt; 200      # \u81ea\u6108&#xff0c;\u65e0\u9700\u91cd\u542f<\/p>\n<hr \/>\n<h3>\u516b\u3001\u8bda\u5b9e\u8fb9\u754c<\/h3>\n<ul>\n<li>mTLS \u672a\u5b9e\u6d4b&#xff1a;\u79df\u6237\u95f4\u4f20\u8f93\u52a0\u5bc6\u4f9d\u8d56\u7bc7&#xff08;\u4e5d&#xff09;L1&#xff0c;\u672c\u6587\u4e0d\u91cd\u590d&#xff0c;\u672c\u673a\u672a\u8dd1\u771f\u5b9e\u8bc1\u4e66\u4f53\u7cfb\u3002<\/li>\n<li>\u5b9e\u4f8b\u7ea7\u9694\u79bb\u672a\u5c55\u5f00&#xff1a;\u4ec5\u5bf9\u6bd4\u63d0\u53ca&#xff0c;\u5f3a\u5408\u89c4\u573a\u666f\u7684\u90e8\u7f72\u6210\u672c\u9700\u53e6\u6587\u3002<\/li>\n<li>\u771f\u5b9e\u538b\u6d4b\u5f85\u8865&#xff1a;\u53cc\u526f\u672c\u4e0b\u7684\u914d\u989d\u541e\u5410\u57fa\u7ebf&#xff08;P95&#xff09;\u5f85\u538b\u6d4b\u586b\u5145&#xff0c;\u907f\u514d\u62cd\u8111\u888b\u7ed9\u6570\u5b57\u3002<\/li>\n<li>SDK API \u5df2\u6838\u5bf9&#xff1a;MCP Java SDK 2.0.0 \u65e0 ServerTransportInterceptor \u63a5\u53e3&#xff0c;\u7b2c\u4e09\u8282\u5df2\u6309\u9884\u6848\u6539\u4e3a Servlet Filter \u843d\u5730\u5e76\u5b9e\u6d4b\u8dd1\u901a&#xff08;\u7ed3\u8bba\u89c1\u8be5\u8282&#xff09;\u3002<\/li>\n<li>\u9884\u7b97\u8ba1\u91cf\u4e0d\u5728\u6b64\u7bc7&#xff1a;\u6309\u79df\u6237\u6210\u672c\u5f52\u56e0\u89c1\u914d\u5957\u6563\u70b9\u6587&#xff08;\u4e09\u5927\u5751\u00b7\u5751\u4e8c&#xff09;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e5d\u3001\u4e0e\u5168\u5b63\u7684\u5173\u7cfb &#043; \u591a\u79df\u6237\u81ea\u67e5\u6e05\u5355<\/h3>\n<p>\u4e92\u94fe&#xff08;\u70b9\u51fb\u8df3\u8f6c\u5bf9\u5e94\u7bc7\u7ae0&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u2192 \u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173&#xff1a;\u672c\u6587\u5728\u5176\u57fa\u7840\u4e0a\u52a0\u79df\u6237\u5c42&#xff0c;\u4e0d\u91cd\u9020\u7f51\u5173\u3002<\/li>\n<li>\u2192 \u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001\u751f\u4ea7\u843d\u5730&#xff1a;\u53cc\u526f\u672c\u65e0\u72b6\u6001 &#043; \u72b6\u6001\u5916\u7f6e Redis&#xff0c;\u601d\u8def\u540c\u6e90\u3002<\/li>\n<li>\u2192 \u7bc7&#xff08;\u4e5d&#xff09;6\u5c42\u5b89\u5168\u9632\u62a4&#xff1a;Key \u662f L2 \u5ba2\u6237\u7aef\u8eab\u4efd&#xff0c;\u79df\u6237\u5185\u7528\u6237\u8eab\u4efd\u8d70 L3\u3002<\/li>\n<li>\u2192 \u6563\u70b9\u6587\u300a\u4f01\u4e1a\u7ea7 MCP \u90e8\u7f72\u4e09\u5927\u5751\u300b&#xff08;\u5f85\u53d1\u5e03&#xff09;&#xff1a;\u9884\u7b97&#xff08;\u5751\u4e8c&#xff09;\u3001\u9519\u8bef\u7801&#xff08;\u5751\u4e09&#xff09;\u3001Schema \u7248\u672c&#xff08;\u9690\u85cf\u5751&#xff09;\u662f\u672c\u6587\u672a\u8986\u76d6\u7684\u4f01\u4e1a\u90e8\u7f72\u53e6\u4e00\u534a\u3002<\/li>\n<\/ul>\n<p>\u591a\u79df\u6237\u81ea\u67e5\u6e05\u5355&#xff1a;<\/p>\n<table>\n<tr>\u9879\u5fc5\u505a&#xff1f;<\/tr>\n<tbody>\n<tr>\n<td>\u8bf7\u6c42\u80fd\u53ef\u9760\u89e3\u6790 tenantId&#xff08;\u7f3a\u5931\/\u975e\u6cd5\u5373\u62d2&#xff09;<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u6bcf\u79df\u6237\u72ec\u7acb\u51ed\u8bc1&#xff0c;\u53ef\u72ec\u7acb\u540a\u9500<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u76ee\u5f55\u6309\u79df\u6237\u8fc7\u6ee4&#xff08;\u770b\u4e0d\u89c1\u70b9\u4e0d\u5230&#xff09;<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u914d\u989d\u8ba1\u6570\u8de8\u5b9e\u4f8b\u4e00\u81f4&#xff08;Redis \u96c6\u4e2d&#xff09;<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u8d85\u9650\u8fd4\u56de 429 &#043; \u964d\u7ea7\u7b56\u7565&#xff08;fail-open\/closed \u5206\u7ea7&#xff09;<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u65e5\u5fd7\/\u7f13\u5b58\u6309\u79df\u6237\u9694\u79bb\u3001\u654f\u611f\u79df\u6237\u8131\u654f<\/td>\n<td>\u5fc5\u505a<\/td>\n<\/tr>\n<tr>\n<td>\u53cc\u526f\u672c failover \u6f14\u7ec3\u8fc7<\/td>\n<td>\u5efa\u8bae<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e00\u53e5\u8bdd\u6536\u5c3e<\/h3>\n<p>\u591a\u79df\u6237\u4e0d\u662f&#034;\u518d\u8d77\u4e00\u5957&#034;&#xff0c;\u800c\u662f&#034;\u5728\u540c\u4e00\u5957\u7f51\u5173\u4e0a\u628a tenantId \u5f53\u6210\u7b2c\u4e00\u516c\u6c11&#034;\u2014\u2014\u8def\u7531\u8ba4\u79df\u6237\u3001\u51ed\u8bc1\u5206\u79df\u6237\u3001\u914d\u989d\u9650\u79df\u6237\u3001\u6570\u636e\u9694\u79df\u6237\u3002\u56db\u4ef6\u5957\u505a\u5b8c&#xff0c;\u4e00\u4e2a\u7f51\u5173\u5c31\u80fd\u5b89\u7a33\u670d\u52a1\u597d\u51e0\u4e2a\u56e2\u961f\u3002<\/p>\n<hr \/>\n<p>\u4ee3\u7801\u5df2\u5f00\u6e90&#xff1a;\u672c\u7bc7\u56db\u4ef6\u5957\u5b9e\u73b0\u89c1 13-multitenant\/ \u6a21\u5757&#xff08;Spring Boot 4.0.0 &#043; Java 21 &#043; Redis&#xff09;&#xff0c;tag v13 \u2014\u2014 Gitee \/ GitHub\u3002mvn clean package \u540e docker compose up -d \u8d77\u53cc\u526f\u672c&#xff0c;.\/verify-multitenant.sh \u4e00\u952e\u590d\u73b0\u4e0a\u6587\u5168\u90e8\u5b9e\u6d4b\u8f93\u51fa&#xff1b;\u89c9\u5f97\u6709\u7528\u6b22\u8fce star\u3002<\/p>\n<h3>\u76f8\u5173\u9605\u8bfb&#xff08;\u7b2c\u4e8c\u5b63 \u00b7 \u4f01\u4e1a\u7ea7 MCP \u751f\u4ea7\u843d\u5730&#xff09;<\/h3>\n<ul>\n<li>\u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173&#xff1a;\u672c\u6587\u591a\u79df\u6237\u5c42\u76f4\u63a5\u642d\u5728\u5b83\u4e0a\u9762<\/li>\n<li>\u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001MCP Server\u751f\u4ea7\u843d\u5730\u6e05\u5355&#xff1a;\u53cc\u526f\u672c\u65e0\u72b6\u6001 &#043; \u72b6\u6001\u5916\u7f6e Redis&#xff0c;\u601d\u8def\u540c\u6e90<\/li>\n<li>\u7bc7&#xff08;\u4e5d&#xff09;\u751f\u4ea7\u5316MCP Server\u76846\u5c42\u5b89\u5168\u9632\u62a4&#xff1a;Key \u662f L2 \u5ba2\u6237\u7aef\u8eab\u4efd&#xff0c;\u79df\u6237\u5185\u7528\u6237\u8eab\u4efd\u8d70 L3<\/li>\n<li>\u7bc7&#xff08;\u5341\u4e8c&#xff09;\u4f01\u4e1a\u7ea7Toolbox\u6cbb\u7406&#xff1a;\u540c\u5b63\u524d\u4f5c&#xff0c;\u5de5\u5177\u6cbb\u7406\u4e0e\u591a\u79df\u6237\u662f\u4f01\u4e1a\u843d\u5730\u7684\u4e24\u5757\u62fc\u56fe&#xff08;\u672c\u7bc7 tenantId \u5b57\u6bb5\u5373\u7531\u5b83\u5b9a\u4e49&#xff09;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u7f6e&#xff1a;\u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173\u3001\u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001\u751f\u4ea7\u843d\u5730\u3001\u7bc7&#xff08;\u4e5d&#xff09;6\u5c42\u5b89\u5168\u9632\u62a4 \u6280\u672f\u57fa\u7ebf&#xff1a;MCP Java SDK 2.0.0&#xff08;\u975e Spring AI&#xff0c;\u540c\u7bc7\u516d\u7f51\u5173&#xff09;&#xff1b;\u591a\u79df\u6237\u5728\u4f20\u8f93\u62e6\u622a\u5668\u5c42\u5b9e\u65bd&#xff0c;\u4e0d\u4f9d\u8d56 Spring AI \u6ce8\u89e3 \u5b9e\u6d4b\u73af\u5883&#xff1a;\u672c\u5730 Docker  \u5185\u7f6e k8s&amp;#xff0c<\/p>\n","protected":false},"author":2,"featured_media":121919,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,12226,73,105,1348,1314],"topic":[],"class_list":["post-121921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-it","tag-12226","tag-mcp","tag-redis","tag-1348","tag-1314"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/121921.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u7f6e&#xff1a;\u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173\u3001\u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001\u751f\u4ea7\u843d\u5730\u3001\u7bc7&#xff08;\u4e5d&#xff09;6\u5c42\u5b89\u5168\u9632\u62a4 \u6280\u672f\u57fa\u7ebf&#xff1a;MCP Java SDK 2.0.0&#xff08;\u975e Spring AI&#xff0c;\u540c\u7bc7\u516d\u7f51\u5173&#xff09;&#xff1b;\u591a\u79df\u6237\u5728\u4f20\u8f93\u62e6\u622a\u5668\u5c42\u5b9e\u65bd&#xff0c;\u4e0d\u4f9d\u8d56 Spring AI \u6ce8\u89e3 \u5b9e\u6d4b\u73af\u5883&#xff1a;\u672c\u5730 Docker \u5185\u7f6e k8s&amp;#xff0c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/121921.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-03T17:16:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103171645-6aea16fda8c68.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121921.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/121921.html\",\"name\":\"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-03T17:16:49+00:00\",\"dateModified\":\"2026-11-03T17:16:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/121921.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/121921.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121921.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/121921.html","og_locale":"zh_CN","og_type":"article","og_title":"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u7f6e&#xff1a;\u7bc7&#xff08;\u516d&#xff09;\u81ea\u5efa MCP \u7f51\u5173\u3001\u7bc7&#xff08;\u516b&#xff09;\u65e0\u72b6\u6001\u751f\u4ea7\u843d\u5730\u3001\u7bc7&#xff08;\u4e5d&#xff09;6\u5c42\u5b89\u5168\u9632\u62a4 \u6280\u672f\u57fa\u7ebf&#xff1a;MCP Java SDK 2.0.0&#xff08;\u975e Spring AI&#xff0c;\u540c\u7bc7\u516d\u7f51\u5173&#xff09;&#xff1b;\u591a\u79df\u6237\u5728\u4f20\u8f93\u62e6\u622a\u5668\u5c42\u5b9e\u65bd&#xff0c;\u4e0d\u4f9d\u8d56 Spring AI \u6ce8\u89e3 \u5b9e\u6d4b\u73af\u5883&#xff1a;\u672c\u5730 Docker \u5185\u7f6e k8s&amp;#xff0c","og_url":"https:\/\/www.wsisp.com\/helps\/121921.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-03T17:16:49+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261103171645-6aea16fda8c68.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/121921.html","url":"https:\/\/www.wsisp.com\/helps\/121921.html","name":"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-03T17:16:49+00:00","dateModified":"2026-11-03T17:16:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/121921.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/121921.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/121921.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MCP \u5b9e\u6218\u624b\u8bb0\uff08\u5341\u4e09\uff09\uff1aMCP\u591a\u79df\u6237\u9694\u79bb\uff0c\u4e00\u4e2a\u7f51\u5173\u670d\u52a1\u591a\u4e2a\u56e2\u961f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=121921"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121921\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/121919"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=121921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=121921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=121921"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=121921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}