调用钉钉开放接口,获取访问令牌、部门列表和用户信息,并按姓名搜索用户。
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add wllcnm -- docker run -i --rm -e 'DINGDING_APP_KEY=你的AppKey' -e 'DINGDING_APP_SECRET=你的AppSecret' 'ghcr.io/你的用户名/dingding-mcp:latest'~/.codex/config.toml
[mcp_servers.wllcnm]
command = "docker"
args = ["run", "-i", "--rm", "-e", "DINGDING_APP_KEY=你的AppKey", "-e", "DINGDING_APP_SECRET=你的AppSecret", "ghcr.io/你的用户名/dingding-mcp:latest"]
# codex mcp add wllcnm -- docker run -i --rm -e 'DINGDING_APP_KEY=你的AppKey' -e 'DINGDING_APP_SECRET=你的AppSecret' 'ghcr.io/你的用户名/dingding-mcp:latest'~/.cursor/mcp.json
{
"mcpServers": {
"wllcnm": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGDING_APP_KEY=你的AppKey",
"-e",
"DINGDING_APP_SECRET=你的AppSecret",
"ghcr.io/你的用户名/dingding-mcp:latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"wllcnm": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGDING_APP_KEY=你的AppKey",
"-e",
"DINGDING_APP_SECRET=你的AppSecret",
"ghcr.io/你的用户名/dingding-mcp:latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"wllcnm": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGDING_APP_KEY=你的AppKey",
"-e",
"DINGDING_APP_SECRET=你的AppSecret",
"ghcr.io/你的用户名/dingding-mcp:latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"wllcnm": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGDING_APP_KEY=你的AppKey",
"-e",
"DINGDING_APP_SECRET=你的AppSecret",
"ghcr.io/你的用户名/dingding-mcp:latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"wllcnm": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DINGDING_APP_KEY=你的AppKey",
"-e",
"DINGDING_APP_SECRET=你的AppSecret",
"ghcr.io/你的用户名/dingding-mcp:latest"
]
}
}
}