# buoy [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/ahoybuoy/buoy  
**GitHub Stars:** 21  
**npm Downloads (last month):** 4068  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/buoy

## Description
Design tokens and drift checks for coding agents: use the token, not the hardcoded value.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "buoy": {
    "command": "npx",
    "args": ["-y","ahoybuoy"]
  }
}
```

## Documentation

## What buoy does

buoy connects coding agents to the design-system information detected in a repository. It focuses on code as the system’s source of truth, identifying components, tokens, drift signals, and related project context. Agents can use the resulting information before or after editing UI code instead of guessing at values such as colors, spacing, or component names.

The server is designed to catch issues including hardcoded values, arbitrary spacing, Tailwind escape hatches, naming inconsistencies, unused or detached components, semantic mismatches, repeated utility-class patterns, and framework sprawl. Results can identify a source location and, for applicable findings, suggest a token-based replacement or exact line edit.

## How it works

buoy scans the local codebase and derives design-system data from the files it finds. A project can declare component, token, and owner paths in `.buoy.yaml`, but the CLI also supports an immediate zero-configuration start with automatic framework detection.

The MCP integration exposes the information to an agent as structured tools. `context_for_file` narrows the response to the tokens, scales, and components relevant to the file being edited. `find_token_for_value` maps a literal such as a color value to a matching design token, while `check_ui_against_design_system` reports line-level drift and a possible edit. The `show` CLI commands can emit JSON for broader inventories, drift findings, health data, and component information.

## Setup and configuration

Start by running the CLI through `npx`:

```bash
npx ahoybuoy show all
npx ahoybuoy dock
```

Use the MCP installer to configure supported agent environments:

```bash
npx @buoy-design/cli mcp install claude
npx @buoy-design/cli mcp install cursor
npx @buoy-design/cli mcp install codex
npx @buoy-design/cli mcp install windsurf
```

The installer also accepts `all`. For Claude Code, the project documents a plugin installation path, and the `design-tokens` skill can be added with `npx skills add ahoybuoy/buoy-plugin`.

`buoy dock` can create `.buoy.yaml`, agent skills, `CLAUDE.md` context, hooks, commands, plugins, and a knowledge graph. Configuration supports drift severity rules, ignore filters, promotion and enforcement rules, and a health threshold for CI failure.

## Tools and capabilities

The MCP tool set includes:

- `context_for_file` for file-specific design-system context.
- `list_design_tokens` for enumerating available tokens.
- `find_token_for_value` for locating a token that matches a literal value.
- `check_ui_against_design_system` for line-level drift checks and suggested edits.
- `design_system_context` for broader design-system information.

A Claude Code setup can add a `PostToolUse` hook that checks style files after edits. Separately, the CLI provides scanning, pre-commit checks, fix suggestions or applications, ignored-drift management, JSON output, and system impact analysis for components or tokens.

## Limitations and notes

The MCP tools depend on the design-system information discoverable in the repository and its optional `.buoy.yaml` configuration. Figma and other design tools are optional inputs rather than prerequisites for the system map. Rescue operations keep ambiguous findings for review, retain local backups for rollback, and do not commit, push, open pull requests, or upload source code. A GitHub App is available for pull-request review independently of the MCP setup.

_Full upstream README: https://allmcps.com/mcp/buoy/readme_

