{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "weike-zhang-architecture-canvas--agent-renders-diagrams-from-authorized-folder",
 "repo": "weike-zhang/architecture-canvas",
 "repo_url": "https://github.com/weike-zhang/architecture-canvas",
 "repo_slug": "weike-zhang-architecture-canvas",
 "title": "Let an AI agent render diagrams through the MCP server",
 "page_title": "How to let an AI agent render diagrams through the MCP server with Architecture Canvas",
 "summary": "Connect an agent over MCP stdio so it can read documents in one approved folder and render diagrams.",
 "who": "A platform engineer building an agent workflow that must produce architecture diagrams from a fixed, approved set of documents.",
 "problem": "An agent needs to read design documents and return diagrams, but you want it limited to one folder and separate from any open editing session.",
 "outcome": "An MCP stdio connection that exposes diagram rendering and document reading only within the folder you authorized.",
 "steps": [
  "Run `git clone https://github.com/weike-zhang/architecture-canvas.git` and then `cd architecture-canvas`.",
  "Choose a folder that you have approved for the agent and make sure it holds only the documents the agent may read.",
  "Start the server with `python3 mcp_server.py --root <authorized-docs-dir>`, replacing the placeholder with your approved folder. (inferred, check the README)",
  "Point your MCP client at the stdio command above and confirm that the rendering and reading tools are listed.",
  "Read the integration notes in INTEGRATION.md before connecting a production agent."
 ],
 "agent_prompt": "Using the architecture-canvas repo at https://github.com/weike-zhang/architecture-canvas, start python3 mcp_server.py with --root set to <authorized-docs-dir> and call the document reading tool on <document-name>. Expected output: a rendered diagram or document text limited to that folder. Verify that a path outside the --root folder is refused.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README says without --root the server only provides rendering tools and does not read files, and MCP runs apart from workspace sessions and does not modify the diagram you are editing.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+, Node.js 22.12+, and npm installed on your machine",
  "A model service with a Chat Completions compatible API that supports tool calling, plus its API key, for chat, generation, and document understanding",
  "A vision-capable model if you want to send images to the assistant"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/weike-zhang-architecture-canvas/agent-renders-diagrams-from-authorized-folder/",
 "md": "https://dedupedai.com/use-cases/weike-zhang-architecture-canvas/agent-renders-diagrams-from-authorized-folder/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/weike-zhang-architecture-canvas--agent-renders-diagrams-from-authorized-folder.json",
 "api_version": "v1"
}
