translation/translated/documents/course/02-agent-tools-mcp/01-introduction-to-mcp.md

16 lines
631 B
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.

# 安装和设置 MCP
在本课中,我们将学习如何使用 MCP模型上下文协议服务器增强您的 Mastra 代理。MCP 允许您的代理访问广泛的外部工具和服务,而无需为每个工具编写自定义工具函数。
## 什么是 MCP
MCP模型上下文协议是一种允许 AI 模型通过一致接口访问外部工具和服务的标准。通过将 MCP 服务器与您的 Mastra 代理集成,您可以为其提供对以下内容的访问:
- Gmail 等电子邮件服务
- GitHub 等代码仓库
- 社交媒体平台
- 天气信息
- 新闻来源
- 文件系统
- 以及更多服务