MPS 2026.1 Help

Quick setup

Follow these steps to connect an AI coding agent to MPS through the Projectional Agent Toolkit. For details about the toolkit, see Projectional Agent Toolkit.

Prerequisites

  • MPS 2026.1 or later. The Projectional Agent Toolkit plugin is bundled and enabled by default. Newer versions of the plugin are available for separate updates between regular MPS releases from JetBrains Marketplace.

  • An MCP-aware coding agent, for example Claude Code, Copilot, Junie, or OpenAI Codex.

  • An MPS project stored at a path without spaces. Otherwise, MCP calls fail with java.net.URISyntaxException: Illegal character in path.

Set up MPS for agents

  1. Start MPS and open or create your project.

  2. Open Settings | Tools | MCP Server, enable the MCP server, and note the port number. The default port is 64342. If it's taken, MPS uses the next free port.

  3. Optional - in Settings | Tools | MCP Server | Exposed Tools, keep the mps_mcp_… tools enabled. Consider disabling the platform tools without that prefix, because they aren't relevant to MPS projects and can confuse agents.

  4. Add the MPS MCP server to your agent's MCP configuration. Use the port from step 2:

    { "mcpServers": { "mps-mcp-server": { "url": "http://localhost:64342/stream" } } }

    For agent-specific instructions, see Configure the JetBrains MCP server. The same procedure applies to MPS.

  5. Optional - Ask the agent to list its available tools. You should see tools prefixed with mps_mcp_, for example mps_mcp_print_node.

  6. Ask the agent to install the bundled MPS skills in your project:

    Please initialize this MPS project for AI agent use by running mps_mcp_initialize_project_for_agents as described in its tool description (install the bundled skills and create AGENTS.md/CLAUDE.md at the derived VCS root). If multiple MPS projects are open, call mps_mcp_list_open_projects first and pass the intended project's agentConfigRoot as targetDirectory. Stop and report any collision.

    The tool copies the skills into .agents/skills/ and .claude/skills/ under the repository root, and creates AGENTS.md and CLAUDE.md if they don't exist. You need to do this once per checkout. If the tool reports a collision, rename or move the conflicting skill folder and run it again.

From now on, any agent that starts in the project discovers the skills and follows the entry-point file.

Prevent modal dialogs from blocking the agent

Modal dialogs block the IDE and make agent commands hang. In Settings | Appearance & Behavior | System Settings, change the following options:

  • Confirm before exiting the IDE: clear the checkbox.

  • When closing a tool window with a running process: select Terminate process.

  • Reopen projects on startup: select the checkbox.

  • Open project in: select New window or Current window, but not Ask.

System Settings dialog in MPS showing recommended options to prevent modal dialogs during shutdown, project opening, and closing.

Optional tips

  • Run CLI agents in the MPS Terminal tool window to work with them without leaving MPS.

  • For Claude Code, make sure ENABLE_TOOL_SEARCH is set to true (the default). It reduces the number of context tokens that the MPS tools consume.

  • After you upgrade MPS or update the plugin, refresh the agent skills. See Refreshing the agent's configuration and skills.

If something doesn't work

  • The agent doesn't see the mps_mcp_… tools. Check that MPS is running with the plugin enabled and that the port in the agent configuration matches the one in MPS settings. Reconnect your agent with the /mcp command or restart your agent. For some agents MCP servers have to be started when the agent's session starts.

  • A tool call never returns. Look for an open modal dialog in MPS and dismiss it.

For more solutions, see Troubleshooting.

29 November 2026