Files

43 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: ai.mcp.index
title: MCP 模型上下文协议
type: index
domain: ai
stack: [mcp]
tags: [MCP, 工具, 集成]
week: [10, 11]
---
# MCP 模型上下文协议
把工具和数据接入 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/)