CodePic
io.github.abelce/codepic
Serveur MCP OK
Faire examiner Voir les tarifs
AI agent draws editable hand-drawn diagrams (flowchart, ER, architecture) via MCP, not static images
Fiche technique
- Auteur
- abelce (espace de noms du registre)
- Dépôt
- github.com/abelce/codepic-mcp
- Site
- —
- Version
- 1.0.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://codepic.cc/api/mcp/mcp Streamable HTTP en-tête requis :
Authorization - Outils
- 7
- Catégories
- IA, agents et mémoire, Images, audio et vidéo
- Dernière mise à jour
- 16 juin 2026
- Publication
- 16 juin 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.abelce/codepic)<a href="https://latlas.dev/mcp/io.github.abelce/codepic"><img src="https://latlas.dev/badge/fiche/io.github.abelce/codepic.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://codepic.cc/api/mcp/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:37
- Temps de réponse
- 2 345 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- mcp-typescript server on vercel 0.1.0
- Outils
- 7
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:37 | OK | 2 345 ms | 7 |
Outils exposés (7, réponse à tools/list, 28 nov. 2026)
get_shape_docs
Get Shape Docs
Return the full CodePic shape reference — all element types, their fields, data payloads, and JSON examples. Call get_shape_catalog first for concise shape selection and container capabilities; use this tool when you need complete fields or type-specific data (e.g. select options, triangle direction, callout tail). No authentication required.
Aucun paramètre.
get_shape_catalog
Get Shape Catalog
Return compact machine-readable shape metadata for planning a diagram: semantic tags, geometry family, container support, recommended padding, default size, and MCP availability. Use this before create_diagram when choosing shapes or containers. Unlike get_shape_docs, this tool is concise and filterable.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| category | enum: "basic" | "flow" | "container" | "ui" | "architecture" | "misc" | non | Filter by the shape category. |
| tag | string | non | Filter by one exact AI tag, e.g. container-capable, decision, database, or architecture. |
| containerMode | enum: "native" | "adaptive" | "none" | non | Filter by container support. adaptive shapes become containers when they receive children. |
list_templates
List Templates
List all available CodePic diagram templates. Use this ONLY when the user has explicitly asked to browse, list, or pick from templates (e.g. "show me templates", "列出模板"). Do NOT call this as a preparatory step when the user just described a diagram they want — in that case go straight to `create_diagram`. Discovering slugs here is only meaningful before a user-confirmed `create_from_template` call.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| category | enum: "collaboration" | "planning" | "design" | "flowchart" | "engineering" | non | Filter by category |
create_from_template
Create from Template
Create a new CodePic diagram from a predefined template. Requires API Key authentication. Returns a public view URL and edit URL. **STRICT USAGE RULE — READ BEFORE CALLING:** Only call this tool when the user has **explicitly** asked to use a template. Explicit signals include phrases like: "use a template", "from template", "用模板", "从模板创建", "list templates and pick one", or the user directly naming/selecting a template slug. If the user merely describes a diagram they want (e.g. "draw an A/B test flowchart", "帮我画一个登录流程", "给我做一个系统架构图"), **DO NOT** call this tool. Call `create_diagram` instead and build the diagram from the user's description. Never silently substitute a template for a described diagram — the user will get a generic result that does not match what they asked for. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the user can click it directly in their AI client (Cursor / Claude / etc.).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| slug | string | oui | Template slug (e.g. 'flowchart', 'erd', 'kanban'). Call list_templates to see all. |
| name | string | non | Document name (defaults to template name) |
| locale | enum: "en" | "zh" | non | Language for template content (default: en) |
create_diagram
Create Diagram
Create a custom CodePic hand-drawn style diagram by specifying nodes and edges. Requires API Key authentication. Returns a public view URL. **THIS IS THE DEFAULT TOOL FOR ANY USER-DESCRIBED DIAGRAM.** Whenever the user describes a diagram they want ("draw an A/B test flowchart", "帮我画一个登录流程", "a system architecture with a load balancer and 3 servers", etc.), build it here from their description. Do NOT fall back to `create_from_template` / `list_templates` unless the user explicitly asked for a template. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the user can click it directly in their AI client (Cursor / Claude / etc.). **Container nesting (IMPORTANT — use whenever possible):** - Set `parentId` on a node to nest it inside another node. ANY node type can be a container. - The parent automatically becomes draggable-as-a-group and users can keep dropping elements into it. - Call `get_shape_catalog` with tag `container-capable` to choose among native structural containers and adaptive semantic shapes such as rectangles, circles, ellipses, diamonds, cylinders, and hexagons. - Parent bounds are expanded automatically using the selected shape's title and outline safe area. - Use absolute canvas coordinates for all nodes — child coordinates are auto-converted to parent-relative. - Set node `name`, `description`, and `tags` when later MCP/Agent reads need stable business semantics beyond visible text. - **Ru…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | oui | Document name |
| nodes | array<object> | oui | Array of shape nodes to place on the canvas |
| edges | array<object> | non | Array of connector edges between nodes |
| backgroundColor | string | non | Canvas background color (default: '#f8f9fa') |
get_diagram
Get Diagram
Fetch the current state of an existing CodePic diagram. Returns a compact summary of all elements with their IDs, types, positions, and parent-child relationships. Use this before update_diagram when you need to: add nested children to existing containers, make targeted edits to specific elements, or understand the current structure. Requires API Key authentication.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| documentId | string | oui | Document ID to fetch |
update_diagram
Update Diagram
Update an existing CodePic diagram. You can rename it, replace all nodes/edges, or add/remove individual nodes and edges. Requires API Key authentication. When responding to the user, present the returned URL as a clickable markdown link (e.g. `[Open in CodePic →](URL)`) so the user can click it directly in their AI client (Cursor / Claude / etc.).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| documentId | string | oui | Document ID to update (from a previous create call) |
| name | string | non | New document name |
| nodes | array<object> | non | Full replacement of all nodes. If provided, replaces the entire canvas content. |
| edges | array<object> | non | Full replacement of all edges |
| addNodes | array<any> | non | Nodes to add (without replacing existing ones) |
| addEdges | array<any> | non | Edges to add |
| removeNodeIds | array<string> | non | IDs of nodes to remove |
| removeEdgeIds | array<string> | non | IDs of edges to remove |
| backgroundColor | string | non | New canvas background color |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://codepic.cc/api/mcp/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http codepic https://codepic.cc/api/mcp/mcpCustomize > Connectors > + Add > Add custom connector ; Name : codepic ; URL : https://codepic.cc/api/mcp/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : codepic ; Server URL : https://codepic.cc/api/mcp/mcp ; Create as a plugin{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp"
}
}
}{
"mcpServers": {
"codepic": {
"type": "http",
"url": "https://codepic.cc/api/mcp/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"codepic": {
"url": "https://codepic.cc/api/mcp/mcp"
}
}
}{
"mcpServers": {
"codepic": {
"httpUrl": "https://codepic.cc/api/mcp/mcp"
}
}
}[mcp_servers.codepic]
url = "https://codepic.cc/api/mcp/mcp"Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.