Content
# Enterprise Platform MCP
This directory is used for developing the "Daily Report Filling MCP Tool" for the company's digital platform.
## Installed Content
- Python virtual environment: `.venv`
- Playwright: for browser automation, clicks, inputs, and screenshots
- FastMCP / MCP: for exposing capabilities to AI Agents
- python-dotenv: for reading local environment variables such as account and password
- PyYAML: for reading two sets of fixed daily report template configurations
## Suggested Directory Structure
- `src/`: for MCP services and automation scripts
- `config/`: for platform URLs, daily report templates, and field rules
- `screenshots/`: for saving confirmation screenshots and error screenshots
- `logs/`: for saving operation logs
## Activating Virtual Environment
```powershell
& ".\.venv\Scripts\Activate.ps1"
```
## Checking Dependencies
```powershell
python -m pip list
python -m playwright --version
```
## Local Account Configuration
The login address is already built-in and usually does not require configuration.
Each device only needs to copy `.env.example` to `.env`, then fill in your own:
```text
PLATFORM_USERNAME=Your Employee ID
PLATFORM_PASSWORD=Your Password
```
`.env` is ignored by `.gitignore`, do not share it with others.
## MCP Service
MCP Service Entry:
```powershell
& ".\.venv\Scripts\python.exe" ".\src\mcp_server.py"
```
Available Tools:
- `fill_daily_report_draft`: fills in the daily report draft, does not submit, returns the confirmation screenshot path.
- `submit_daily_report`: submits the current draft after user confirmation, does not return the submission screenshot.
- `cancel_daily_report`: closes the browser session when the user does not confirm.
Example MCP configuration see `mcp.json`.