JetBrains IDE plugin

Agent Eyes: MCP Tools for AI

Your AI agent says the tests pass. Did it really run them? Agent Eyes lets Claude Code, Codex, Junie or another MCP client prove that the tests ran, see the IDE and run safe IDE commands.

Get it on JetBrains Marketplace

Free trial with every feature.

An agent calling check_test_reports and getting STALE: 1 source file changed after the newest test report. Re-run the tests before claiming they pass.

What you get

check_test_reports answering STALE after a source file was edited

No more "tests pass" without a run

check_test_reports says STALE when code changed after the newest test report, so the agent re-runs the tests before it reports.

check_test_reports answering FAILED: 1 of 4 tests did not pass, with the failing test named

The real result, by name

PASSED, FAILED, 0 TESTS RAN or all skipped, read from the JUnit XML reports, with each failing test and its message.

ide_screenshot saving a PNG of the editor, and ide_invoke_action refusing Vcs.Push

Eyes and safe hands in the IDE

ide_screenshot shows the agent a dialog or tool window. ide_invoke_action runs formatting or a build, and refuses commands such as push or delete.

The tools

MCP is the standard way AI agents connect to tools. Your JetBrains IDE has an MCP server built in, and Agent Eyes adds these tools to it.

ide_screenshot

A PNG of the IDE window, the active editor or one tool window (Run, Problems View, Terminal), plus the open tool windows, dialogs and active file. Open dialogs are included in the screenshot.

ide_find_actions / ide_invoke_action

Find an IDE command by name and run it in the active editor: formatting, optimize imports, build, save, sync, navigation, opening tool windows.

check_test_reports

Reads Gradle build/test-results, Maven Surefire and Failsafe, and junit*.xml from pytest --junitxml or jest-junit. First line: PASSED, FAILED, 0 TESTS RAN, all skipped, NO TEST REPORTS FOUND or STALE.

task_lock_acquire / release / list

A named lock shared by every agent session on the computer, so two sessions do not run a full build or a migration at once. Locks expire on their own.

How to use it

  1. Install Agent Eyes: MCP Tools for AI from Settings | Plugins | Marketplace.
  2. Enable Settings | Tools | MCP Server and connect your agent there.
  3. Restart the agent. The Agent Eyes tools appear in its tool list.
  4. Tell the agent once, for example in its project instructions: "Call check_test_reports before you say the tests pass."

Questions

How can Claude Code or another AI agent see what my JetBrains IDE shows?

Install Agent Eyes and connect the agent to the IDE's built-in MCP server (Settings | Tools | MCP Server). The agent can then call ide_screenshot, which saves a PNG of the IDE window, the active editor or one tool window such as Run, Problems View or Terminal, and returns the file path together with the open tool windows, dialogs and active file. Taking the screenshot does not use your mouse or keyboard, and the IDE window can stay behind other windows.

The AI agent said the tests pass, but it never ran them. How do I stop that?

Have the agent call check_test_reports from Agent Eyes before it reports. It reads the JUnit XML reports of the project (Gradle build/test-results, Maven Surefire and Failsafe, pytest --junitxml, jest-junit) and its first line says PASSED, FAILED, 0 TESTS RAN, all tests skipped, NO TEST REPORTS FOUND, or STALE when source code changed after the newest report, which usually means the tests were not re-run after the last edit. Failing tests are listed by name.

Can an AI agent reformat code, optimize imports or build the project through the IDE?

Yes. With Agent Eyes the agent finds IDE commands with ide_find_actions and runs one with ide_invoke_action. Only safe commands are allowed: formatting, optimize imports, build, save, sync and build-file reload, navigation and opening tool windows. Commands that change version-control history, publish or delete are refused, and nothing is run while a dialog is open.

Two agent sessions run a full build at the same time and slow each other down. Can they take turns?

Yes. Agent Eyes gives the agent sessions on the same computer that use it a named lock: task_lock_acquire returns ACQUIRED or HELD with the holder and the time it ends, and task_lock_release frees it. Locks expire on their own, so a crashed session cannot block the others forever.

Which AI agents does Agent Eyes work with?

MCP clients that can connect to the JetBrains IDE's built-in MCP server, such as Claude Code, Codex, Junie or GitHub Copilot CLI. There is no separate server to run and no account to create.

Does Agent Eyes send my code or screenshots anywhere?

The plugin itself makes no network connections. Screenshots are saved only in your system temp folder, where the newest 50 are kept. The tools return their results to the agent you connected, which may send them on to its own service.

Works in

IntelliJ IDEA, PyCharm, WebStorm and other IntelliJ-based IDEs that include the MCP Server plugin, version 2025.2 and later.

Privacy

The plugin itself makes no network connections. Its tools return their results (screenshot file paths, open windows and dialog titles, open files, IDE action names, test report summaries, lock holders) to the agent you connected, which may send them on to its own service. Screenshots are saved only in the system temp folder (agent-eyes, newest 50 kept); locks are small files in ~/.agent-eyes/locks.

Support

If something does not work as expected, email contact@gramshift.com or open an issue at github.com/gramshiftofficial/jetbrains-plugins. We answer within 2 business days for problems that block your work and within 5 business days for other questions.

Give your agent eyes, and a way to prove its work.

Get Agent Eyes