# Claude Code Setup

The easiest way to use Yavy with Claude Code is the plugin. It installs the CLI, authenticates, and generates skills automatically. You can also use the CLI directly or connect via MCP.

## Plugin Recommended

Handles everything: CLI installation, authentication, project selection, and skill generation.

```bash
/plugin marketplace add yavydev/claude-code
/plugin install yavy-docs@yavy
/yavy:init
```

[Full plugin guide](/content/docs/skills/claude-code-plugin/index.html) [GitHub](https://github.com/yavydev/claude-code)

## CLI

Manual setup if you prefer the command line.

```bash
npm install -g @yavydev/cli && yavy init
```

```bash
yavy search "your query"
```

[CLI documentation](/content/docs/skills/cli/index.html)

## MCP Configuration

For real-time search via the Model Context Protocol.

### Claude Code

#### Quick Install

Run this command in your terminal to add the MCP server:

```bash
claude mcp add --transport http yavy https://yavy.dev/mcp/your-org/your-project
```

or configure manually

```json
{
  "mcpServers": {
    "yavy": {
      "type": "http",
      "url": "https://yavy.dev/mcp/your-org/your-project"
    }
  }
}
```

#### Manual Setup Steps

1. Create or open the `.mcp.json` file in your project directory  
2. Copy the configuration above and paste it into your `.mcp.json` file  
3. Run `/mcp` in Claude Code to verify the server is connected

Tip

The `.mcp.json` file in your project directory makes the MCP server available to your team. Public sources work instantly; private sources prompt for OAuth 2.1 login.
