io.github.alexeibespalov/trident
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
claude mcp add --transport http trident 'https://mcp.tridentchart.com/mcp'
{
"mcpServers": {
"trident": {
"type": "http",
"url": "https://mcp.tridentchart.com/mcp"
}
}
}
trident-mcpclaude mcp add trident -e 'TRIDENT_API_KEY=<TRIDENT_API_KEY>' -- npx -y trident-mcp@1.0.2
{
"mcpServers": {
"trident": {
"command": "npx",
"args": [
"-y",
"trident-mcp@1.0.2"
],
"env": {
"TRIDENT_API_KEY": "<TRIDENT_API_KEY>"
}
}
}
}
Variables d'environnement
TRIDENT_API_KEYOptional Trident API key for document editing tools. Spec tools work without a key.
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Trident — Public
Open-source core of Trident — a text-based diagramming tool.
This repo contains the parser, serializer, and read-only renderer. No auth, no collaboration, no dependencies.
What's here
| File | Purpose |
|---|---|
parser.js | Parses Trident markup text → graphData object |
trident-serializer.js | Serializes graphData → Trident markup text |
renderer-oss.js | Read-only renderer: SVG, PNG, interactive canvas |
spec.md | Full language specification |
example.md | Working diagram examples |
demo.html | Browser demo (open directly, no build step) |
Quick start
<script type="module">
import { Trident2DParserV2 } from './parser.js';
import { renderToSVG, renderToPNG, mountViewer } from './renderer-oss.js';
const parser = new Trident2DParserV2();
const markup = `trident
container backend color:#4A90E2 label:"Backend"
node api[API Server] in backend at (150, 100)
node db[Database] in backend at (350, 100)
api --> |Query| db`;
// SVG string
const svg = await renderToSVG(markup, parser);
// Interactive canvas with zoom + pan (no editing)
await mountViewer(document.getElementById('diagram'), markup, parser);
// PNG blob (2× retina)
const blob = await renderToPNG(markup, parser, { scale: 2 });
</script>
Open demo.html directly in a browser to see it running.
Markup format
trident
container <id> [color:<hex>] [label:"<text>"] [at (<x>, <y>)]
node <id>(<icon>)[<label>] [in <container>] [at (<x>, <y>)] [color:<hex>]
<source> --> <target>
<source> -->|<label>| <target>
text <id> "<content>" at (<x>, <y>) [style:stickyNote|textBody]
See spec.md for the full grammar and example.md for complete working diagrams.
License
MIT
Questions fréquentes
Qu'est-ce que io.github.alexeibespalov/trident ?
Create and edit collaborative architecture diagrams with any AI assistant using the Trident 2D DSL.
Comment installer io.github.alexeibespalov/trident ?
Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http trident 'https://mcp.tridentchart.com/mcp'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.alexeibespalov/trident ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.alexeibespalov/trident est-il open source ?
Son code est public sur GitHub, mais le dépôt ne déclare pas de licence standard.
Qui maintient io.github.alexeibespalov/trident ?
Il est publié par alexeibespalov. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.