Skip to main content

Module 29: JetBrains Integration

Run your Java ACP agent in IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs.

What You’ll Learn

  • Configuring JetBrains IDEs for ACP agents
  • The ~/.jetbrains/acp.json configuration format
  • MCP server access from JetBrains

Prerequisites

  • JetBrains IDE version 25.3 RC or later
  • JetBrains AI Assistant plugin enabled
  • Java 17+

The Agent

Same code as Module 28 (Zed). The agent is identical — only the IDE configuration differs:

Build and Configure

1. Build the JAR

2. Configure JetBrains

Create or edit ~/.jetbrains/acp.json:
Or use the IDE: AI Chat tool window → gear icon → Configure ACP Agents.

3. Use the agent

Open AI Chat (Alt+Shift+C), select Java Tutorial Agent from the agent dropdown.

Configuration Options

With environment variables

With IDE MCP server access

Supported IDEs

All JetBrains IDEs with AI Assistant support ACP in version 25.3 RC and later: IntelliJ IDEA, PyCharm, WebStorm, GoLand, PhpStorm, Rider, CLion, RubyMine, DataGrip.

Source Code

View on GitHub

Running the Example

Next Module

Module 30: VS Code Integration — connect to VS Code using the community extension.