跪拜 Guibai
← All articles
MCP · DeepSeek · AI Programming

One Sentence in DSH Draws a Full Architecture Diagram, and You Can Keep Editing It

By BruceVan ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

This combination collapses diagram creation and MCP management into natural-language requests, which lowers the barrier for teams that want agent-driven architecture documentation. It also shows how DSH's plugin ecosystem is maturing beyond toy examples toward practical, reviewable workflows.

Summary

DSH, DeepSeek's agent runtime, now supports a draw.io MCP server that generates architecture diagrams, AWS cloud diagrams, sequence diagrams, and more from a plain-language request. The output isn't a static image: it lands in an interactive draw.io canvas where you can drag boxes, edit text, and add shapes. The agent reads back your manual edits before its next change, so a human and an AI can take turns refining the same diagram. Version cards on the right let you restore any previous state, and every session's drawings are archived locally with the latest 50 retained.

Setting up the drawing tool is straightforward: use npx with no API key, add a YAML block to DSH's MCP manager, and adjust the startup timeout to 120 seconds because the first run downloads the package. The tool understands project-aware requests like "read this repo and draw its architecture," supports selection-based edits, uses real AWS/Azure/GCP/Kubernetes icon sets, and even auto-checks the rendered output for overlapping elements if the underlying model is multimodal.

Managing multiple MCP servers becomes tedious when you add several, so the community plugin dsh-market-pro adds a GUI layer on top of the official manager. It provides a curated directory of 100 MCPs (over half need no API key), lets you install and configure them from one page without touching YAML, and can resolve mcpServers JSON pasted from READMEs. A /market-pro command goes further: the agent inventories what you already have, recommends suitable servers, and walks through DSH's native approval flow before writing anything. Secrets are bound as credential references rather than pasted into chat.

Takeaways
— Running `npx @deepseek-ai/dsh web` starts DSH's web UI at http://127.0.0.1:3080; DSH is a developer preview that updates quickly.
— The Next AI Draw.io MCP server uses stdio transport, requires no API key, and needs DSH 0.2.2-rc.2 or higher.
— Add the server by configuring the MCP manager's servers section with npx and a startupTimeoutMs of 120000; configuration hot-reloads without restarting DSH.
— The DSH plugin `@next-ai-drawio/dsh` shows the draw.io preview in DSH's right sidebar instead of a separate browser tab.
— Drawings are saved to `~/.next-ai-drawio/`, keeping the latest 50 diagrams; each individual diagram keeps 20 recent versions that can be restored.
— You can export diagrams as .drawio, PNG, SVG, or .drawio.svg.
— The dsh-market-pro plugin adds a curated directory of 100 MCP servers, over half of which require no API key, and lets you install and manage them without editing YAML.
— The /market-pro command inventories existing MCPs, recommends new ones, and uses DSH's native approval flow before writing configuration; API keys are bound as credential references, not typed into chat.
— When connecting fails, check Node.js (18+ for the draw plugin), the preview port (default 6002, falls back within 6020), and npx download time (10-60 seconds on first add).
Conclusions

The biggest usability win is that the agent reads back your manual canvas edits before redrawing, which turns a one-shot generator into a collaborative editing loop.

Managing MCP servers is becoming the new dependency hell; a GUI and agent-mediated approval flow directly address the friction that grows after adding four or five servers.

The credential-reference pattern keeps secrets out of the chat transcript, a sensible design choice that other MCP tools could adopt.

The 100-MCP curated list with over half keyless suggests that the MCP ecosystem is standardizing around low-friction, npx-style servers.

Concepts & terms
MCP (Model Context Protocol)
An open protocol that lets a model call external tools via a server. Each MCP server wraps a capability, like drawing or searching, into a set of tools the client can invoke during a conversation.
DSH (DeepSeek Harness)
DeepSeek's open-source agent runtime framework with a plugin-based design. It runs a web UI locally and manages MCP servers, enabling agents to use various tools through natural language.
stdio vs streamable-http transport
Two connection modes for MCP servers: stdio starts a local process, while streamable-http connects to a remote URL. DSH's MCP manager supports both.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗