npm trident-mcpstreamable-httpupdated 27d ago
Open-source core of Trident — a text-based diagramming tool.
What can you do with trident?
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
Install
Add trident to your client. Pick the one you use.
{
"servers": {
"trident-mcp": {
"type": "http",
"url": "https://mcp.tridentchart.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add trident-mcp -- npx -y trident-mcpcodex mcp add trident-mcp -- npx -y trident-mcpamp mcp add trident-mcp -- npx -y trident-mcp{
"mcpServers": {
"trident-mcp": {
"command": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"trident-mcp": {
"command": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"trident-mcp": {
"command": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"trident-mcp": {
"command": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"trident-mcp": {
"command": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"trident-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"trident-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"trident-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"trident-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y trident-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance19/25
- Trust6/20
- Capability0/15
- Install experience15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 19 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 1.0.2Latest | May 30, 2026 |