{"id":482006,"date":"2026-06-02T06:15:19","date_gmt":"2026-06-02T06:15:19","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=482006"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=482006","title":{"rendered":"\u041a\u0430\u043a \u044f \u0441\u043e\u0431\u0440\u0430\u043b MCP-\u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0434\u043b\u044f Claude \u0437\u0430 \u0432\u0435\u0447\u0435\u0440: FastMCP, Streamable HTTP \u0438 \u0433\u0440\u0430\u0431\u043b\u0438 \u0434\u0435\u043f\u043b\u043e\u044f"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>MCP (Model Context Protocol) \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u00abUSB-C \u0434\u043b\u044f \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u043e\u0432\u00bb: \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0438 \u043a \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043d\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0431\u0435\u0440\u0451\u0448\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0443\u043a\u0430\u043c\u0438 \u2014 \u0433\u0434\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442, \u0430 \u0433\u0434\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f, \u0432\u0438\u0434\u043d\u043e \u043b\u0438\u0448\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u0441\u0432\u043e\u0439 \u0437\u0430 \u0432\u0435\u0447\u0435\u0440 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043f\u043e \u0448\u0430\u0433\u0430\u043c.<\/p>\n<p>\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043e\u0442\u0434\u0430\u0451\u0442 Claude \u043c\u043e\u044e \u0431\u0430\u0437\u0443 \u0437\u043d\u0430\u043d\u0438\u0439 \u2014 <a href=\"https:\/\/zinin-shturbin.com\/glossary\/\" rel=\"noopener noreferrer nofollow\">\u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 90 \u0418\u0418-\u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432<\/a> \u0438 \u0431\u043b\u043e\u043a \u0447\u0430\u0441\u0442\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0421\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0448\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u00ab\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RAG\u00bb \u2014 \u0438 Claude \u0434\u043e\u0441\u0442\u0430\u0451\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438\u0437 \u043c\u043e\u0435\u0439 \u0431\u0430\u0437\u044b, \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0441\u0442\u0435\u043a, \u043a\u043e\u0434, \u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430 nginx \u0438 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0437\u0430\u043b\u0438\u043f.<\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0443 \u0441\u0432\u043e\u0439 MCP-\u0441\u0435\u0440\u0432\u0435\u0440<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0436\u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0418\u0418-\u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430, \u0442\u0430\u043c, \u0433\u0434\u0435 \u0438\u0434\u0451\u0442 \u0440\u0430\u0431\u043e\u0442\u0430, \u0431\u0435\u0437 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0427\u0442\u043e \u044f \u0432\u0438\u0436\u0443 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0432 Claude \u0431\u0435\u0437 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u0441\u0442\u0443\u043f \u043a CRM \u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u00ab\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u00bb \u2014 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043f\u0440\u0430\u0439\u0441, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u2014 \u0442\u043e, \u0447\u0442\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0438\u043d\u0430\u0447\u0435 \u0438\u0449\u0435\u0442 \u0440\u0443\u043a\u0430\u043c\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u2014 \u0431\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e \u0418\u0418. \u041d\u0430 \u043d\u0435\u0439 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443.<\/p>\n<h3>\u0421\u0442\u0435\u043a: FastMCP \u0438 Streamable HTTP<\/h3>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Python, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 FastMCP (\u0432\u0435\u0440\u0441\u0438\u044f 2.14.7 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0431\u043e\u0440\u043a\u0438). \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0443\u0442 \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442. \u0421\u0442\u0430\u0440\u044b\u0439 SSE \u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 MCP \u0443\u0436\u0435 \u0434\u0435\u043f\u0440\u0435\u043a\u0435\u0439\u0442\u043d\u0443\u0442, \u0436\u0438\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 Streamable HTTP. \u0425\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e URL, \u2014 \u0431\u0435\u0440\u0438\u0442\u0435 \u0435\u0433\u043e. \u0412 FastMCP \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430:<\/p>\n<pre><code>mcp.run(transport=\"streamable-http\", host=\"0.0.0.0\", port=8000)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>Endpoint \u2014 <code>\/mcp<\/code>, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u0435\u0437 \u0441\u043b\u044d\u0448\u0430. <code>\/mcp\/<\/code> \u043e\u0442\u0434\u0430\u0451\u0442 307-\u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442, \u0430 \u0433\u043e\u043b\u044b\u0439 GET \u043b\u043e\u0432\u0438\u0442 406 (\u043d\u0443\u0436\u0435\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a <code>Accept: text\/event-stream<\/code>). \u042d\u0442\u0430 \u043c\u0435\u043b\u043e\u0447\u044c \u0435\u0449\u0451 \u0430\u0443\u043a\u043d\u0435\u0442\u0441\u044f \u043d\u0430 healthcheck.<\/p>\n<h3>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: \u0442\u043e\u043d\u043a\u0438\u0435 \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438<\/h3>\n<p>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0447\u0435\u0442\u044b\u0440\u0435, \u0432\u0441\u0435 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0412\u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e:<\/p>\n<pre><code>@mcp.tool(    annotations={        \"readOnlyHint\": True,        \"destructiveHint\": False,        \"openWorldHint\": False,    })def search_glossary(query: str, limit: int = 8) -&gt; str:    \"\"\"    Search the AI glossary (90 terms) by keyword.    Returns matching terms with short definitions and source URL.    \"\"\"    ...<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>annotations<\/code> \u0442\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0434\u0435\u043b\u043e: \u043e\u043d\u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u2014 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u044f\u0435\u0442, \u043e\u043f\u0430\u0441\u043d\u043e\u0435 \u043b\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043b\u0435\u0437\u0435\u0442 \u043b\u0438 \u043d\u0430\u0440\u0443\u0436\u0443. \u041f\u043e \u043d\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442 \u0440\u0435\u0448\u0430\u0435\u0442, \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435. \u0421\u043e\u0432\u0435\u0442 \u0438\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438: \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u0440\u0430\u0437\u0443. \u041f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 Anthropic \u0438\u0445 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u2014 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d \u043e\u0442\u043a\u0430\u0437\u0430. \u0414\u0435\u0448\u0435\u0432\u043b\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0432\u044c\u044e.<\/p>\n<p>\u0418 \u0435\u0449\u0451 \u043c\u0435\u043b\u043e\u0447\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0436\u0451\u0442 \u043d\u0435\u0440\u0432\u044b: \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u044f \u0432\u044b\u043d\u0435\u0441 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 <code>@mcp.tool<\/code> \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0442\u043e\u043d\u043a\u043e\u0439 \u043e\u0431\u0451\u0440\u0442\u043a\u043e\u0439. \u0422\u0430\u043a \u0442\u0435\u0441\u0442\u044b \u0433\u043e\u043d\u044f\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 pytest, \u0431\u0435\u0437 \u043f\u043e\u0434\u044a\u0451\u043c\u0430 \u0432\u0441\u0435\u0433\u043e MCP-\u0441\u0442\u0435\u043a\u0430.<\/p>\n<h3>\u0414\u0430\u043d\u043d\u044b\u0435: \u0433\u0440\u0443\u0437\u0438\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435<\/h3>\n<p>\u0411\u0430\u0437\u0430 \u2014 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 JSON (90 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u043f\u043b\u044e\u0441 21 \u0432\u043e\u043f\u0440\u043e\u0441), \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u043b \u0438\u0445 \u0438\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0424\u0430\u0439\u043b\u044b \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0438\u0442\u0430\u044e \u0438\u0445 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0438 \u0442\u0430\u043c \u0436\u0435 \u0441\u0442\u0440\u043e\u044e \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0438\u0441\u043a\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0434\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432:<\/p>\n<pre><code># Load data once on import (FastMCP calls tools after startup)load_data()<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0435 \u2014 \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u044f \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0422\u0430\u043a \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0447\u0435\u0441\u0442\u043d\u0435\u0435 (\u0432\u0438\u0434\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435), \u0438 \u043c\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e: \u043e\u0442\u0432\u0435\u0442\u044b \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442.<\/p>\n<h3>\u0414\u0435\u043f\u043b\u043e\u0439: Docker \u0437\u0430 nginx \u0438 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438<\/h3>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 Docker \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c VPS, \u043d\u0430\u0440\u0443\u0436\u0443 \u0442\u043e\u0440\u0447\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 nginx \u0441 TLS. \u0422\u0443\u0442 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0442\u0440\u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.<\/p>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f 1. Docker: \u00aball predefined address pools have been fully subnetted\u00bb.<\/strong> \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043a\u0443\u0447\u0435\u0439 compose-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0443 Docker \u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f \u043f\u0443\u043b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0442\u0438. \u041b\u0435\u0447\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0431\u043e\u043b\u0438 \u0434\u043b\u044f \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u2014 \u0441\u0430\u0436\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0430 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 bridge \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:<\/p>\n<pre><code>services:  zs-mcp:    network_mode: bridge    ports:      - \"127.0.0.1:8096:8000\"   # \u043d\u0430\u0440\u0443\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 nginx<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f 2. Healthcheck, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0447\u043d\u043e \u00abunhealthy\u00bb.<\/strong> \u041f\u0435\u0440\u0432\u044b\u0439 healthcheck \u0434\u0451\u0440\u0433\u0430\u043b <code>GET \/mcp\/<\/code> \u0447\u0435\u0440\u0435\u0437 urllib. \u041d\u043e <code>\/mcp\/<\/code> \u043e\u0442\u0434\u0430\u0451\u0442 307, \u0430 <code>\/mcp<\/code> \u0431\u0435\u0437 SSE-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u2014 406. urllib \u0432\u0438\u0434\u0438\u0442 \u043e\u0442\u0432\u0435\u0442 \u043c\u0438\u043c\u043e 200 \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0431\u043e\u043b\u044c\u043d\u044b\u043c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0440\u0442 \u0441\u043b\u0443\u0448\u0430\u0435\u0442, \u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430:<\/p>\n<pre><code>healthcheck:  test: [\"CMD\", \"python\", \"-c\",    \"import socket; socket.create_connection(('localhost', 8000), timeout=5).close()\"]<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0413\u0440\u0430\u0431\u043b\u044f 3. nginx \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0443\u0435\u0442 SSE.<\/strong> Streamable HTTP \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a\u043e\u043c (<code>event: message<\/code>). nginx \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0443\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u0430\u043f\u0441\u0442\u0440\u0438\u043c\u0430 \u2014 \u0438 \u043f\u043e\u0442\u043e\u043a \u0437\u0430\u043b\u0438\u043f\u0430\u0435\u0442. \u0412 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0433\u0430\u0441\u0438\u043c \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e:<\/p>\n<pre><code>location \/ {    proxy_pass         http:\/\/127.0.0.1:8096;    proxy_http_version 1.1;    proxy_set_header   Connection \"\";    proxy_buffering    off;    proxy_read_timeout 3600s;    chunked_transfer_encoding on;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>TLS \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 certbot \u043d\u0430 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 <a href=\"https:\/\/mcp.zinin-shturbin.com\/mcp\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/mcp.zinin-shturbin.com\/mcp<\/code><\/a>.<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430: \u0440\u0443\u043a\u043e\u043f\u043e\u0436\u0430\u0442\u0438\u0435 \u0440\u0443\u043a\u0430\u043c\u0438<\/h3>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0442\u0430\u0449\u0438\u0442\u044c \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0432 Claude, \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0436\u0438\u0432\u0443\u044e \u043e\u0431\u044b\u0447\u043d\u044b\u043c curl. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 <code>initialize<\/code>, \u043b\u043e\u0432\u043b\u044e <code>mcp-session-id<\/code> \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430:<\/p>\n<pre><code>curl -sD - -X POST https:\/\/mcp.zinin-shturbin.com\/mcp \\  -H 'Content-Type: application\/json' \\  -H 'Accept: application\/json, text\/event-stream' \\  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",       \"params\":{\"protocolVersion\":\"2024-11-05\",\"capabilities\":{},                 \"clientInfo\":{\"name\":\"curl\",\"version\":\"1\"}}}'<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u2014 <code>serverInfo<\/code> \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u2014 <code>mcp-session-id<\/code>. \u0421 \u044d\u0442\u0438\u043c session-id \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0451\u0440\u0433\u0430\u0435\u0448\u044c <code>tools\/list<\/code> \u0438 \u0436\u0438\u0432\u043e\u0439 <code>tools\/call<\/code>. \u041a\u043e\u0433\u0434\u0430 <code>search_glossary<\/code> \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u00abMCP\u00bb \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439, \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e: \u0432\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 (TLS \u2192 nginx \u2192 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u2192 streamable-http) \u0434\u0435\u0440\u0436\u0438\u0442.<\/p>\n<h3>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 Claude<\/h3>\n<p>\u0412 Claude (<a href=\"http:\/\/claude.ai\" rel=\"noopener noreferrer nofollow\">claude.ai<\/a> \u0438\u043b\u0438 Claude Desktop): <strong>Settings \u2192 Connectors \u2192 Add custom connector<\/strong> \u2192 \u0438\u043c\u044f \u0438 URL <a href=\"https:\/\/mcp.zinin-shturbin.com\/mcp\" rel=\"noopener noreferrer nofollow\"><code>https:\/\/mcp.zinin-shturbin.com\/mcp<\/code><\/a>. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0443\u0442 \u043b\u0438\u0448\u043d\u044f\u044f (\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435, \u0447\u0442\u0435\u043d\u0438\u0435) \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c.<\/p>\n<h3>\u0427\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435<\/h3>\n<p>\u0417\u0430 \u0432\u0435\u0447\u0435\u0440 \u2014 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 MCP-\u0441\u0435\u0440\u0432\u0435\u0440: FastMCP \u043f\u043b\u044e\u0441 Streamable HTTP, \u0447\u0435\u0442\u044b\u0440\u0435 read-only \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438, Docker \u0437\u0430 nginx \u0441 TLS. \u0413\u0440\u0430\u0431\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0440\u0436\u0443 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>endpoint <code>\/mcp<\/code> \u0431\u0435\u0437 \u0441\u043b\u044d\u0448\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u0440\u0430\u0437\u0443;<\/p>\n<\/li>\n<li>\n<p><code>network_mode: bridge<\/code>, \u043a\u043e\u0433\u0434\u0430 \u0443 Docker \u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u0441\u0435\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>healthcheck \u0447\u0435\u0440\u0435\u0437 TCP-connect \u0432\u043c\u0435\u0441\u0442\u043e HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a <code>\/mcp<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>proxy_buffering off<\/code> \u043f\u043e\u0434 SSE-\u043f\u043e\u0442\u043e\u043a.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0437\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 \u043e\u0434\u043d\u0430-\u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0414\u043e\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0439\u0442\u0435: \u0442\u0430\u043a \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e, \u0433\u0434\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442, \u0430 \u0433\u0434\u0435 \u043e\u043d \u043b\u0438\u0448\u043d\u0438\u0439.<\/p>\n<p>\u0421\u0430\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043e\u0442\u0434\u0430\u0451\u0442 \u043c\u043e\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0418\u0418-\u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u2014 \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u0442, \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u0438\u0441\u0442\u0430\u0442\u044c. \u0422\u0430\u043a\u0438\u0435 \u0448\u0442\u0443\u043a\u0438 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0441 \u0444\u0430\u0443\u043d\u0434\u0435\u0440\u0430\u043c\u0438 \u0432 <a href=\"https:\/\/zinin-shturbin.com\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0418\u0418<\/a> \u2014 \u0442\u0435\u043c\u0438, \u043a\u043e\u043c\u0443 \u0418\u0418 \u043d\u0443\u0436\u0435\u043d \u0436\u0438\u0432\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041b\u043e\u0432\u0438\u043b\u0438 \u0433\u0440\u0430\u0431\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0443\u0442 \u043d\u0435\u0442, \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044e.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1042470\/\">https:\/\/habr.com\/ru\/articles\/1042470\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MCP (Model Context Protocol) \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u00abUSB-C \u0434\u043b\u044f \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u043e\u0432\u00bb: \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u0438 \u043a \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0439 \u0431\u0435\u0437 \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u0439. \u0417\u0432\u0443\u0447\u0438\u0442 \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043d\u043e \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0431\u0435\u0440\u0451\u0448\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0443\u043a\u0430\u043c\u0438 \u2014 \u0433\u0434\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442, \u0430 \u0433\u0434\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f, \u0432\u0438\u0434\u043d\u043e \u043b\u0438\u0448\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435. \u042f \u0441\u043e\u0431\u0440\u0430\u043b \u0441\u0432\u043e\u0439 \u0437\u0430 \u0432\u0435\u0447\u0435\u0440 \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043f\u043e \u0448\u0430\u0433\u0430\u043c.\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043e\u0442\u0434\u0430\u0451\u0442 Claude \u043c\u043e\u044e \u0431\u0430\u0437\u0443 \u0437\u043d\u0430\u043d\u0438\u0439 \u2014 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0438\u0437 90 \u0418\u0418-\u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u0438 \u0431\u043b\u043e\u043a \u0447\u0430\u0441\u0442\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432. \u0421\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0448\u044c \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435 \u00ab\u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 RAG\u00bb \u2014 \u0438 Claude \u0434\u043e\u0441\u0442\u0430\u0451\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438\u0437 \u043c\u043e\u0435\u0439 \u0431\u0430\u0437\u044b, \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0414\u0430\u043b\u044c\u0448\u0435 \u2014 \u0441\u0442\u0435\u043a, \u043a\u043e\u0434, \u0434\u0435\u043f\u043b\u043e\u0439 \u0437\u0430 nginx \u0438 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0437\u0430\u043b\u0438\u043f.\u0417\u0430\u0447\u0435\u043c \u0431\u0438\u0437\u043d\u0435\u0441\u0443 \u0441\u0432\u043e\u0439 MCP-\u0441\u0435\u0440\u0432\u0435\u0440\u0427\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0436\u0438\u043b\u0438 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0418\u0418-\u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u0430, \u0442\u0430\u043c, \u0433\u0434\u0435 \u0438\u0434\u0451\u0442 \u0440\u0430\u0431\u043e\u0442\u0430, \u0431\u0435\u0437 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0427\u0442\u043e \u044f \u0432\u0438\u0436\u0443 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432:\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0432 Claude \u0431\u0435\u0437 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u044b;\u0434\u043e\u0441\u0442\u0443\u043f \u043a CRM \u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u043c \u00ab\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u00bb \u2014 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u0434\u0438\u0430\u043b\u043e\u0433\u0435;\u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043f\u0440\u0430\u0439\u0441, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u2014 \u0442\u043e, \u0447\u0442\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0438\u043d\u0430\u0447\u0435 \u0438\u0449\u0435\u0442 \u0440\u0443\u043a\u0430\u043c\u0438.\u0423 \u043c\u0435\u043d\u044f \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u2014 \u0431\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439 \u043f\u043e \u0418\u0418. \u041d\u0430 \u043d\u0435\u0439 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443.\u0421\u0442\u0435\u043a: FastMCP \u0438 Streamable HTTP\u0421\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Python, \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 FastMCP (\u0432\u0435\u0440\u0441\u0438\u044f 2.14.7 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0431\u043e\u0440\u043a\u0438). \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0443\u0442 \u2014 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442. \u0421\u0442\u0430\u0440\u044b\u0439 SSE \u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 MCP \u0443\u0436\u0435 \u0434\u0435\u043f\u0440\u0435\u043a\u0435\u0439\u0442\u043d\u0443\u0442, \u0436\u0438\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 Streamable HTTP. \u0425\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e URL, \u2014 \u0431\u0435\u0440\u0438\u0442\u0435 \u0435\u0433\u043e. \u0412 FastMCP \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430:mcp.run(transport=&#187;streamable-http&#187;, host=&#187;0.0.0.0&#8243;, port=8000)Endpoint \u2014 \/mcp, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0431\u0435\u0437 \u0441\u043b\u044d\u0448\u0430. \/mcp\/ \u043e\u0442\u0434\u0430\u0451\u0442 307-\u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442, \u0430 \u0433\u043e\u043b\u044b\u0439 GET \u043b\u043e\u0432\u0438\u0442 406 (\u043d\u0443\u0436\u0435\u043d \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a Accept: text\/event-stream). \u042d\u0442\u0430 \u043c\u0435\u043b\u043e\u0447\u044c \u0435\u0449\u0451 \u0430\u0443\u043a\u043d\u0435\u0442\u0441\u044f \u043d\u0430 healthcheck.\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: \u0442\u043e\u043d\u043a\u0438\u0435 \u043e\u0431\u0451\u0440\u0442\u043a\u0438 \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0447\u0435\u0442\u044b\u0440\u0435, \u0432\u0441\u0435 \u2014 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0412\u043e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e:@mcp.tool(    annotations={        &#171;readOnlyHint&#187;: True,        &#171;destructiveHint&#187;: False,        &#171;openWorldHint&#187;: False,    })def search_glossary(query: str, limit: int = 8) -&gt; str:    &#171;&#187;&#187;    Search the AI glossary (90 terms) by keyword.    Returns matching terms with short definitions and source URL.    &#171;&#187;&#187;    &#8230;annotations \u0442\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0434\u0435\u043b\u043e: \u043e\u043d\u0438 \u0441\u043e\u043e\u0431\u0449\u0430\u044e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u2014 \u0447\u0438\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u044f\u0435\u0442, \u043e\u043f\u0430\u0441\u043d\u043e\u0435 \u043b\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435, \u043b\u0435\u0437\u0435\u0442 \u043b\u0438 \u043d\u0430\u0440\u0443\u0436\u0443. \u041f\u043e \u043d\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442 \u0440\u0435\u0448\u0430\u0435\u0442, \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435. \u0421\u043e\u0432\u0435\u0442 \u0438\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0438: \u043f\u0440\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u0440\u0430\u0437\u0443. \u041f\u0440\u0438 \u043f\u043e\u0434\u0430\u0447\u0435 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 Anthropic \u0438\u0445 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u2014 \u043e\u0434\u043d\u0430 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d \u043e\u0442\u043a\u0430\u0437\u0430. \u0414\u0435\u0448\u0435\u0432\u043b\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u0447\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0432\u044c\u044e.\u0418 \u0435\u0449\u0451 \u043c\u0435\u043b\u043e\u0447\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0435\u0436\u0451\u0442 \u043d\u0435\u0440\u0432\u044b: \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u044f \u0432\u044b\u043d\u0435\u0441 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0430 @mcp.tool \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0442\u043e\u043d\u043a\u043e\u0439 \u043e\u0431\u0451\u0440\u0442\u043a\u043e\u0439. \u0422\u0430\u043a \u0442\u0435\u0441\u0442\u044b \u0433\u043e\u043d\u044f\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 pytest, \u0431\u0435\u0437 \u043f\u043e\u0434\u044a\u0451\u043c\u0430 \u0432\u0441\u0435\u0433\u043e MCP-\u0441\u0442\u0435\u043a\u0430.\u0414\u0430\u043d\u043d\u044b\u0435: \u0433\u0440\u0443\u0437\u0438\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435\u0411\u0430\u0437\u0430 \u2014 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 JSON (90 \u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u043f\u043b\u044e\u0441 21 \u0432\u043e\u043f\u0440\u043e\u0441), \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u043b \u0438\u0445 \u0438\u0437 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0424\u0430\u0439\u043b\u044b \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0447\u0438\u0442\u0430\u044e \u0438\u0445 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0438 \u0442\u0430\u043c \u0436\u0435 \u0441\u0442\u0440\u043e\u044e \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0438\u0441\u043a\u0430. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u043a \u0434\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0437\u043e\u0432:# Load data once on import (FastMCP calls tools after startup)load_data()\u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u043e\u0442\u0432\u0435\u0442\u0435 \u2014 \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u044f \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a. \u0422\u0430\u043a \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0447\u0435\u0441\u0442\u043d\u0435\u0435 (\u0432\u0438\u0434\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435), \u0438 \u043c\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e: \u043e\u0442\u0432\u0435\u0442\u044b \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u0441\u0430\u0439\u0442.\u0414\u0435\u043f\u043b\u043e\u0439: Docker \u0437\u0430 nginx \u0438 \u0442\u0440\u0438 \u0433\u0440\u0430\u0431\u043b\u0438\u0421\u0435\u0440\u0432\u0435\u0440 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u0432 Docker \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u043c VPS, \u043d\u0430\u0440\u0443\u0436\u0443 \u0442\u043e\u0440\u0447\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 nginx \u0441 TLS. \u0422\u0443\u0442 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0442\u0440\u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u0432\u0435\u0449\u0438.\u0413\u0440\u0430\u0431\u043b\u044f 1. Docker: \u00aball predefined address pools have been fully subnetted\u00bb. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0441 \u043a\u0443\u0447\u0435\u0439 compose-\u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0443 Docker \u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f \u043f\u0443\u043b \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0442\u0438. \u041b\u0435\u0447\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u0431\u043e\u043b\u0438 \u0434\u043b\u044f \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u2014 \u0441\u0430\u0436\u0430\u0435\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u043d\u0430 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 bridge \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438:services:  zs-mcp:    network_mode: bridge    ports:      &#8212; &#171;127.0.0.1:8096:8000&#187;   # \u043d\u0430\u0440\u0443\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 nginx\u0413\u0440\u0430\u0431\u043b\u044f 2. Healthcheck, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0447\u043d\u043e \u00abunhealthy\u00bb. \u041f\u0435\u0440\u0432\u044b\u0439 healthcheck \u0434\u0451\u0440\u0433\u0430\u043b GET \/mcp\/ \u0447\u0435\u0440\u0435\u0437 urllib. \u041d\u043e \/mcp\/ \u043e\u0442\u0434\u0430\u0451\u0442 307, \u0430 \/mcp \u0431\u0435\u0437 SSE-\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430 \u2014 406. urllib \u0432\u0438\u0434\u0438\u0442 \u043e\u0442\u0432\u0435\u0442 \u043c\u0438\u043c\u043e 200 \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0431\u043e\u043b\u044c\u043d\u044b\u043c. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0440\u0442 \u0441\u043b\u0443\u0448\u0430\u0435\u0442, \u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430:healthcheck:  test: [&#171;CMD&#187;, &#171;python&#187;, &#171;-c&#187;,    &#171;import socket; socket.create_connection((&#8216;localhost&#8217;, 8000), timeout=5).close()&#187;]\u0413\u0440\u0430\u0431\u043b\u044f 3. nginx \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0443\u0435\u0442 SSE. Streamable HTTP \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a\u043e\u043c (event: message). nginx \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0443\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u0430\u043f\u0441\u0442\u0440\u0438\u043c\u0430 \u2014 \u0438 \u043f\u043e\u0442\u043e\u043a \u0437\u0430\u043b\u0438\u043f\u0430\u0435\u0442. \u0412 \u043b\u043e\u043a\u0430\u0446\u0438\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0433\u0430\u0441\u0438\u043c \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e:location \/ {    proxy_pass         http:\/\/127.0.0.1:8096;    proxy_http_version 1.1;    proxy_set_header   Connection &#171;&#187;;    proxy_buffering    off;    proxy_read_timeout 3600s;    chunked_transfer_encoding on;}TLS \u2014 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 certbot \u043d\u0430 \u043f\u043e\u0434\u0434\u043e\u043c\u0435\u043d. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 https:\/\/mcp.zinin-shturbin.com\/mcp.\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430: \u0440\u0443\u043a\u043e\u043f\u043e\u0436\u0430\u0442\u0438\u0435 \u0440\u0443\u043a\u0430\u043c\u0438\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0442\u0430\u0449\u0438\u0442\u044c \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u0432 Claude, \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e \u0441\u0435\u0440\u0432\u0435\u0440 \u0432\u0436\u0438\u0432\u0443\u044e \u043e\u0431\u044b\u0447\u043d\u044b\u043c curl. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 initialize, \u043b\u043e\u0432\u043b\u044e mcp-session-id \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430:curl -sD &#8212; -X POST https:\/\/mcp.zinin-shturbin.com\/mcp \\  -H &#8216;Content-Type: application\/json&#8217; \\  -H &#8216;Accept: application\/json, text\/event-stream&#8217; \\  -d &#8216;{&#171;jsonrpc&#187;:&#187;2.0&#8243;,&#187;id&#187;:1,&#187;method&#187;:&#187;initialize&#187;,       &#171;params&#187;:{&#171;protocolVersion&#187;:&#187;2024-11-05&#8243;,&#187;capabilities&#187;:{},                 &#171;clientInfo&#187;:{&#171;name&#187;:&#187;curl&#187;,&#187;version&#187;:&#187;1&#8243;}}}&#8217;\u0412 \u043e\u0442\u0432\u0435\u0442\u0435 \u2014 serverInfo \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u2014 mcp-session-id. \u0421 \u044d\u0442\u0438\u043c session-id \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0451\u0440\u0433\u0430\u0435\u0448\u044c tools\/list \u0438 \u0436\u0438\u0432\u043e\u0439 tools\/call. \u041a\u043e\u0433\u0434\u0430 search_glossary \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443 \u00abMCP\u00bb \u0432\u0435\u0440\u043d\u0443\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u043e\u0439, \u0441\u0442\u0430\u043b\u043e \u044f\u0441\u043d\u043e: \u0432\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0430 (TLS \u2192 nginx \u2192 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u2192 streamable-http) \u0434\u0435\u0440\u0436\u0438\u0442.\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 Claude\u0412 Claude (claude.ai \u0438\u043b\u0438 Claude Desktop): Settings \u2192 Connectors \u2192 Add custom connector \u2192 \u0438\u043c\u044f \u0438 URL https:\/\/mcp.zinin-shturbin.com\/mcp. \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u0443\u0442 \u043b\u0438\u0448\u043d\u044f\u044f (\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0435, \u0447\u0442\u0435\u043d\u0438\u0435) \u2014 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u043c.\u0427\u0442\u043e \u0432 \u0438\u0442\u043e\u0433\u0435\u0417\u0430 \u0432\u0435\u0447\u0435\u0440 \u2014 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 MCP-\u0441\u0435\u0440\u0432\u0435\u0440: FastMCP \u043f\u043b\u044e\u0441 Streamable HTTP, \u0447\u0435\u0442\u044b\u0440\u0435 read-only \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438, Docker \u0437\u0430 nginx \u0441 TLS. \u0413\u0440\u0430\u0431\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0440\u0436\u0443 \u0432 \u0433\u043e\u043b\u043e\u0432\u0435 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435:endpoint \/mcp \u0431\u0435\u0437 \u0441\u043b\u044d\u0448\u0430;\u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0435 \u0441\u0440\u0430\u0437\u0443;network_mode: bridge, \u043a\u043e\u0433\u0434\u0430 \u0443 Docker \u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0434\u0441\u0435\u0442\u0438;healthcheck \u0447\u0435\u0440\u0435\u0437 TCP-connect \u0432\u043c\u0435\u0441\u0442\u043e HTTP-\u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a \/mcp;proxy_buffering off \u043f\u043e\u0434 SSE-\u043f\u043e\u0442\u043e\u043a.\u041d\u0430\u0447\u0438\u043d\u0430\u0439\u0442\u0435 \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0437\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u2014 \u043e\u0434\u043d\u0430-\u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0414\u043e\u0432\u043e\u0434\u0438\u0442\u0435 \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0434\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0439\u0442\u0435: \u0442\u0430\u043a \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u043e, \u0433\u0434\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442, \u0430 \u0433\u0434\u0435 \u043e\u043d \u043b\u0438\u0448\u043d\u0438\u0439.\u0421\u0430\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 \u043e\u0442\u0434\u0430\u0451\u0442 \u043c\u043e\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0418\u0418-\u0442\u0435\u0440\u043c\u0438\u043d\u043e\u0432 \u2014 \u043e\u043d \u043e\u0442\u043a\u0440\u044b\u0442, \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u0438\u0441\u0442\u0430\u0442\u044c. \u0422\u0430\u043a\u0438\u0435 \u0448\u0442\u0443\u043a\u0438 \u044f \u0441\u043e\u0431\u0438\u0440\u0430\u044e \u0441 \u0444\u0430\u0443\u043d\u0434\u0435\u0440\u0430\u043c\u0438 \u0432 \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0418\u0418 \u2014 \u0442\u0435\u043c\u0438, \u043a\u043e\u043c\u0443 \u0418\u0418 \u043d\u0443\u0436\u0435\u043d \u0436\u0438\u0432\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u041b\u043e\u0432\u0438\u043b\u0438 \u0433\u0440\u0430\u0431\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0443\u0442 \u043d\u0435\u0442, \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044e.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1042470\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-482006","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=482006"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/482006\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=482006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=482006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=482006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}