Get Started
Integrating the Pieces MCP with JetBrains IDEs brings your workflow context directly into IntelliJ IDEA, PyCharm, WebStorm, GoLand, and other JetBrains editors. The AI Assistant can access your past work, similar code, and historical context.
Prerequisites
There are two prerequisites for integrating Pieces with JetBrains as an MCP—an active instance of PiecesOS and the fully-enabled Long-Term Memory engine.
Installing PiecesOS & Configuring Permissions
Follow the instructions below for a detailed guide on setting up and configuring PiecesOS to correctly pass captured workflow context to the Pieces MCP server.
Setting Up JetBrains IDEs
JetBrains provides an MCP setup UI in Settings. You do not need to edit config files manually.
Setup via Settings UI
Brave Mode (Auto-Execute Tools)
By default, JetBrains prompts for confirmation before executing tools. To enable auto-execution:
Go to Settings > Tools > AI Assistant > MCP > Brave Mode = enabled
Using Pieces MCP Server in JetBrains
Once integrated, you can utilize Pieces LTM directly in the AI Assistant panel.
Updating
Go to Settings > Tools > AI Assistant > MCP, select the pieces server, click Edit, update the URL, and apply.
Troubleshooting
If you're experiencing issues integrating Pieces MCP with JetBrains:
Verify PiecesOS Status: Ensure PiecesOS is actively running on your system.
Update JetBrains: MCP support requires JetBrains 2025.2 or later. If the MCP option is not visible, update your IDE.
Use Streamable HTTP: JetBrains has limited/deprecated SSE support. Use the Streamable HTTP endpoint (
/model_context_protocol/2025-03-26/mcp).AI Not Using Tools Automatically: Enable Brave Mode in MCP settings if the AI is not executing tools automatically.
You're now set to enhance your JetBrains workflow with powerful context retrieval through Pieces MCP. Happy coding!