Content
# wecom-driver-mcp
WeCom Micro-disk MCP Server, based on [MCP (Model Context Protocol)](https://modelcontextprotocol.io/), supports uploading local files to WeCom micro-disk via stdio.
## Features
- **upload_file** — Upload local files to WeCom micro-disk, return file ID and share link
## Quick Start
### 1. Get Binary
Download the binary file for the corresponding platform from the [Releases](https://github.com/kurok1/wecom-driver-mcp/releases) page, or compile it yourself:
```bash
go build -o wecom-driver-mcp ./cmd/mcp-server
```
### 2. Configure MCP
Add the following configuration in Claude Code or other MCP clients:
```json
{
"mcpServers": {
"wecom-driver": {
"command": "/path/to/wecom-driver-mcp",
"args": [
"--corp-id=YOUR_CORP_ID",
"--corp-secret=YOUR_CORP_SECRET",
"--space-id=YOUR_SPACE_ID"
]
}
}
}
```
### Startup Parameters
| Parameter | Description | Required |
|------|------|------|
| `--corp-id` | Corp ID | Yes |
| `--corp-secret` | App Secret | Yes |
| `--space-id` | Micro-disk Space ID | Yes |
## Usage Example
Upload local file:
```json
{
"tool": "upload_file",
"arguments": {
"file_path": "/path/to/file.pdf"
}
}
```
Return value:
```json
{
"file_id": "File ID",
"file_share_url": "File share link"
}
```
## Project Structure
```
wecom-driver-mcp/
├── cmd/
│ └── mcp-server/
│ └── main.go # Entry
├── internal/
│ ├── config/
│ │ └── config.go # Command-line parameter parsing
│ ├── server/
│ │ └── server.go # MCP Server and Tool registration
│ └── wecom/
│ └── client.go # WeCom API client
├── .github/
│ └── workflows/
│ └── release.yml # CI/CD workflow
├── go.mod
└── go.sum
```
## Build
```bash
go build -o wecom-driver-mcp ./cmd/mcp-server
```
## Release
Push tag and GitHub Actions will automatically build multi-platform binaries and release:
```bash
git tag v0.1.0
git push origin v0.1.0
```
Supported platforms:
- macOS (amd64 / arm64)
- Linux (amd64 / arm64)
- Windows (amd64)
## License
MIT