模型上下文协议‌ (Model Context Protocol, MCP)

模型上下文协议‌ {Model Context Protocol, MCP}

Model Context Protocol, MCP
https://github.com/modelcontextprotocol

1. 模型上下文协议‌ (Model Context Protocol, MCP)

https://github.com/modelcontextprotocol

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
Model Context Protocol (MCP) 是一套让大模型 “统一使用工具” 的标准协议,用于连接 AI 应用与外部数据源和工具。可以把 MCP 理解成 AI 应用的 “统一扩展接口”:同一个 MCP Server,可以在 Cursor、Claude Code 等不同支持 MCP 的产品中使用。统一的协议规范让 AI 模型能够标准化地访问各种数据源和工具。从文件系统到数据库,从 API 到本地服务,一套协议解决所有上下文集成需求。

MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.
模型上下文协议 (Model Context Protocol, MCP) 是由 Anthropic 推出的开源协议,旨在实现大语言模型与外部数据源和工具的集成,用来在大模型和数据源之间建立安全双向的连接。该协议通过相同的协议同时处理本地资源 (例如数据库、文件、服务等) 和远程资源 (例如 Slack 或 GitHub 等 API)。

Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect electronic devices, MCP provides a standardized way to connect AI applications to external systems.
AI 应用的 USB-C 接口 Model Context Protocol (MCP)

MCP 是一个标准化协议,旨在通过提供结构化的上下文管理来增强大型语言模型 (LLMs) 与应用程序之间的交互,它使 LLM 应用程序与外部数据源和工具之间能够无缝集成。

在这里插入图片描述

1.1. Zread MCP

https://zread.ai/mcp

Zread MCP 当前提供三类原子能力,对应三个工具。你可以在对话中显式调用,也可以由客户端自动选择。

  • search_doc:在 Github 仓库的文档内进行搜索

  • get_repo_structure:查看 Github 仓库或仓库子目录的结构

  • read_file:读取 Github 仓库中单个文件的完整内容

Zread MCP 支持两种接入方式,方便不同客户端使用:

  • SSE (Server-Sent Events)

URL (示例):https://open.bigmodel.cn/api/mcp/zread/sse?Authorization=glm_api_key

  • Streamable HTTP

URL (示例):https://open.bigmodel.cn/api/mcp/zread/mcp

References

[1] Yongqiang Cheng (程永强), https://yongqiang.blog.csdn.net/
[2] Model Context Protocol 中文, https://mcpcn.com/
[3] Zread MCP, https://zread.ai/mcp
[4] 模型上下文协议‌ (Model Context Protocol, MCP), https://mp.weixin.qq.com/s/PDkhCLR_-tNZrKW9KPfLcw

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yongqiang Cheng

梦想不是浮躁,而是沉淀和积累。

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值