MCP server

Give Claude Code, Codex, GitHub Copilot, Cursor and Windsurf direct access to the SurfaceOne docs, API and tokens.

@surface-one/angular-mcp is a Model Context Protocol server. Your AI assistant asks it for a component's exact API, a working example, its source and styles, the guides, the screen templates and the theme variables — instead of guessing. Everything is bundled with the package: it works offline and always matches your version.

Claude Code

bash
claude mcp add surface-one-angular -- npx -y @surface-one/angular-mcp@latest

Codex

bash
codex mcp add surface-one-angular -- npx -y @surface-one/angular-mcp@latest

Or add it to ~/.codex/config.toml:

toml
[mcp_servers.surface-one-angular]
command = "npx"
args = ["-y", "@surface-one/angular-mcp@latest"]

VS Code with GitHub Copilot

Add .vscode/mcp.json to your project:

json
{
  "servers": {
    "surface-one-angular": {
      "command": "npx",
      "args": ["-y", "@surface-one/angular-mcp@latest"]
    }
  }
}

Cursor, Windsurf and Claude Desktop

json
{
  "mcpServers": {
    "surface-one-angular": {
      "command": "npx",
      "args": ["-y", "@surface-one/angular-mcp@latest"]
    }
  }
}

Tools

  • list_components — every component family with its entry point and selectors.
  • get_component_docs — description, import, a working example and the full API. Accepts names, slugs, classes or selectors such as soneBtn.
  • get_component_source_code and get_component_source_styles — the implementation.
  • get_docs — guide pages and release notes.
  • get_theme_variables — token values for every skin in light and dark mode.
  • list_templates and get_template — complete screens to start from.

Try asking

  • “Build a settings page with SurfaceOne: a switch, a select and a save button.”
  • “Show me the API of the SurfaceOne dialog.”
  • “Which tokens does the Paper skin use in dark mode?”

Pair the server with the agent skills: the skills tell your assistant how to work with SurfaceOne, the server gives it the facts.