mcpField
T
trident

trident

リモート
github.com/alexeibespalovメディア・デザイン01 週間前に更新
リポジトリ

trident について

Tridentは、開発者やAIアシスタント向けのオープンソースのテキストベース図表ツールのコアです。Tridentマークアップの解析・シリアライズと、読み取り専用の図表表示に対応します。

主な機能

  1. 01Tridentマークアップの解析
  2. 02グラフデータをマークアップに変換
  3. 03SVG・PNGで図表を描画
  4. 04インタラクティブな読み取り専用キャンバス
  5. 05ビルド不要のブラウザデモ

活用シーン

  1. 01図表マークアップを視覚化
  2. 02グラフデータをマークアップに戻す
  3. 03ブラウザで図表をプレビュー

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttps://mcp.tridentchart.com/mcp
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

パッケージ
npmtrident-mcp1.0.2

ツール

23

このツールにパラメーターはありません。

詳細

Trident — Public

Trident のオープンソースコア — テキストベースの図表作成ツールです。

このリポジトリには、パーサー、シリアライザー、読み取り専用レンダラーが含まれています。認証、共同編集、依存関係はありません。


内容

ファイル用途
parser.jsTrident のマークアップテキストを解析して、graphData オブジェクトに変換します
trident-serializer.jsgraphData を Trident のマークアップテキストにシリアライズします
renderer-oss.js読み取り専用レンダラー:SVG、PNG、インタラクティブキャンバス
spec.md言語仕様の全文
example.md動作する図の例
demo.htmlブラウザのデモ(直接開けます。ビルド手順は不要です)

クイックスタート

<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>

demo.html をブラウザーで直接開くと、動作を確認できます。


マークアップ形式

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]

文法の全文は spec.md を、動作する図の完全な例は example.md をご覧ください。


ライセンス

MIT

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。