阶段4(上):LangGraph、Function Calling、MCP(SDK 2.x)、Agent 评测与运维、Agent 设计专题;run_examples 设置 RUN_EXAMPLES=1

This commit is contained in:
Shikui Wang committed 2026-10-23 16:06:54 +08:00
1 parent 6650f7eb6d
commit caaec830b3
38 files changed
+3515 -64

No files matched your search

+30 -3
View File
@@ -4,12 +4,39 @@ title: MCP 模型上下文协议
type: index
domain: ai
stack: [mcp]
tags: []
tags: [MCP, 工具, 集成]
week: [10, 11]
---
# MCP 模型上下文协议
协议概念、tools / resources / prompts、服务端与客户端。
把工具和数据接入 AI 应用的开放协议。BOSS直聘 2026-10-23 的调研中约 9 个岗位提到 MCP / Function Calling。目标:能写一个 MCP 服务、写测试、接入 Cursor 和自己的 Agent,并讲清楚安全设计。
> 本专题建设中:课程、企业场景、面试题和示例代码会陆续补充。
## 学习路线
| 顺序 | 课程 | 级别 | 预计 |
| --- | --- | --- | --- |
| 1 | [MCP 协议和服务开发:tools / resources / prompts、传输方式、接入客户端](01-protocol-server.md) | 进阶 | 3 小时 |
## 企业场景
- [企业内部 MCP 服务:统一接入、鉴权、审计和版本管理](scenarios/internal-tools-gateway.md)
## 面试题
- [MCP 面试题](interview.md)
## 示例代码
- [examples/kb-server](examples/kb-server/):知识库 + 工单 MCP 服务(MCP Python SDK 2.x:tools、resources、prompts、pydantic 参数校验、幂等),带进程内客户端测试
## 在 16 周计划中
- [第 10 周:工具调用循环和 MCP](../../../plan/week10-agent-m1-tools-mcp.md)、[第 11 周:接入 LangGraph](../../../plan/week11-agent-m2-langgraph.md)
## 官方资料
协议和 SDK 更新很快,以官方文档为准:
- 协议:https://modelcontextprotocol.io/
- Python SDK:https://py.sdk.modelcontextprotocol.io/ (1.x → 2.x 迁移指南:https://py.sdk.modelcontextprotocol.io/v2/migration/)