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.
Get the exact values with the CLI
There's no config file LyraShield can safely write for JetBrains AI & Junie yet. Run npx lyrashield install jetbrains anyway — it won't write anything, but it prints the exact command, arguments and environment values below, generated from the current registry, so this page can't drift out of sync with what you actually need to paste in.
npx lyrashield install jetbrainsAdding the MCP server
Configure the MCP server in Settings → Tools → AI Assistant → Model Context Protocol (MCP). The same MCP settings can be passed to supported Claude Agent and Codex integrations; use their separate registry entries for agent-specific skills and activation steps.Important gotchas
- JetBrains AI Assistant has no stable MCP file path; use its Settings UI and review the displayed connection status and tool list.
- MCP can be configured for AI Assistant directly. Hosted Claude Agent and Codex have separate entries because their MCP forwarding and skill paths differ.
- Organization-managed IDE Services/Central policies can preconfigure servers or prevent users from adding them.
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.
@lyrashield/mcp package is published on npm, so npx -y @lyrashield/mcp@0.2.12 resolves directly.