Skip to main content
Glama
bunge-ds-mcp

bunge-ds-mcp

by tabaldi98

bunge-ds-mcp

MCP (Model Context Protocol) server that exposes the @bunge/ds-components design system catalog. It allows AI assistants to list, search, and retrieve full component details — including inputs, outputs, usage examples, and import instructions.

The server communicates via stdio (it does not expose an HTTP port). Communication happens through the process itself, integrated directly into the MCP client (e.g., VS Code Copilot).

Tools

Tool

Description

list-components

Lists all available components, with an optional filter by category (form, layout, navigation, feedback, data-display, overlay)

get-component

Returns full details of a component by ID (inputs, outputs, usage, import)

search-components

Searches for components by name, description, or tags

get-component-usage

Returns usage examples and import instructions for a component

How to start

Prerequisites

  • Node.js 18+

  • npm 9+

Installation and build

npm install
npm run build

Run locally

npm start

The server starts via stdio — there is no HTTP port. It is consumed by MCP clients that connect to the process directly.

Configuration in the MCP client (e.g., VS Code)

{
  "mcpServers": {
    "bunge-ds-mcp": {
      "command": "npx",
      "args": ["bunge-ds-mcp"]
    }
  }
}

Or pointing to the local build:

{
  "mcpServers": {
    "bunge-ds-mcp": {
      "command": "node",
      "args": ["dist/index.js"]
    }
  }
}

package.json scripts

Script

Command

Description

build

tsc

Compiles TypeScript to JavaScript in the dist/ folder

start

node dist/index.js

Starts the MCP server (requires prior build)

dev

tsc --watch

Compiles in watch mode — recompiles automatically on every change

dev:inspect

tsc && npx @modelcontextprotocol/inspector node dist/index.js

Compiles and opens the MCP Inspector to test tools interactively

test

vitest run

Runs unit tests once

test:watch

vitest

Runs tests in watch mode

docker:infra:up

docker compose up -d --wait

Starts Verdaccio (private npm registry) on port 4873

docker:infra:down

docker compose down

Stops and removes the Verdaccio container

registry:login:private

npm login --registry http://localhost:4873

Logs in to the local private registry (Verdaccio)

release:private

npm version patch && npm publish --registry http://localhost:4873

Increments the version (patch) and publishes to the local private registry

Local infrastructure (Docker)

The docker-compose.yaml starts a Verdaccio — a private npm registry — on port 4873 (http://localhost:4873). Used to simulate package publication without sending it to the public 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

Project structure

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

Available Tools

4 tools
get-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

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern (get-, list-, search-), making them predictable and easy to understand.

    Tool Count5/5

    With 4 tools, the set is well-scoped for browsing a design system, covering listing, searching, and retrieving details without being excessive.

    Completeness5/5

    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