一个探索"模型背景协议"(MCP)的实践存储器,包括其架构,客户端,服务器,工具,资源,提示,以及与AI代理的集成.
概览
一个实践存储器,探索并实施使用Python和FastMCP. - MCP架构:主机、客户端和服务器-MCP 工具、资源和提示 - JSON-RPC 2.0 - STIO和可流式HTTP - Async 编程 - 进度报告和长跑任务 - JWT 认证 - 用Gmail SMTP发送邮件。 - 通过MCP工具整合电子邮件功能。 使用 FastAPI 的 JWT 令牌生成 。 - 受保护的 MCP 服务器执行。 - 在逗号工作区搜索页面。 - 创建新的逗号页面。 - 与概念API融合. - Python-FastMCP-FastAPI-HTTPX-Notion API-Gmail SMTP-Uvicorn和s-on学习和实施MCP概念,集成,认证机制和AI代理连接.
概述(AI 翻译)
使用 Python 和 FastMCP 来探索和执行** 模式背景协议(MCP)** 的操作存储器。
主题覆盖
- MCP架构:主机、客户端和服务器
- MCP工具、资源和提示
- JSON -RPC 2.0 - (美国英语)
- STIO和可流式HTTP
- 同步编程
- 进度报告和长跑任务
- JWT认证
□ 项目和执行
- 电子邮件 MCP 服务器
- 用Gmail SMTP发送邮件。
- 通过MCP工具整合电子邮件功能。
- JWT MCP认证
- JWT 代号生成使用 FastAPI.
- 基于托肯的认证。
- 受保护的 MCP 服务器执行。
- 概念 MCP 服务器
- 在逗号工作区搜索页面。
- 创建新的逗号页面。
- 与概念API融合.
□ 技术堆栈
- 蟒蛇
- 快速磁共振
- 快递
- HTTPX - 电话
- 概念API
- Gmail SMTP (英语).
- 乌维克 并不断学习和执行MCP概念、集成、认证机制和AI代理连接.
本页由 AI 翻译,技术细节请以原文为准。
README
Model Context Protocol (MCP)
A hands-on repository exploring and implementing the Model Context Protocol (MCP) using Python and FastMCP.
Topics Covered
- MCP Architecture: Host, Client and Server
- MCP Tools, Resources and Prompts
- JSON-RPC 2.0
- STDIO and Streamable HTTP
- Async Programming
- Progress Reporting and Long-Running Tasks
- JWT Authentication
Projects & Implementations
1. Email MCP Server
- Send emails using Gmail SMTP.
- Integrate email functionality through MCP tools.
2. JWT Authentication for MCP
- JWT token generation using FastAPI.
- Token-based authentication.
- Protected MCP server implementation.
3. Notion MCP Server
- Search pages in a Notion workspace.
- Create new Notion pages.
- Integration with the Notion API.
Tech Stack
- Python
- FastMCP
- FastAPI
- HTTPX
- Notion API
- Gmail SMTP
- Uvicorn ands-on learning and implementation of MCP concepts, integrations, authentication mechanisms and AI agent connectivity.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →