dify-canvas-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dify_instancesA | 列出已配置的 Dify 实例(别名、站点、调试端口、默认项)。其他工具的 alias 省略时使用默认实例。 |
| dify_setupA | 添加或修改一个 Dify 实例。只需要 alias 和站点地址(例如 https://dify.example.com);凭据是本机 Chrome 的登录态,不需要账号密码。 |
| dify_browser_statusA | 查看当前可用的浏览器通道:chrome-pool、日常 Chrome 的调试端口、专用 Chrome,以及能否用 autoConnect 直接连日常 Chrome(零重启)。不会触发 Chrome 授权。 |
| dify_browser_launchA | 启动一个专用的 Chrome 窗口(独立配置目录,不动日常浏览器),带调试端口并打开 Dify。首次需要在这个窗口里登录 Dify;之后直接复用。 |
| dify_appsA | 列出 Dify 应用(id、名称、类型、更新时间,支持分页和名称过滤)。其他工具的 app 参数可以直接写应用名称。 |
| dify_canvas_getA | 读取工作流草稿。不传 nodeId 返回节点索引(id/标题/类型/备注/坐标)与草稿 hash;传 nodeId 返回该节点完整定义(代码、提示词、变量、坐标)。 |
| dify_canvas_patchA | 修改草稿中的已有节点(按 id 合并 data、整块替换 data、改坐标)。默认 dry-run 只返回 diff;apply=true 才写回。写回前自动备份并自检(悬空边、自环、default_value 类型、Code 节点参数一致),写后刷新页面并核对渲染。 |
| dify_canvas_publishA | 发布当前草稿并回读发布态 hash 核对。发布立即上线,调用前先向用户确认。 |
| dify_runA | 在草稿上试运行一次(不发布)。返回工作流状态、实际执行的节点顺序、失败节点与最终回复。 |
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 9 tools
Each tool targets a clearly distinct resource or lifecycle stage: instance configuration, browser channel status/launch, app listing, draft read/patch/publish, and draft test run. The status-versus-launch and read-versus-patch-versus-publish boundaries are explicit. No two tools appear to perform the same action.
All names use a consistent snake_case style with the dify_ prefix and meaningful resource grouping such as browser_ and canvas_. However, the convention is not uniformly verb_noun: some are noun-only list-style names (dify_instances, dify_apps), while others are verb-based (dify_run) or resource_action combinations. This is readable and mostly predictable, with only minor deviations.
Nine tools is well-scoped for a Dify canvas management server. Instance setup, browser handling, app discovery, draft inspection, editing, publishing, and test running each earn their place without redundant coverage.
The surface covers listing apps, reading drafts, modifying existing nodes, publishing, running drafts, and supporting instance/browser setup. However, there are notable authoring gaps: no tool creates or deletes canvas nodes, and dify_canvas_patch explicitly only modifies existing nodes. Creating new apps/workflows is also absent, limiting full lifecycle coverage.