开发环境
此项目使用 紫外线 用于依赖性管理和执行。
需求
- Python 3.13+
- 紫外线
设置
uv sync
All examples and workflows assume:
- Dependencies are managed via `uv`
- Scripts are executed using `uv run`
### Common Commands
- **Start the MCP server:**
`uv run server.py`
- **Authenticate (First time only):**
`uv run auth_bootstrap.py`
- **Manual Verification (Send Real Email):**
`uv run scripts/manual_send.py`
- **Run HTTP Test Client:**
`uv run scripts/test_client.py` (Requires server running in another terminal)
- **Run tests:**
`uv run pytest`
## Project Structure/ ├── server.py # Entry point (MCP Server) ├── auth_bootstrap.py # Initial Authentication Script ├── .env # Secrets (see .env.example) ├── scripts/ # Helper scripts │ ├── manual_send.py # Independent interactive test │ └── test_client.py # HTTP client for checking server ├── tools/ # Logic & Tools Implementation │ ├── auth.py # MSAL Integration │ ├── email_flow.py # Prepare/Confirm tools │ ├── graph_client.py # Microsoft Graph API wrapper │ └── ... └── tests/ # Automated Tests
此项目不支持 `pip`, `virtualenv`,或直接 `python` 执行。