dsh-chatops-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TOKEN | No | Alias for MCP_USER_TOKEN. | |
| CHATOPS_DEBUG | No | Set to `1` to emit exec diagnostics to stderr. | |
| MCP_USER_TOKEN | No | Feishu Project (Meego) MCP user token. Required for the `meego` server; may also be supplied as MEEGO_MCP_USER_TOKEN or MCP_TOKEN, or via the Meego credential env file. | |
| CHATOPS_DWS_BIN | No | Override path to the `dws` executable. | |
| CHATOPS_LARK_BIN | No | Override path to the `lark-cli` executable. | |
| CHATOPS_NODE_BIN | No | Path to the Node.js binary written into generated MCP client config. | |
| CHATOPS_CACHE_DIR | No | Directory for the schema cache. | %USERPROFILE%\.dsh\chatops\cache |
| CHATOPS_MAX_TOOLS | No | Maximum number of dynamic tools per surface. | 30 |
| CHATOPS_MEEGO_BIN | No | Override path to the official `@lark-project/mcp` server entry point. | |
| CHATOPS_TOOL_EFFECT | No | `read` exposes only read-only tools; `all` or `any` exposes all tools including write tools. | all |
| CHATOPS_CACHE_TTL_MS | No | Schema cache TTL in milliseconds (default 8 hours). | 28800000 |
| CHATOPS_MEEGO_DOMAIN | No | Override the `--domain` used for the Meego MCP server. | |
| MEEGO_MCP_USER_TOKEN | No | Alias for MCP_USER_TOKEN. | |
| CHATOPS_TOOL_PRIORITY | No | Comma-separated priority keywords used to order tools within a product. | |
| CHATOPS_TOOL_PRODUCTS | No | Comma-separated product whitelist to materialize. `auto` uses the built-in defaults, `none` leaves only meta/manual tools, and a comma list specifies products exactly. | auto |
| CHATOPS_CLI_TIMEOUT_MS | No | Timeout for a single CLI invocation in milliseconds. | 60000 |
| CHATOPS_MEEGO_ENV_FILE | No | Path to the Meego credential env file. | %USERPROFILE%\.dsh\chatops\meego\.env |
| CHATOPS_WARM_TIMEOUT_MS | No | Maximum time to wait for catalog warm-up during initialize. | 30000 |
| CHATOPS_CONNECTION_STORE | No | Path to the connection store used to restore MCP client entries across restarts. | %USERPROFILE%\.dsh\chatops\connections.json |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
DingTalk tools backed by the dws CLI and the existing local login. Tools act as the logged-in user; write tools change real data on the tenant.
The tool list is generated from the CLI own catalog, so it follows CLI upgrades automatically:
dingtalk_catalog one call lists every dws command that exists right now (filter by product/query/effect).
dingtalk_schema full flag list, types and required flags for one command.
dingtalk_cli raw escape hatch: {"argv": ["..."]} runs any dws subcommand verbatim.
Only a subset is materialised as individual tools (no product enabled (set CHATOPS_TOOL_PRODUCTS to "auto" or a product list)). If a command is not in the tool list, discover it with dingtalk_catalog and run it through dingtalk_schema / dingtalk_cli.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dingtalk_catalogA | List what the DingTalk CLI can do right now, straight from the CLI's own catalog. Pass no filters to get per-product counts, then narrow with product / query / effect. This is the discovery entry point: if a command exists here it can be run through dingtalk_cli or dingtalk_schema, even when it is not materialised as its own tool. |
| dingtalk_schemaA | Show the full parameter schema of one DingTalk command: every CLI flag, its type, whether it is required, plus the command description and examples. Use it before running an unfamiliar or write command so you send the right flags. |
| dingtalk_whoamiA | Show the DingTalk identity this MCP server is authenticated as (corp, user, departments, email). |
| dingtalk_user_searchB | Search DingTalk directory users by name, nickname, or phone keyword. |
| dingtalk_user_getB | Fetch DingTalk user profiles by userId list. |
| dingtalk_dept_membersC | List members of one or more DingTalk departments. |
| dingtalk_send_messageA | Send a DingTalk message to a group conversation, a user, or an open conversation id. Exactly one target is required. |
| dingtalk_list_messagesC | List messages of a DingTalk conversation around a reference time. --time is required by dws ("yyyy-MM-dd HH:mm:ss"). |
| dingtalk_list_groupsC | List DingTalk group conversations the current user belongs to. |
| dingtalk_calendar_eventsB | List DingTalk calendar events in a time window. Timestamps are ISO-8601 (e.g. 2026-11-02T00:00:00+08:00). |
| dingtalk_calendar_createC | Create a DingTalk calendar event. start/end are ISO-8601 with an explicit offset. |
| dingtalk_todo_listC | List DingTalk todo tasks for the current user. |
| dingtalk_todo_createC | Create a DingTalk todo task and assign it to executors. |
| dingtalk_approval_pendingC | List DingTalk OA approval instances waiting for the current user. |
| dingtalk_approval_detailC | Fetch one DingTalk OA approval instance by instanceId. |
| dingtalk_drive_listC | List entries of a DingTalk drive folder (workspace/folder node). |
| dingtalk_cliA | Escape hatch: run an arbitrary dws subcommand and return its JSON output. Pass the argv array without the binary name, e.g. ["contact","dept","get-info","--dept-id","123"]. Output is always requested as --format json. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 17 tools
Most tools map to a distinct resource+action (todo_create vs todo_list, approval_pending vs approval_detail, user_search vs user_get, calendar_events vs calendar_create), so selection is usually obvious. The only real fuzzy zone is the discovery trio catalog/schema/cli, where the escape-hatch tool conceptually overlaps with every other tool, but the descriptions clearly delineate 'what exists', 'what params', and 'run arbitrary'.
All names are snake_case with a consistent dingtalk_ prefix, but the ordering convention is mixed: noun_verb (todo_create, drive_list, user_get, calendar_create) alongside verb_noun (list_messages, list_groups, send_message) and bare nouns (dept_members, calendar_events). Readable, but an agent cannot predict whether a new tool will be 'list_X' or 'X_list'.
17 tools spread across six or seven real domains (contacts, chat, calendar, todo, approvals, drive, CLI meta), so each grouping earns its place rather than being redundant. It sits at the upper edge of comfortable, but the breadth of the domain justifies it better than a typical over-stuffed 17-tool server.
Core read/write workflows are covered: messaging send/list/groups, todo and calendar create+list, approvals list+detail, drive browsing, identity and directory lookup. Gaps exist (no todo complete/update, no calendar update/delete, no approval approve/reject action, no drive upload), but the explicit dingtalk_catalog/schema/cli escape hatch lets an agent reach any uncovered dws subcommand.