mcpField
D
dingtalk-connection

dingtalk-connection

github.com/xiaomingxProductivity7521 installsUpdated 39w ago
Repository

About dingtalk-connection

A bridge that forwards DingTalk bot messages to Clawdbot Gateway for users connecting DingTalk with an AI agent workflow. It receives messages through a webhook and connects to the Gateway over a local WebSocket.

Key features

  1. 01Receive DingTalk webhook messages
  2. 02Connect to Gateway over local WebSocket
  3. 03Configure bot name and ID
  4. 04Set listening port and path
  5. 05Support macOS auto-start

Use cases

  1. 01Route DingTalk bot messages to Clawdbot
  2. 02Send DingTalk conversations to an AI agent

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/xiaomingx/moltbot-connector-feishu-dingtalk --skill dingtalk-connection

After installing, type/dingtalk-connectionin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.env.example
bridge.py
pyproject.toml
README.md
setup_service.py

Details

From the project README

DingTalk Bridge

Bridge DingTalk bot messages to Clawdbot Gateway over a local WebSocket connection.

Architecture

DingTalk user -> DingTalk cloud -> webhook (bridge.py) -> Clawdbot Gateway -> AI agent

Setup

1. Create DingTalk bot

Create a bot that can send outgoing webhooks and set the callback URL to your public endpoint.

2. Run bridge
cd <skill-dir>/dingtalk-connection
uv sync
DINGTALK_SIGNING_SECRET=your_secret uv run python bridge.py
3. Auto-start (macOS)
uv run python setup_service.py
launchctl load ~/Library/LaunchAgents/com.clawdbot.dingtalk-bridge.plist

Environment variables

VariableRequiredDefault
DINGTALK_PORT—3210
DINGTALK_PATH—/dingtalk
DINGTALK_SIGNING_SECRET——
DINGTALK_BOT_ID——
DINGTALK_BOT_NAME——
CLAWDBOT_CONFIG_PATH—~/.clawdbot/clawdbot.json
CLAWDBOT_AGENT_ID—main
DINGTALK_THINKING_THRESHOLD_MS—2500

Comments

Markdown supported