bunge-ds-mcp
bunge-ds-mcp
@bunge/ds-components デザインシステムのコンポーネントカタログを公開するMCP (Model Context Protocol) サーバーです。AIアシスタントがコンポーネントのリスト表示、検索、および入力、出力、使用例、インポート手順を含む詳細情報の取得を行えるようにします。
このサーバーは stdio を介して通信します(HTTPポートは公開しません)。通信はプロセス自体を通じて行われ、MCPクライアント(例:VS Code Copilot)に直接統合されます。
Tools
Tool | 説明 |
| 利用可能なすべてのコンポーネントをリスト表示します。カテゴリによるフィルタリングが可能です ( |
| IDを指定してコンポーネントの詳細(入力、出力、使用例、インポート)を返します |
| 名前、説明、またはタグでコンポーネントを検索します |
| コンポーネントの使用例とインポート手順を返します |
開始方法
前提条件
Node.js 18+
npm 9+
インストールとビルド
npm install
npm run buildローカルでの実行
npm startサーバーは stdio 経由で起動します。HTTPポートはありません。プロセスに直接接続するMCPクライアントによって消費されます。
MCPクライアントの設定 (例: VS Code)
{
"mcpServers": {
"bunge-ds-mcp": {
"command": "npx",
"args": ["bunge-ds-mcp"]
}
}
}または、ローカルビルドを指定する場合:
{
"mcpServers": {
"bunge-ds-mcp": {
"command": "node",
"args": ["dist/index.js"]
}
}
}package.json のスクリプト
スクリプト | コマンド | 説明 |
|
| TypeScriptをJavaScriptにコンパイルし |
|
| MCPサーバーを起動します(事前にビルドが必要) |
|
| ウォッチモードでコンパイルします(変更のたびに自動再コンパイル) |
|
| コンパイルしてMCP Inspectorを開き、ツールを対話的にテストします |
|
| ユニットテストを1回実行します |
|
| ウォッチモードでテストを実行します |
|
| ポート 4873 でVerdaccio(プライベートnpmレジストリ)を起動します |
|
| Verdaccioコンテナを停止・削除します |
|
| ローカルのプライベートレジストリ (Verdaccio) にログインします |
|
| バージョンをインクリメント (patch) し、ローカルのプライベートレジストリに公開します |
ローカルインフラストラクチャ (Docker)
docker-compose.yaml は、ポート 4873 (http://localhost:4873) で Verdaccio(プライベートnpmレジストリ)を起動します。公開npmに送信することなくパッケージの公開をシミュレートするために使用されます。
npm run docker:infra:up # sobe o Verdaccio
npm run registry:login:private # autentica no registry local
npm run release:private # publica o pacote localmenteプロジェクト構造
src/
├── index.ts # Entrada: cria o McpServer e conecta ao transport
├── tools/ # Registro das tools (uma por arquivo)
│ ├── index.ts # Barrel — registra todas as tools
│ ├── list-components.ts
│ ├── get-component.ts
│ ├── search-components.ts
│ └── get-component-usage.ts
├── data/
│ └── components.ts # Catálogo de componentes do DS
├── models/
│ └── mcp-server.model.ts # Interfaces e tipos
└── tests/
├── data.spec.ts
└── tools.spec.tsAvailable Tools
4 toolsget-componentA
Retorna detalhes completos de um componente: inputs, outputs, exemplos de uso e import.
Inputs: id (required).
get-component-usageB
Retorna exemplos de uso e instruções de import de um componente.
Inputs: id (required).
list-componentsA
Lista todos os componentes disponíveis no Design System, com filtro opcional por categoria.
Inputs: category.
search-componentsA
Busca componentes por nome, descrição ou tags.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools have distinct purposes, but get-component-usage is a subset of get-component, potentially causing minor confusion. Descriptions help differentiate, so overall good.
All tools follow a consistent verb_noun snake_case pattern (get-, list-, search-), making them predictable and easy to understand.
With 4 tools, the set is well-scoped for browsing a design system, covering listing, searching, and retrieving details without being excessive.
The tools provide full coverage for component browsing: list with filter, search, full details, and usage info. No obvious gaps in this domain.
Related MCP Connectors
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
MCP server for querying Forkast documentation