依赖管理工具

一个使用uv进行依赖管理和项目执行的开发环境工具,支持Python 3.13+。

  • by Dante281
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 Dante281/mcp-graph-mailer

使用说明

开发环境

此项目使用 紫外线 用于依赖性管理和执行。

需求

  • 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
```text
/
├── 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 执行。