Skip to content
LyraShield AIOpen beta

Updated

Amp (Sourcegraph)

Amp uses a CLI command to register MCP servers. The config is stored globally — there is no per-project MCP config file.

Global only: Amp MCP config applies across all projects for the current user. Set your API key as a shell environment variable rather than hardcoding it in the command.

Register via CLI

Run the following command in your terminal. Export LYRASHIELD_API_KEY in your shell profile (~/.bashrc, ~/.zshrc, etc.) so it is available when Amp starts the server.

# Export your key in your shell profile first:
# export LYRASHIELD_API_KEY=lsk_your_key_here
# export LYRASHIELD_API_URL=https://app.lyrashieldai.com

amp mcp add lyrashield \
  --command npx \
  --args "-y,@lyrashield/mcp"

Verify the connection

List registered servers with amp mcp list. The lyrashield server should appear. Start Amp and ask: "What LyraShield tools are available?" to confirm tools surface correctly.

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