Skip to content
LyraShield AIOpen beta

Updated

VS Code

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

Critical gotcha: VS Code uses the root key servers, not mcpServers. Using mcpServers silently fails. Every entry also requires a "type": "stdio" field.

Configuration

Create or open .vscode/mcp.json in your project root. Use servers as the top-level key.

{
  "servers": {
    "lyrashield": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@lyrashield/mcp"],
      "env": {
        "LYRASHIELD_API_KEY": "lsk_your_key_here",
        "LYRASHIELD_API_URL": "https://app.lyrashieldai.com"
      }
    }
  }
}

User-level global config

To register the server globally for all projects, open VS Code settings (Ctrl/Cmd + Shift + PPreferences: Open User Settings (JSON)) and add the same servers block at the top level under the github.copilot.chat.agent.mcpServers or equivalent user-level MCP key.

Verify the connection

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

Requirements: Node.js 20+ and a LyraShield workspace API key. The@lyrashield/mcp package is published on npm, sonpx -y @lyrashield/mcp resolves directly.