Updated
JetBrains AI & Junie
JetBrains AI Assistant (available across IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs) and the Junie agent mode both support MCP servers. Configuration is done through the IDE settings UI.
Adding the MCP server
- Open Settings (
Ctrl/Cmd + ,) → Tools → AI Assistant → MCP Servers. - Click + to add a new server.
- Set the following values:
- Command:
npx - Arguments:
-y @lyrashield/mcp
- Command:
- In the Environment variables section, add:
LYRASHIELD_API_KEY=lsk_your_key_hereLYRASHIELD_API_URL=https://app.lyrashieldai.com
- Click OK and apply settings.
Config file location: JetBrains stores the MCP config in the IDE's settings directory. The UI is the recommended way to manage it; direct file editing is also possible but the path varies by IDE and OS.
AGENTS.md agent rules
JetBrains Junie reads AGENTS.md from your project root to understand project conventions. Add an LyraShield snippet to instruct Junie when to run security checks automatically. See the Agent Rules Snippets page for ready-to-paste instructions.
Verify the connection
After applying settings, open the AI Assistant chat. The LyraShield tools should be available. Ask: "What tools does LyraShield provide?" to confirm.
Requirements: Node.js 20+ and a LyraShield workspace API key. The
@lyrashield/mcp package is published on npm, sonpx -y @lyrashield/mcp resolves directly.