{"id":36518,"date":"2025-05-10T10:21:01","date_gmt":"2025-05-10T02:21:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36518.html"},"modified":"2025-05-10T10:21:01","modified_gmt":"2025-05-10T02:21:01","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-python-%e5%92%8c-fastapi-%e6%9e%84%e5%bb%ba%e5%b8%a6%e8%ae%a4%e8%af%81%e7%9a%84-mcp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%90%ab%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36518.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801)"},"content":{"rendered":"<p>\u66fe\u7ecf\u53ea\u5b58\u5728\u4e8e\u79d1\u5e7b\u60f3\u8c61\u4e2d\u7684\u573a\u666f\u2014\u2014AI\u4e0e\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\u65e0\u7f1d\u5bf9\u63a5&#xff0c;\u5982\u4eca\u6b63\u9010\u6b65\u6210\u4e3a\u73b0\u5b9e\u3002\u5c31\u50cfAPI\u957f\u671f\u4f5c\u4e3a\u5f00\u53d1\u8005\u4e0e\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\u4e00\u6837&#xff0c;\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae&#xff08;Model Context Protocol&#xff0c;MCP&#xff09;\u6b63\u9010\u6e10\u6210\u4e3aAI\u667a\u80fd\u4f53\u4ee5\u7ed3\u6784\u5316\u3001\u611f\u77e5\u4e0a\u4e0b\u6587\u7684\u65b9\u5f0f\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u7684\u9996\u9009\u6807\u51c6\u3002\u8bf8\u5982Anthropic&#xff08;\u8be5\u534f\u8bae\u7684\u521b\u7acb\u8005&#xff09;\u3001OpenAI\u3001\u8c37\u6b4c\u7b49\u4f17\u591aAI\u4f9b\u5e94\u5546\u90fd\u5728\u5e7f\u6cdb\u91c7\u7528\u8fd9\u4e00\u534f\u8bae\u3002<\/p>\n<p>\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u548c\u7ef4\u62a4\u8005\u800c\u8a00&#xff0c;\u7528\u6237\u901a\u8fc7AI\u667a\u80fd\u4f53\u800c\u975e\u76f4\u63a5\u4e0e\u5e94\u7528\u4ea4\u4e92\u7684\u65f6\u4ee3\u5df2\u7ecf\u6084\u7136\u6765\u4e34&#xff0c;\u652f\u6301\u8fd9\u4e00\u8f6c\u53d8\u7684\u5173\u952e\u5c31\u5728\u4e8e\u642d\u5efaMCP\u670d\u52a1\u5668\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u548cFastAPI\u6784\u5efa\u4e00\u4e2a\u5e26\u6709\u8ba4\u8bc1\u529f\u80fd\u7684MCP\u670d\u52a1\u5668&#xff0c;\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u4e0eAI\u667a\u80fd\u4f53\u4ea4\u4e92\u7684\u5b89\u5168\u6027\u548c\u9ad8\u6548\u6027\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"436\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510022059-681eb80bbf17d.png\" width=\"1024\" \/><\/p>\n<h3>\u4e00\u3001\u642d\u5efa\u524d\u7684\u51c6\u5907\u5de5\u4f5c<\/h3>\n<p>\u5728\u5f00\u59cb\u642d\u5efaMCP\u670d\u52a1\u5668\u4e4b\u524d&#xff0c;\u9700\u8981\u5148\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5e93\u3002\u5176\u4e2d&#xff0c;uvicorn\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684ASGI&#xff08;Asynchronous Server Gateway Interface&#xff09;\u670d\u52a1\u5668&#xff0c;\u7528\u4e8e\u8fd0\u884cFastAPI\u5e94\u7528&#xff1b;fastapi\u662f\u6784\u5efaAPI\u7684\u73b0\u4ee3\u3001\u5feb\u901f\u4e14\u9ad8\u6548\u7684\u6846\u67b6&#xff1b;fastapi-mcp\u5219\u662f\u4e13\u95e8\u7528\u4e8e\u5728FastAPI\u5e94\u7528\u4e2d\u96c6\u6210MCP\u529f\u80fd\u7684\u8f7b\u91cf\u7ea7\u5f00\u6e90\u5e93\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5&#xff1a;<\/p>\n<p>pip install uvicorn fastapi fastapi-mcp <\/p>\n<h3>\u4e8c\u3001\u521b\u5efaFastAPI\u5e94\u7528<\/h3>\n<p>\u5982\u679c\u5c1a\u672a\u521b\u5efaFastAPI\u5e94\u7528&#xff0c;\u90a3\u4e48\u8fd9\u662f\u9996\u8981\u6b65\u9aa4\u3002FastAPI\u4e4b\u6240\u4ee5\u9002\u5408\u7528\u4e8e\u642d\u5efa\u4e0eAI\u667a\u80fd\u4f53\u4ea4\u4e92\u7684\u5e94\u7528&#xff0c;\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u52bf&#xff1a;<\/p>\n<li>\u6613\u4e8e\u96c6\u6210\n<p>\u80fd\u591f\u8f7b\u677e\u4e0e\u5916\u90e8\u5de5\u5177\u3001\u670d\u52a1\u6216\u5de5\u4f5c\u6d41\u7a0b\u8fdb\u884c\u8fde\u63a5&#xff0c;\u6ee1\u8db3\u591a\u6837\u5316\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/p>\n<\/li>\n<li>\u4fbf\u4e8e\u81ea\u52a8\u5316\n<p>\u652f\u6301\u7528\u6237\u81ea\u52a8\u5316\u4efb\u52a1&#xff0c;\u51cf\u5c11\u4eba\u5de5\u64cd\u4f5c\u53ef\u80fd\u5e26\u6765\u7684\u9519\u8bef&#xff0c;\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<\/li>\n<li>\u8bbe\u8ba1\u7075\u6d3b\n<p>\u5728\u4e0d\u6539\u53d8\u6838\u5fc3\u903b\u8f91\u7684\u524d\u63d0\u4e0b&#xff0c;\u80fd\u591f\u652f\u6301\u8bf8\u5982MCP\u6216\u79fb\u52a8\u5e94\u7528\u7b49\u65b0\u7684\u4ea4\u4e92\u6a21\u578b&#xff0c;\u5177\u5907\u826f\u597d\u7684\u6269\u5c55\u6027\u3002<\/p>\n<\/li>\n<li>\u9762\u5411\u672a\u6765\n<p>\u903b\u8f91\u4e0e\u63a5\u53e3\u7684\u6e05\u6670\u5206\u79bb&#xff0c;\u4f7f\u5176\u80fd\u8f7b\u677e\u9002\u5e94\u65b0\u7684\u534f\u8bae\u6216\u7a81\u53d1\u7684\u9700\u6c42\u53d8\u5316\u3002<\/p>\n<\/li>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u521b\u5efa\u7b80\u5355FastAPI\u670d\u52a1\u5668\u7684\u793a\u4f8b\u4ee3\u7801&#xff0c;\u8be5\u670d\u52a1\u5668\u4ec5\u6709\u4e00\u4e2a\u7aef\u70b9&#xff1a;<\/p>\n<p>from fastapi import FastAPIapp &#061; FastAPI()&#064;app.get(&#034;\/&#034;)async def root():\u00a0 \u00a0 return {&#034;message&#034;: &#034;MCP is super cool&#034;} <\/p>\n<p>\u4f7f\u7528uvicorn main:app &#8211;reload\u547d\u4ee4\u8fd0\u884c\u8be5\u5e94\u7528&#xff0c;\u5c31\u53ef\u4ee5\u901a\u8fc7http:\/\/127.0.0.1:8000\u8bbf\u95ee\u5b83\u3002\u4e0d\u8fc7&#xff0c;\u5728\u6b63\u5f0f\u4f7f\u7528\u524d&#xff0c;\u8fd8\u9700\u8981\u4e3a\u5176\u6dfb\u52a0MCP\u670d\u52a1\u5668\u529f\u80fd\u3002<\/p>\n<\/p>\n<h3>\u4e09\u3001\u6dfb\u52a0MCP\u670d\u52a1\u5668<\/h3>\n<p>\u501f\u52a9fastapi-mcp\u5e93&#xff0c;\u53ea\u9700\u5728FastAPI\u4ee3\u7801\u4e2d\u6dfb\u52a0\u4e24\u884c\u4ee3\u7801&#xff0c;\u5c31\u80fd\u5c06\u6240\u6709\u5df2\u5b9a\u4e49\u7684\u7aef\u70b9\u4f5c\u4e3aMCP\u5de5\u5177\u66b4\u9732\u51fa\u6765&#xff1a;<\/p>\n<p>from fastapi import FastAPIfrom fastapi_mcp import FastApiMCPapp &#061; FastAPI()mcp &#061; FastApiMCP(app)mcp.mount() <\/p>\n<p>\u8fd9\u6837&#xff0c;MCP\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u901a\u8fc7http:\/\/127.0.0.1:8000\/mcp\u8bbf\u95ee\u3002\u8be5\u5730\u5740\u53ef\u5728\u4efb\u4f55\u652f\u6301SSE&#xff08;Server-Sent Events&#xff09;\u4f20\u8f93\u7684AI\u667a\u80fd\u4f53\u4e2d\u8fdb\u884c\u914d\u7f6e\u3002\u5982\u679c\u9700\u8981\u8fdb\u884c\u66f4\u9ad8\u7ea7\u7684\u914d\u7f6e&#xff0c;\u6bd4\u5982\u81ea\u5b9a\u4e49\u5de5\u5177\u66b4\u9732\u6216\u6302\u8f7d\u9009\u9879&#xff0c;\u53ef\u4ee5\u53c2\u8003fastapi-mcp\u7684\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<h3>\u56db\u3001\u914d\u7f6eMCP\u670d\u52a1\u5668\u7684\u8ba4\u8bc1<\/h3>\n<p>\u4e3a\u786e\u4fddMCP\u670d\u52a1\u5668\u7684\u5b89\u5168\u6027&#xff0c;\u9700\u8981\u914d\u7f6e\u8ba4\u8bc1\u673a\u5236\u3002fastapi-mcp\u652f\u6301\u4e24\u79cd\u4e3b\u8981\u7684\u8ba4\u8bc1\u65b9\u6cd5&#xff1a;\u6388\u6743\u5934\u8ba4\u8bc1\u548cOAuth2\u8ba4\u8bc1&#xff0c;\u5176\u4e2dOAuth2\u8ba4\u8bc1\u662f\u63a8\u8350\u7684\u65b9\u5f0f&#xff0c;\u56e0\u4e3a\u5b83\u5b8c\u5168\u7b26\u5408MCP\u89c4\u83032025 &#8211; 03 &#8211; 26\u3002<\/p>\n<h4>&#xff08;\u4e00&#xff09;\u901a\u8fc7\u6388\u6743\u5934\u8fdb\u884c\u4ee4\u724c\u8ba4\u8bc1<\/h4>\n<p>\u8fd9\u662f\u4e00\u79cd\u5feb\u901f\u4fdd\u62a4MCP\u670d\u52a1\u5668\u7684\u65b9\u6cd5&#xff0c;\u53ea\u9700\u5728MCP\u914d\u7f6e\u4e2d\u63d0\u4f9b\u4e00\u4e2a\u6388\u6743\u5934\u5373\u53ef\u3002\u5728MCP\u914d\u7f6e\u6587\u4ef6\u4e2d\u53ef\u4ee5\u8fd9\u6837\u8bbe\u7f6e&#xff1a;<\/p>\n<p>{\u00a0 \u00a0 &#034;mcpServers&#034;: {\u00a0 \u00a0 \u00a0 \u00a0 &#034;remote-example&#034;: {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;command&#034;: &#034;npx&#034;,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;args&#034;: [\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;mcp-remote&#034;,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;http:\/\/localhost:8000\/mcp&#034;,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;&#8211;header&#034;,\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;Authorization:${AUTH_HEADER}&#034;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ]\u00a0 \u00a0 \u00a0 \u00a0 },\u00a0 \u00a0 \u00a0 \u00a0 &#034;env&#034;: {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#034;AUTH_HEADER&#034;: &#034;Bearer &lt;your-token&gt;&#034;\u00a0 \u00a0 \u00a0 \u00a0 }\u00a0 \u00a0 }} <\/p>\n<p>\u540c\u65f6&#xff0c;\u4e3a\u4e86\u62d2\u7edd\u672a\u7ecf\u6388\u6743\u7684\u5ba2\u6237\u7aef\u8fde\u63a5\u5230MCP\u670d\u52a1\u5668&#xff0c;\u8fd8\u9700\u8981\u5728\u521b\u5efaMCP\u65f6\u8c03\u6574\u8ba4\u8bc1\u4f9d\u8d56&#xff1a;<\/p>\n<p>from fastapi import FastAPI, Dependsfrom fastapi.security import HTTPBearerfrom fastapi_mcp import FastApiMCP, AuthConfigtoken_auth_scheme &#061; HTTPBearer()app &#061; FastAPI()mcp &#061; FastApiMCP(\u00a0 \u00a0 app,\u00a0 \u00a0 name&#061;&#034;Protected MCP&#034;,\u00a0 \u00a0 auth_config&#061;AuthConfig(\u00a0 \u00a0 \u00a0 \u00a0 dependencies&#061;[Depends(token_auth_scheme)],\u00a0 \u00a0 ))mcp.mount() <\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u53ef\u7528\u7684\u6a21\u677f&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u548c\u5b8c\u5584\u3002<\/p>\n<\/p>\n<h4>&#xff08;\u4e8c&#xff09;\u4f7f\u7528Auth0\u8fdb\u884c\u5b8c\u6574\u7684OAuth\u6d41\u7a0b&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9075\u5faa\u6700\u65b0\u7684MCP\u89c4\u8303&#xff0c;\u662f\u914d\u7f6eMCP\u670d\u52a1\u5668\u8ba4\u8bc1\u7684\u63a8\u8350\u65b9\u5f0f\u3002\u4e0b\u9762\u4ee5\u4f7f\u7528Auth0\u4e3a\u4f8b\u8fdb\u884c\u8be6\u7ec6\u8bf4\u660e&#xff1a;<\/p>\n<li>\u6dfb\u52a0Auth0\u914d\u7f6e\u5efa\u8bae\u5c06Auth0\u914d\u7f6e\u4fe1\u606f\u5b58\u50a8\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684.env\u6587\u4ef6\u4e2d&#xff0c;\u9700\u8981\u8bbe\u7f6e\u7684\u53d8\u91cf\u5305\u62ec&#xff1a; AUTH0_DOMAIN&#061;your-tenant.auth0.comAUTH0_AUDIENCE&#061;https:\/\/your-tenant.auth0.com\/api\/v2\/AUTH0_CLIENT_ID&#061;your-client-idAUTH0_CLIENT_SECRET&#061;your-client-secret \u901a\u8fc7\u521b\u5efa\u4e00\u4e2aSettings\u7c7b\u6765\u52a0\u8f7d\u8fd9\u4e9b\u914d\u7f6e\u4fe1\u606f&#xff08;\u5728\u672c\u6307\u5357\u4e2d&#xff0c;\u4e3a\u4e86\u7b80\u5316&#xff0c;\u76f4\u63a5\u5c06\u5176\u4f5c\u4e3a\u5168\u5c40\u53d8\u91cf\u5f15\u7528&#xff09;&#xff1a;<\/li>\n<p>from\u00a0pydantic_settings\u00a0import\u00a0BaseSettingsclass\u00a0Settings(BaseSettings):\u00a0 \u00a0 auth0_domain:\u00a0str\u00a0\u00a0\u00a0 \u00a0 auth0_audience:\u00a0str\u00a0 \u00a0 auth0_client_id:\u00a0str\u00a0 \u00a0 auth0_client_secret:\u00a0str\u00a0 \u00a0\u00a0class\u00a0Config:\u00a0 \u00a0 \u00a0 \u00a0 env_file &#061;\u00a0&#034;.env&#034;settings &#061; Settings() <\/p>\n<p>2\u3001\u5728Auth0\u4eea\u8868\u677f\u4e2d\u6b63\u786e\u914d\u7f6e\u56de\u8c03URL&#xff1a;\u56de\u8c03URL\u7528\u4e8e\u5728\u8ba4\u8bc1\u8fc7\u7a0b\u4e2d\u63a5\u6536Auth0\u8fd4\u56de\u7684\u4fe1\u606f&#xff0c;\u786e\u4fdd\u914d\u7f6e\u6b63\u786e\u65e0\u8bef&#xff0c;\u5426\u5219\u8ba4\u8bc1\u6d41\u7a0b\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u8fdb\u884c\u3002<\/p>\n<p>3\u3001\u83b7\u53d6\u5e76\u8f6c\u6362JWK\u516c\u94a5&#xff1a;\u4e3a\u4e86\u4e0eAuth0\u8fdb\u884c\u8ba4\u8bc1&#xff0c;\u9700\u8981\u83b7\u53d6JWK&#xff08;JSON Web Key&#xff09;\u516c\u94a5&#xff0c;\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aPEM\u683c\u5f0f<\/p>\n<p>import jwtimport requestsfrom cryptography.hazmat.primitives import serializationdef _get_public_key(url: str):    response &#061; requests.get(url)    jwks &#061; response.json()    return jwks[&#034;keys&#034;][0]def _convert_key_to_pem(jwk_key) -&gt; str:    public_key &#061; jwt.algorithms.RSAAlgorithm.from_jwk(jwk_key)    pem &#061; public_key.public_bytes(        encoding&#061;serialization.Encoding.PEM,        format&#061;serialization.PublicFormat.SubjectPublicKeyInfo,    )    return pem.decode(&#034;utf-8&#034;)jwks_public_key_from_auth_0 &#061; _get_public_key(f&#034;https:\/\/{AUTH0_DOMAIN}\/.well-known\/jwks.json&#034;)pem_key &#061; _convert_key_to_pem(jwks_public_key_from_auth_0) <\/p>\n<p>4\u3001\u9a8c\u8bc1\u8ba4\u8bc1\u4ee4\u724c<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u9a8c\u8bc1\u51fd\u6570&#xff0c;\u7528\u4e8e\u9a8c\u8bc1\u8bbf\u95ee\u6743\u9650\u3002\u8fd9\u4e2a\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8eFastAPI\u4e2d\u7684\u7279\u5b9a\u79c1\u6709\u7aef\u70b9&#xff0c;\u8fd8\u5c06\u5728\u540e\u7eed\u914d\u7f6eMCP\u65f6\u7528\u5230\u3002<\/p>\n<p>async def verify_auth(request: Request) -&gt; dict[str, Any]:\u00a0# \u53ef\u80fd\u9700\u8981\u66f4\u591a\u7684\u9a8c\u8bc1\u903b\u8f91\u00a0return jwt.decode(\u00a0 \u00a0 \u00a0token,\u00a0 \u00a0 \u00a0jwks_public_key_from_auth_0,\u00a0 \u00a0 \u00a0algorithms&#061;[&#034;RS256&#034;, &#034;HS256&#034;],\u00a0 \u00a0 \u00a0audience&#061;AUTH0_AUDIENCE,\u00a0 \u00a0 \u00a0issuer&#061;f&#034;https:\/\/{AUTH0_DOMAIN}\/&#034;,\u00a0 \u00a0 \u00a0options&#061;{&#034;verify_signature&#034;: True},\u00a0) <\/p>\n<p>5\u3001\u4f7f\u7528OAuth\u4fdd\u62a4MCP\u670d\u52a1\u5668<\/p>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u6b65\u9aa4\u540e&#xff0c;\u5c31\u53ef\u4ee5\u914d\u7f6eOAuth\u6765\u4fdd\u62a4MCP\u670d\u52a1\u5668\u4e86\u3002\u00a0\u200b\u200b\u200b\u200b\u200b\u200b\u200b<\/p>\n<p>from\u00a0fastapi\u00a0import\u00a0Dependsfrom\u00a0fastapi_mcp\u00a0import\u00a0FastApiMCP, AuthConfigmcp &#061; FastApiMCP(\u00a0 \u00a0 app,\u00a0 \u00a0 name&#061;&#034;MCP With Auth0&#034;,\u00a0 \u00a0 auth_config&#061;AuthConfig(\u00a0 \u00a0 \u00a0 \u00a0 issuer&#061;f&#034;https:\/\/{AUTH0_DOMAIN}\/&#034;,\u00a0 \u00a0 \u00a0 \u00a0 authorize_url&#061;f&#034;https:\/\/{AUTH0_DOMAIN}\/authorize&#034;,\u00a0 \u00a0 \u00a0 \u00a0 oauth_metadata_url&#061;f&#034;https:\/\/{AUTH0_DOMAIN}\/.well-known\/openid-configuration&#034;,\u00a0 \u00a0 \u00a0 \u00a0 audience&#061;AUTH0_AUDIENCE,\u00a0 \u00a0 \u00a0 \u00a0 client_id&#061;AUTH0_CLIENT_ID,\u00a0 \u00a0 \u00a0 \u00a0 client_secret&#061;AUTH0_CLIENT_SECRET,\u00a0 \u00a0 \u00a0 \u00a0 dependencies&#061;[Depends(verify_auth)],\u00a0\u00a0 \u00a0 \u00a0 \u00a0 setup_proxies&#061;True,\u00a0 \u00a0 ))mcp.mount() <\/p>\n<p>\u8fd9\u6837&#xff0c;MCP\u670d\u52a1\u5668\u5c31\u901a\u8fc7Auth0\u5b9e\u73b0\u4e86\u5168\u9762\u7684\u5b89\u5168\u4fdd\u62a4\u3002\u5982\u679c\u8ba1\u5212\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f7f\u7528&#xff0c;\u5f3a\u70c8\u5efa\u8bae\u53c2\u8003\u9879\u76ee\u793a\u4f8b\u90e8\u5206\u7684\u5b8c\u6574\u4ee3\u7801\u793a\u4f8b&#xff0c;\u4ee5\u786e\u4fdd\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u5f53\u57fa\u4e8eFastAPI\u7684MCP\u670d\u52a1\u5668\u642d\u5efa\u5b8c\u6210\u5e76\u6295\u5165\u8fd0\u884c\u540e&#xff0c;\u5c31\u53ef\u4ee5\u5f00\u59cb\u6784\u5efa\u66f4\u5f3a\u5927\u3001\u80fd\u611f\u77e5\u4e0a\u4e0b\u6587\u7684\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u5b9e\u73b0\u4e0eAI\u667a\u80fd\u4f53\u7684\u65e0\u7f1d\u4ea4\u4e92\u3002\u8fd9\u4ec5\u4ec5\u662f\u4e00\u4e2a\u5f00\u59cb&#xff0c;\u672a\u6765\u8fd8\u6709\u8bb8\u591a\u4ee4\u4eba\u671f\u5f85\u7684\u529f\u80fd\u3002\u4f8b\u5982&#xff0c;\u57fa\u4e8e\u65b0\u7684MCP\u89c4\u8303\u7684\u53ef\u6d41\u5f0fHTTP\u4f20\u8f93&#xff0c;\u4ee5\u53ca\u81ea\u5b9a\u4e49MCP\u5de5\u5177&#xff0c;\u8fd9\u4e9b\u5de5\u5177\u5141\u8bb8\u5f00\u53d1\u8005\u6dfb\u52a0\u72ec\u7acb\u4e8eFastAPI\u7aef\u70b9\u7684\u5de5\u5177\u548c\u8d44\u6e90&#xff0c;\u8fdb\u4e00\u6b65\u62d3\u5c55\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\u8fb9\u754c\u3002<\/p>\n<p>\u540c\u65f6&#xff0c;\u8fd9\u4e2a\u5f00\u6e90\u9879\u76ee\u4e5f\u6b22\u8fce\u5e7f\u5927\u5f00\u53d1\u8005\u53c2\u4e0e\u8d21\u732e\u548c\u6539\u8fdb\u3002\u65e0\u8bba\u662f\u62a5\u544a\u95ee\u9898\u3001\u63d0\u51fa\u65b0\u529f\u80fd\u5efa\u8bae&#xff0c;\u8fd8\u662f\u63d0\u4ea4\u62c9\u53d6\u8bf7\u6c42&#xff0c;\u6bcf\u4e00\u4efd\u8d21\u732e\u90fd\u5c06\u6709\u52a9\u4e8e\u5851\u9020\u8fd9\u4e2a\u5e93\u7684\u672a\u6765&#xff0c;\u63d0\u5347\u5176\u529f\u80fd\u548c\u6027\u80fd\u3002<\/p>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4&#xff0c;\u5f00\u53d1\u8005\u53ef\u4ee5\u6210\u529f\u5728Python\u4e2d\u4f7f\u7528FastAPI\u6784\u5efa\u4e00\u4e2a\u5e26\u6709\u8ba4\u8bc1\u529f\u80fd\u7684MCP\u670d\u52a1\u5668\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff0c;\u8fd8\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u4e1a\u52a1\u9700\u6c42\u548c\u5b89\u5168\u8981\u6c42\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u4f18\u5316\u548c\u6269\u5c55&#xff0c;\u4ee5\u5145\u5206\u53d1\u6325MCP\u5728AI\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u4e2d\u7684\u4f18\u52bf&#xff0c;\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u52a0\u667a\u80fd\u3001\u9ad8\u6548\u7684\u670d\u52a1\u4f53\u9a8c\u3002<\/p>\n<p>code(https:\/\/github.com\/tadata-org\/fastapi_mcp\/blob\/main\/examples\/09_auth_example_auth0.py)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u66fe\u7ecf\u53ea\u5b58\u5728\u4e8e\u79d1\u5e7b\u60f3\u8c61\u4e2d\u7684\u573a\u666f\u2014\u2014AI\u4e0e\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\u65e0\u7f1d\u5bf9\u63a5\uff0c\u5982\u4eca\u6b63\u9010\u6b65\u6210\u4e3a\u73b0\u5b9e\u3002\u5c31\u50cfAPI\u957f\u671f\u4f5c\u4e3a\u5f00\u53d1\u8005\u4e0e\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\u4e00\u6837\uff0c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u6b63\u9010\u6e10\u6210\u4e3aAI\u667a\u80fd\u4f53\u4ee5\u7ed3\u6784\u5316\u3001\u611f\u77e5\u4e0a\u4e0b\u6587\u7684\u65b9\u5f0f\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u7684\u9996\u9009\u6807\u51c6\u3002\u8bf8\u5982Anthropic\uff08\u8be5\u534f\u8bae\u7684\u521b\u7acb\u8005\uff09\u3001OpenAI\u3001\u8c37\u6b4c\u7b49\u4f17\u591aAI\u4f9b\u5e94\u5546\u90fd\u5728\u5e7f\u6cdb\u91c7\u7528\u8fd9\u4e00\u534f\u8bae\u3002\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u548c\u7ef4\u62a4\u8005\u800c\u8a00\uff0c\u7528\u6237\u901a\u8fc7AI\u667a\u80fd\u4f53\u800c\u975e\u76f4\u63a5\u4e0e\u5e94\u7528\u4ea4\u4e92\u7684\u65f6\u4ee3\u5df2\u7ecf\u6084\u7136\u6765\u4e34\uff0c\u652f\u6301\u8fd9\u4e00\u8f6c\u53d8\u7684\u5173\u952e\u5c31\u5728\u4e8e\u642d\u5efaMCP\u670d\u52a1\u5668\u3002_python fastmcp \u8eab\u4efd\u8ba4\u8bc1<\/p>\n","protected":false},"author":2,"featured_media":36517,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[74,72,73,81,3152],"topic":[],"class_list":["post-36518","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-agent","tag-fastapi","tag-mcp","tag-python","tag-llm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \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\/36518.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u66fe\u7ecf\u53ea\u5b58\u5728\u4e8e\u79d1\u5e7b\u60f3\u8c61\u4e2d\u7684\u573a\u666f\u2014\u2014AI\u4e0e\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\u65e0\u7f1d\u5bf9\u63a5\uff0c\u5982\u4eca\u6b63\u9010\u6b65\u6210\u4e3a\u73b0\u5b9e\u3002\u5c31\u50cfAPI\u957f\u671f\u4f5c\u4e3a\u5f00\u53d1\u8005\u4e0e\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\u4e00\u6837\uff0c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u6b63\u9010\u6e10\u6210\u4e3aAI\u667a\u80fd\u4f53\u4ee5\u7ed3\u6784\u5316\u3001\u611f\u77e5\u4e0a\u4e0b\u6587\u7684\u65b9\u5f0f\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u7684\u9996\u9009\u6807\u51c6\u3002\u8bf8\u5982Anthropic\uff08\u8be5\u534f\u8bae\u7684\u521b\u7acb\u8005\uff09\u3001OpenAI\u3001\u8c37\u6b4c\u7b49\u4f17\u591aAI\u4f9b\u5e94\u5546\u90fd\u5728\u5e7f\u6cdb\u91c7\u7528\u8fd9\u4e00\u534f\u8bae\u3002\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u548c\u7ef4\u62a4\u8005\u800c\u8a00\uff0c\u7528\u6237\u901a\u8fc7AI\u667a\u80fd\u4f53\u800c\u975e\u76f4\u63a5\u4e0e\u5e94\u7528\u4ea4\u4e92\u7684\u65f6\u4ee3\u5df2\u7ecf\u6084\u7136\u6765\u4e34\uff0c\u652f\u6301\u8fd9\u4e00\u8f6c\u53d8\u7684\u5173\u952e\u5c31\u5728\u4e8e\u642d\u5efaMCP\u670d\u52a1\u5668\u3002_python fastmcp \u8eab\u4efd\u8ba4\u8bc1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36518.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-10T02:21:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510022059-681eb80bbf17d.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36518.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36518.html\",\"name\":\"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-10T02:21:01+00:00\",\"dateModified\":\"2025-05-10T02:21:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36518.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36518.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36518.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801)\"}]},{\"@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":"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \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\/36518.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb673\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf22\u6b21\u3002\u66fe\u7ecf\u53ea\u5b58\u5728\u4e8e\u79d1\u5e7b\u60f3\u8c61\u4e2d\u7684\u573a\u666f\u2014\u2014AI\u4e0e\u4efb\u4f55\u5e94\u7528\u7a0b\u5e8f\u65e0\u7f1d\u5bf9\u63a5\uff0c\u5982\u4eca\u6b63\u9010\u6b65\u6210\u4e3a\u73b0\u5b9e\u3002\u5c31\u50cfAPI\u957f\u671f\u4f5c\u4e3a\u5f00\u53d1\u8005\u4e0e\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\u7684\u63a5\u53e3\u4e00\u6837\uff0c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u6b63\u9010\u6e10\u6210\u4e3aAI\u667a\u80fd\u4f53\u4ee5\u7ed3\u6784\u5316\u3001\u611f\u77e5\u4e0a\u4e0b\u6587\u7684\u65b9\u5f0f\u4e0e\u5e94\u7528\u7a0b\u5e8f\u4ea4\u4e92\u7684\u9996\u9009\u6807\u51c6\u3002\u8bf8\u5982Anthropic\uff08\u8be5\u534f\u8bae\u7684\u521b\u7acb\u8005\uff09\u3001OpenAI\u3001\u8c37\u6b4c\u7b49\u4f17\u591aAI\u4f9b\u5e94\u5546\u90fd\u5728\u5e7f\u6cdb\u91c7\u7528\u8fd9\u4e00\u534f\u8bae\u3002\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u548c\u7ef4\u62a4\u8005\u800c\u8a00\uff0c\u7528\u6237\u901a\u8fc7AI\u667a\u80fd\u4f53\u800c\u975e\u76f4\u63a5\u4e0e\u5e94\u7528\u4ea4\u4e92\u7684\u65f6\u4ee3\u5df2\u7ecf\u6084\u7136\u6765\u4e34\uff0c\u652f\u6301\u8fd9\u4e00\u8f6c\u53d8\u7684\u5173\u952e\u5c31\u5728\u4e8e\u642d\u5efaMCP\u670d\u52a1\u5668\u3002_python fastmcp \u8eab\u4efd\u8ba4\u8bc1","og_url":"https:\/\/www.wsisp.com\/helps\/36518.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-10T02:21:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250510022059-681eb80bbf17d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36518.html","url":"https:\/\/www.wsisp.com\/helps\/36518.html","name":"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-10T02:21:01+00:00","dateModified":"2025-05-10T02:21:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36518.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36518.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36518.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528 Python \u548c FastAPI \u6784\u5efa\u5e26\u8ba4\u8bc1\u7684 MCP \u670d\u52a1\u5668(\u542b\u4ee3\u7801)"}]},{"@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\/36518","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=36518"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36518\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36517"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36518"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}