Token导航 LogoToken导航TokenDH.com
Salt MCP logo
开发工具未说明官方级别未说明来源级核验

Salt MCP

MCP Server

为AI代理提供Salt设计系统知识的工具和技能,帮助开发者准确构建Salt应用程序。

工具数

6

提示词数

0

GitHub Stars

1

资源数

0
代码生成JavaScriptClaude开发工具ClaudeCursorWindsurfVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

feesch

提供方

feesch

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Salt MCP

An MCP server and Agent Skills for building applications with the Salt Design System — JP Morgan Chase's open-source React component library.

What it does

This project gives AI agents access to Salt DS knowledge so they can help you build Salt applications accurately, using the right components, props, patterns, and best practices — instead of guessing.

MCP Tools let agents look things up on the fly:

  • Component APIs, props, and examples
  • Usage guidelines and accessibility rules
  • Design patterns (forms, navigation, search, etc.)
  • Foundations (density, spacing, color, typography)

Agent Skills give agents step-by-step instructions for common tasks:

  • Scaffolding a new Salt app
  • Building page layouts
  • Creating forms
  • Implementing UI patterns
  • Converting Figma designs to Salt code

Prerequisites

  • (v18+)
  • An MCP-compatible client or an agent that supports the Agent Skills standard (e.g. VS Code with GitHub Copilot, Claude Code, Cursor, Gemini CLI, Windsurf)
  • A local clone of the Salt DS repository:
  git clone --depth 1 https://github.com/jpmorganchase/salt-ds.git ~/Code/salt-ds

Setup

# Clone this repo
git clone https://github.com/feesch/salt-mcp.git
cd salt-mcp

# Install dependencies
npm install

# Build
npm run build

Register the MCP server

The repo includes a .mcp.json file that Claude Code and some other clients auto-discover. For other clients, configure the server manually:

VS Code / GitHub Copilot

Create or edit .vscode/mcp.json in your project:

{
  "servers": {
    "salt-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/salt-mcp/build/index.js"]
    }
  }
}

Replace /absolute/path/to/salt-mcp with the actual path where you cloned this repo. Then open Copilot Chat in Agent mode to use the tools.

Claude Code

The .mcp.json file in the repo root is auto-discovered — no extra config needed. Alternatively, add to your project's .claude/settings.json:

{
  "mcpServers": {
    "salt-mcp": {
      "command": "node",
      "args": ["./build/index.js"]
    }
  }
}

Cursor / Windsurf / other MCP clients

Add to your client's MCP configuration:

{
  "mcpServers": {
    "salt-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/salt-mcp/build/index.js"]
    }
  }
}

Refer to your client's documentation for the config file location.

Install the skills

Copy the skills/ directory into the location your agent expects:

  • Claude Code: Copy into .claude/skills/ in your project or home directory
  • Cursor: Copy into .cursor/skills/
  • VS Code / GitHub Copilot: Skills are not yet natively supported — use the MCP tools directly, or paste skill content into your Copilot Chat prompt as instructions
  • Other agents: See your agent's documentation for the skills directory

Skills follow the open Agent Skills standard and work with any compatible agent.

MCP Tools

ToolDescription
helloTest that the server is running
list-componentsList all Salt components (core, lab, or both)
get-component-propsGet the TypeScript props interface for a component
get-component-exampleGet Storybook example code for a component
search-componentsSearch components by keyword
get-salt-docsGet usage guidelines, accessibility rules, patterns, and foundations

Skills

Skills are portable instruction sets that guide agents through multi-step tasks. They follow the Agent Skills standard.

SkillDescription
salt-appScaffold a new React app with Salt DS (SaltProvider, theme, Vite)
salt-pageBuild page layouts using Salt layout components
salt-formBuild forms following Salt's form pattern
salt-patternBuild any of 20+ Salt UI patterns (search, navigation, wizard, etc.)
salt-figmaConvert a Figma design (screenshot or description) into Salt code

Keeping Salt DS up to date

The MCP tools read from your local Salt DS clone at runtime, so they automatically reflect any updates. Skills contain some static mapping tables but always instruct agents to verify via the tools.

To pull the latest Salt DS changes:

git -C ~/Code/salt-ds pull

No rebuild of salt-mcp is needed — the tools will return updated data immediately.

Development

npm run build        # Compile TypeScript
npm test             # Run unit tests (37 tests via Vitest)
npm run test:watch   # Run tests in watch mode

Project structure

salt-mcp/
  src/
    index.ts            # MCP server with tools
    helpers.ts          # Shared helpers and security functions
    helpers.test.ts     # Unit tests (Vitest)
  skills/               # Agent Skills (agentskills.io standard)
    salt-app/SKILL.md
    salt-page/SKILL.md
    salt-form/SKILL.md
    salt-pattern/SKILL.md
    salt-figma/SKILL.md
  .mcp.json             # Shareable MCP server config
  package.json
  tsconfig.json

References

目录标签

目录标签

代码生成JavaScriptClaude开发工具React组件库本地部署AI辅助开发设计系统前端开发

支持客户端

ClaudeCursorWindsurfVS Code

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明nonelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP