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
Start MPS and open or create your project.
Open , enable the MCP server, and note the port number. The default port is
64342. If it's taken, MPS uses the next free port.Optional - in , 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.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.
Optional - Ask the agent to list its available tools. You should see tools prefixed with
mps_mcp_, for examplemps_mcp_print_node.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 createsAGENTS.mdandCLAUDE.mdif 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 , 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.

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_SEARCHis set totrue(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/mcpcommand 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.