Skip to content

Updated

VS Code

VS Code (with the GitHub Copilot extension in agent mode) reads MCP servers from .vscode/mcp.json in your project root.

Install with the pinned CLI

CLI 0.2.14 has a matching installer for this client. Sign in first with npx -y lyrashield@0.2.14 login --oauth for local stdio. Review the planned changes before writing:

npx -y lyrashield@0.2.14 install vscode --dry-run

When the preview is correct, run the installer:

npx -y lyrashield@0.2.14 install vscode

The installer updates LyraShield's entry and preserves unrelated configuration. You can also use the manual snippet below. Restart or reload the client and complete a read-only authenticated call; an installed config entry alone does not prove client discovery.

VS Code is a config-guided MCP client. For a user-profile server, use MCP: Open User Configuration or MCP: Add Server; VS Code owns the profile-specific mcp.json path. Do not edit settings.json for MCP configuration.

Credentials

No credential in committed files: After npx --yes lyrashield@0.2.14 login --oauth, the local MCP server reads the selected workspace credential from ~/.lyrashield/credentials.json. No key needs to be inlined in .vscode/mcp.json or any other file you might commit.

Verify the connection

Reload the window (Ctrl/Cmd + Shift + P → Developer: Reload Window). Open the Copilot Chat panel, switch to agent mode and confirm that LyraShield tools appear in the tool list.

Requirements: Node.js 24+ and a LyraShield workspace OAuth login. The @lyrashield/mcp package is published on npm, so npx -y @lyrashield/mcp@0.2.12 resolves directly.