Content
# dingtalk-mcp
This project is a DingTalk MCP (Message Connector Protocol) service that provides API interfaces for interacting with DingTalk enterprise applications. The project is developed in Go language and supports functionalities such as employee information queries and message sending.
# Installation
```bash
go install github.com/zhaoyunxing92/dingtalk-mcp@latest
```
## Configure MCP Service
> Create an application on the [DingTalk Open Platform](https://open-dev.dingtalk.com) and configure permissions for the application.
```json
{
"mcpServers": {
"dingtalk": {
"command": "dingtalk-mcp", // If the command is not found, you can place the compiled executable file in your PATH.
"args": [],
"env": {
"DINGTALK_AGENT_ID": "Your applied agentId",
"DINGTALK_KEY": "Application key",
"DINGTALK_SECRET": "Application secret"
},
"disabled": false,
"autoApprove": [
"get_employees_count",
"get_simple_employees",
"recall_corp_conversation",
"send_corp_conversation",
"send_markdown_corp_conversation"
],
"timeout": 60
}
}
}
```
## Feature List
| API Name | Description |
|----------|-------------|
| get_employees_count | Get the number of employees in the enterprise |
| get_simple_employees | Get basic information of the enterprise's employees (only retrieves people from the root department) |
| recall_corp_conversation | Recall messages sent to employees |
| send_corp_conversation | Send text messages to enterprise users |
| send_markdown_corp_conversation | Send messages in Markdown format to enterprise users |