VS Code MCP setup - Anchor Docs
Configure Anchor for VS Code MCP clients with a project .vscode/mcp.json entry.
VS Code MCP clients need a project-level server descriptor that can start Anchor through stdio.
- Writes .vscode/mcp.json with an anchor server entry.
- Preserves existing VS Code MCP servers.
- Pairs with anchor context for CLI fallback when an extension cannot call MCP directly.
anchor init --target vscode
anchor index --limit 200
anchor doctor --target vscode