# VS Code MCP Setup

The fastest way to use Yavy with VS Code is the CLI. Search your docs and generate Skills. For real-time access, connect via MCP extensions.

## Quick Start with CLI

Install the CLI, authenticate, and search. No MCP setup required.

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

```terminal
yavy search "your query"
```

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

## MCP Configuration

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

### Setup Steps

1. Open MCP configuration:
   - Press `Ctrl+Shift+P` (or `Cmd+Shift+P` on macOS)
   - Type `MCP: Open User Configuration`
2. Copy the configuration above and paste it into your `mcp.json` file
3. Run **Developer: Reload Window** from the command palette
4. Open the **GitHub Copilot Chat** panel to verify the MCP server is connected

**Alternative: Project-Level Configuration**  
Create a `.vscode/mcp.json` file in your project root to share the configuration with your team.

## Known Issue: Connection May Hang

VS Code may sometimes show "Waiting for server to respond to initialize request..." after OAuth authentication. This is a [known VS Code issue](https://github.com/microsoft/vscode/issues/248949).

**Workaround:** Run `Developer: Reload Window` from the command palette, or remove and re-add the MCP server configuration.

## Next Steps

[Learn about Skills packages](/content/docs/skills/index.html) [Getting Started guide](/content/docs/getting-started/index.html)
