VS Code, MCP and CLI

XRAY Cockpit for VS Code

The extension adds XRAY views to VS Code (Home, project connection, skills, tests, runs and issues). It also registers the XRAY MCP server so Copilot Chat can use XRAY tools.

Requirements

  • VS Code 1.140.0 or later.
  • The .NET 10 runtime. The bundled MCP server and CLI are framework-dependent .NET apps.

Install

The desktop app offers to install the extension during first launch. To install it yourself, use the copy that matches your desktop app version:

code --install-extension "<XRAY install folder>\resources\extensions\xray-cockpit.vsix"

Or, in VS Code, open Extensions, select ... > Install from VSIX..., and choose that file. Reload VS Code after installing or updating.

The extension is not in the Visual Studio Marketplace. After a Hermes update, install the new VSIX again so the extension matches the desktop app.

Sign in and connect a project

  1. Open the folder of a game repository that has an .xray folder, or the folder where you want to create one.
  2. Open the XRAY view and sign in with Microsoft. The extension uses the same account and the same title list as the desktop app (see Sign-in and title access).
  3. Choose the project (title).
  4. Optional: run XRAY: Connect Desktop Setup to bind the workspace to a named setup that you created in the desktop app.

MCP server

The XRAY MCP server is a local stdio server. VS Code starts it when Copilot Chat needs it and stops it after about 30 seconds of inactivity. It is not a web service and it doesn't accept remote connections.

  • The extension registers it automatically. Don't add a second XRAY server to your mcp.json, or tools will appear twice.
  • To check it, ask Copilot Chat to call xray_status, then xray_get_authoring_guide for your repository.
  • Tools that change files or start runs ask for confirmation. Review the scope before approving.

CLI

The extension also carries the XRAY command-line tool. Ask Copilot Chat to call xray_get_cli_guide to get the exact command for your machine; don't assume an xray command is on your PATH.

More detail

The engineering documentation covers every command, setting and MCP tool:

  • VS Code extension guide
  • MCP server guide and tool list
  • CLI guide
  • Edit this page
In this article
Back to top Generated by DocFX