{"id":5203,"date":"2024-11-28T15:08:34","date_gmt":"2024-11-28T07:08:34","guid":{"rendered":"https:\/\/nullthought.net\/?p=5203"},"modified":"2024-11-28T15:08:36","modified_gmt":"2024-11-28T07:08:36","slug":"model-context-protocol%ef%bc%88mcp%ef%bc%89%ef%bc%9a%e6%a8%a1%e5%9e%8b%e4%b8%8a%e4%b8%8b%e6%96%87%e5%8d%8f%e8%ae%ae","status":"publish","type":"post","link":"https:\/\/nullthought.net\/?p=5203","title":{"rendered":"Model Context Protocol\uff08MCP\uff09\uff1a\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae"},"content":{"rendered":"\n<p>\u8fd1\u65e5\uff0c<strong><a href=\"https:\/\/www.anthropic.com\/news\/model-context-protocol\" target=\"_blank\" rel=\"noreferrer noopener\">Anthropic\u516c\u53f8\u53d1\u5e03\u4e86\u201c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u201d<\/a><\/strong>\u3002MCP\u7684\u76ee\u6807\u662f\u4e3aAI\u7cfb\u7edf\u4e0e\u6570\u636e\u6e90\u4e4b\u95f4\u5efa\u7acb\u7edf\u4e00\u3001\u5f00\u653e\u7684\u8fde\u63a5\u6807\u51c6\uff0c\u4ece\u800c\u6253\u7834\u73b0\u6709\u7684\u6570\u636e\u5b64\u5c9b\uff0c\u5e2e\u52a9AI\u6a21\u578b\u66f4\u52a0\u6709\u6548\u5730\u7406\u89e3\u548c\u5904\u7406\u6570\u636e\uff0c\u4e3a\u5f00\u53d1\u8005\u548c\u4f01\u4e1a\u5e26\u6765\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u4fbf\u5229\u6027\u3002<\/p>\n\n\n\n<p>\u968f\u7740AI\u52a9\u624b\u88ab\u8d8a\u6765\u8d8a\u5e7f\u6cdb\u5730\u91c7\u7528\uff0c\u884c\u4e1a\u5185\u5bf9\u6a21\u578b\u80fd\u529b\u8fdb\u884c\u4e86\u5927\u91cf\u6295\u8d44\uff0c\u53d6\u5f97\u4e86\u63a8\u7406\u548c\u8d28\u91cf\u65b9\u9762\u7684\u5feb\u901f\u8fdb\u5c55\u3002\u7136\u800c\uff0c\u5373\u4f7f\u662f\u6700\u5148\u8fdb\u7684AI\u6a21\u578b\uff0c\u4e5f\u56e0\u5176\u4e0e\u6570\u636e\u9694\u7edd\uff0c\u65e0\u6cd5\u4ece\u4fe1\u606f\u5b64\u5c9b\u548c\u65e7\u7cfb\u7edf\u4e2d\u83b7\u53d6\u6570\u636e\u800c\u53d7\u9650\u3002\u6bcf\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u6e90\u90fd\u9700\u8981\u7279\u5b9a\u7684\u5b9a\u5236\u5b9e\u73b0\uff0c\u8fd9\u4f7f\u5f97\u771f\u6b63\u7684\u4e92\u8054\u7cfb\u7edf\u96be\u4ee5\u6269\u5c55\u3002\u56e0\u6b64\uff0cMCP\u5e94\u8fd0\u800c\u751f\uff0c\u5b83\u4e3aAI\u7cfb\u7edf\u4e0e\u6570\u636e\u6e90\u4e4b\u95f4\u7684\u8fde\u63a5\u63d0\u4f9b\u4e86\u901a\u7528\u7684\u5f00\u653e\u6807\u51c6\uff0c\u66ff\u4ee3\u4e86\u5f53\u524d\u788e\u7247\u5316\u7684\u96c6\u6210\u65b9\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u66f4\u7b80\u6d01\u3001\u66f4\u53ef\u9760\u7684\u6570\u636e\u8bbf\u95ee\u9014\u5f84\u3002<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/modelcontextprotocol.io\/introduction\" target=\"_blank\" rel=\"noreferrer noopener\">MCP\u534f\u8bae<\/a><\/strong>\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u6784\u5efa\u5b89\u5168\u7684\u53cc\u5411\u8fde\u63a5\uff0c\u5c06\u4ed6\u4eec\u7684\u6570\u636e\u6e90\u4e0eAI\u5de5\u5177\u76f8\u8fde\u63a5\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7MCP\u670d\u52a1\u5668\u516c\u5f00\u4ed6\u4eec\u7684\u6570\u636e\uff0c\u6216\u8005\u6784\u5efaAI\u5e94\u7528\u7a0b\u5e8f\uff08\u5373MCP\u5ba2\u6237\u7aef\uff09\u6765\u8fde\u63a5\u8fd9\u4e9b\u670d\u52a1\u5668\u3002MCP\u6709\u4e09\u4e2a\u4e3b\u8981\u7ec4\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MCP\u89c4\u8303\u548cSDK<\/strong>\uff1a\u4e3a\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4e86\u7528\u4e8e\u5b9e\u73b0MCP\u7684\u5de5\u5177\u548c\u6307\u5357\u3002<\/li>\n\n\n\n<li><strong>Claude\u684c\u9762\u5e94\u7528\u4e2d\u7684\u672c\u5730MCP\u670d\u52a1\u5668\u652f\u6301<\/strong>\uff1a\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u5728\u672c\u5730\u6d4b\u8bd5\u548c\u8fd0\u884cMCP\u3002<\/li>\n\n\n\n<li><strong>\u5f00\u6e90MCP\u670d\u52a1\u5668\u5e93<\/strong>\uff1a\u5305\u62ec\u4e3a\u6d41\u884c\u4f01\u4e1a\u7cfb\u7edf\uff08\u5982Google Drive\u3001Slack\u3001GitHub\u3001Git\u3001Postgres\u548cPuppeteer\uff09\u6784\u5efa\u7684\u9884\u5236MCP\u670d\u52a1\u5668\uff0c\u4ee5\u4fbf\u5feb\u901f\u8fde\u63a5\u91cd\u8981\u6570\u636e\u96c6\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e00\u4e9b\u65e9\u671f\u91c7\u7528\u8005\uff0c\u5982Block\u548cApollo\uff0c\u5df2\u7ecf\u5c06MCP\u96c6\u6210\u5230\u4ed6\u4eec\u7684\u7cfb\u7edf\u4e2d\u3002\u6b64\u5916\uff0c\u5f00\u53d1\u5de5\u5177\u516c\u53f8\u5982Zed\u3001Replit\u3001Codeium\u548cSourcegraph\u4e5f\u5728\u4e0eMCP\u5408\u4f5c\uff0c\u4ee5\u6539\u8fdb\u4ed6\u4eec\u7684\u5e73\u53f0\uff0c\u4f7fAI\u4ee3\u7406\u80fd\u591f\u66f4\u597d\u5730\u68c0\u7d22\u4e0e\u7f16\u7801\u4efb\u52a1\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u4ece\u800c\u5728\u751f\u6210\u4ee3\u7801\u65f6\u66f4\u52a0\u7cbe\u51c6\u548c\u6709\u6548\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7MCP\uff0c\u5f00\u53d1\u4eba\u5458\u4e0d\u518d\u9700\u8981\u4e3a\u6bcf\u4e2a\u6570\u636e\u6e90\u7ef4\u62a4\u72ec\u7acb\u7684\u8fde\u63a5\u5668\u3002\u968f\u7740MCP\u751f\u6001\u7cfb\u7edf\u7684\u6210\u719f\uff0cAI\u7cfb\u7edf\u5728\u4f7f\u7528\u4e0d\u540c\u5de5\u5177\u548c\u6570\u636e\u96c6\u65f6\u5c06\u4fdd\u6301\u4e00\u81f4\u7684\u4e0a\u4e0b\u6587\uff0c\u53d6\u4ee3\u5f53\u524d\u788e\u7247\u5316\u7684\u96c6\u6210\u65b9\u5f0f\uff0c\u5b9e\u73b0\u66f4\u53ef\u6301\u7eed\u7684\u67b6\u6784\u3002<\/p>\n\n\n\n<p>\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u7acb\u5373\u5f00\u59cb\u6784\u5efa\u548c\u6d4b\u8bd5MCP\u8fde\u63a5\u5668\u3002Claude for Work\u7684\u73b0\u6709\u7528\u6237\u53ef\u4ee5\u5728\u672c\u5730\u6d4b\u8bd5MCP\u670d\u52a1\u5668\uff0c\u5c06Claude\u8fde\u63a5\u5230\u5185\u90e8\u7cfb\u7edf\u548c\u6570\u636e\u96c6\u3002\u4e0d\u4e45\u4e4b\u540e\uff0c\u5f00\u53d1\u4eba\u5458\u8fd8\u5c06\u80fd\u591f\u83b7\u5f97\u7528\u4e8e\u90e8\u7f72\u8fdc\u7a0bMCP\u670d\u52a1\u5668\u7684\u5de5\u5177\u5305\uff0c\u4ee5\u670d\u52a1\u4e8e\u6574\u4e2aClaude for Work\u7ec4\u7ec7\u3002<\/p>\n\n\n\n<p>Anthropic\u81f4\u529b\u4e8e\u5c06MCP\u6253\u9020\u6210\u4e00\u4e2a\u534f\u4f5c\u7684\u5f00\u6e90\u9879\u76ee\u548c\u751f\u6001\u7cfb\u7edf\uff0c\u5e76\u5e0c\u671b\u542c\u53d6\u6765\u81ea\u5f00\u53d1\u4eba\u5458\u548c\u4f01\u4e1a\u7684\u53cd\u9988\uff0c\u65e0\u8bba\u662fAI\u5de5\u5177\u5f00\u53d1\u8005\u3001\u5e0c\u671b\u5229\u7528\u73b0\u6709\u6570\u636e\u7684\u4f01\u4e1a\uff0c\u8fd8\u662f\u6b63\u5728\u63a2\u7d22\u524d\u6cbf\u6280\u672f\u7684\u65e9\u671f\u91c7\u7528\u8005\uff0c\u90fd\u88ab\u9080\u8bf7\u5171\u540c\u5efa\u8bbe\u9762\u5411\u672a\u6765\u7684\u3001\u5177\u5907\u4e0a\u4e0b\u6587\u611f\u77e5\u80fd\u529b\u7684AI\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"500\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">Here&#39;s a quick demo using the Claude desktop app, where we&#39;ve configured MCP:<br><br>Watch Claude connect directly to GitHub, create a new repo, and make a PR through a simple MCP integration.<br><br>Once MCP was set up in Claude desktop, building this integration took less than an hour. <a href=\"https:\/\/t.co\/xseX89Z2PD\">pic.twitter.com\/xseX89Z2PD<\/a><\/p>&mdash; Alex Albert (@alexalbert__) <a href=\"https:\/\/twitter.com\/alexalbert__\/status\/1861079874385203522?ref_src=twsrc%5Etfw\">November 25, 2024<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u65e5\uff0cAnthropic\u516c\u53f8\u53d1\u5e03\u4e86\u201c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u201d\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[3,8],"tags":[39,69],"class_list":["post-5203","post","type-post","status-publish","format-standard","hentry","category-it","category-tech","tag-ai","tag-engineering"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"NullThought","author_link":"https:\/\/nullthought.net\/?author=1"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/nullthought.net\/?cat=3\" rel=\"category\">IT<\/a> <a href=\"https:\/\/nullthought.net\/?cat=8\" rel=\"category\">Tech<\/a>","rttpg_excerpt":"\u8fd1\u65e5\uff0cAnthropic\u516c\u53f8\u53d1\u5e03\u4e86\u201c\u6a21\u578b\u4e0a\u4e0b\u6587\u534f\u8bae\uff08Model Context Protocol\uff0cMCP\uff09\u201d\u3002&hellip;","_links":{"self":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5203"}],"version-history":[{"count":1,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5203\/revisions"}],"predecessor-version":[{"id":5204,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/5203\/revisions\/5204"}],"wp:attachment":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}