dingtalk_configure
Configure DingTalk webhook settings to integrate Claude Code with DingTalk robot notifications for sending task alerts and messages to groups.
Instructions
Configure DingTalk webhook settings
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| webhook | Yes | DingTalk webhook URL with access token | |
| secret | No | Optional secret for signature verification | |
| keywords | No | Optional keywords for security validation |
Implementation Reference
- src/index.ts:254-264 (handler)The handler function that executes the dingtalk_configure tool. It creates a new DingTalkClient instance with the provided configuration (webhook, secret, keywords) and returns a success message.private async handleConfigure(config: DingTalkConfig) { this.dingTalkClient = new DingTalkClient(config); return { content: [ { type: 'text', text: '✅ DingTalk client configured successfully', }, ], }; }
- src/index.ts:65-83 (schema)Input schema definition for the dingtalk_configure tool, specifying properties for webhook (required), secret, and keywords.inputSchema: { type: 'object', properties: { webhook: { type: 'string', description: 'DingTalk webhook URL with access token', }, secret: { type: 'string', description: 'Optional secret for signature verification', }, keywords: { type: 'array', items: { type: 'string' }, description: 'Optional keywords for security validation', }, }, required: ['webhook'], },
- src/index.ts:62-84 (registration)Registration of the dingtalk_configure tool in the ListTools response, including name, description, and input schema.{ name: 'dingtalk_configure', description: 'Configure DingTalk webhook settings', inputSchema: { type: 'object', properties: { webhook: { type: 'string', description: 'DingTalk webhook URL with access token', }, secret: { type: 'string', description: 'Optional secret for signature verification', }, keywords: { type: 'array', items: { type: 'string' }, description: 'Optional keywords for security validation', }, }, required: ['webhook'], }, },
- src/index.ts:206-207 (registration)Switch case in CallToolRequestSchema handler that routes dingtalk_configure calls to the handleConfigure method.case 'dingtalk_configure': return await this.handleConfigure(args as unknown as DingTalkConfig);