Skip to content

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 jetbrains

Adding the MCP server

Install type: No verified native MCP configuration is available for this client.
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.
Manual setup: the pinned CLI package (lyrashield@0.2.14) has no matching installer contract for this integration. Use the configuration or client instructions above and verify the client loads it.

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.
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: For local stdio, Node.js 24+ and a local OAuth login or workspace API key. Remote OAuth needs no local key. The @lyrashield/mcp package is published on npm, so npx -y @lyrashield/mcp@0.2.12 resolves directly.