Skip to main content
While Flux is open it can run an MCP server, so an agent in your terminal — Claude Code, or any MCP client — reads the same logs through the same connections.
1

Turn it on

Click the MCP icon in the status bar and tick Enable MCP Server. The server listens on 127.0.0.1 only, behind a token Flux makes for you.
2

Add it to Claude Code

Copy command gives you the one line to paste:
3

Ask

claude, then a question. The agent calls Flux’s tools and tells you what it found; open_query opens the query in Flux in front of you.

Tools

count_messages takes logging calls as the code has them and the repository or folder they are in; Flux finds the project and counts each message over the last day. It is what the editor extension below asks. Every tool reads; only save_query writes, and only to Flux’s own saved queries, never to a source. Tokens are never part of an answer.

Leave a watch behind

After a deploy, ask the agent to keep an eye on what the change could break. It calls save_query with the connection, the streams and a Lucene query, and the query appears in the Queries tool window, watched: while Flux runs it is asked every round and new matches are announced on the island and as a notification, exactly as a watch you set yourself.
every sets how often it asks, between 15 seconds and an hour; quiet_below turns it into a silence watch, for a cron or a webhook that should keep arriving; watch: false saves it without watching. Saving the same query on the same streams again updates it rather than adding a second.

In your editor

The JetBrains plugin and the VS Code extension, in extensions/jetbrains and extensions/vscode of the repository, take the same server the other way: from the code to the logs. The plugin works in PhpStorm, IntelliJ IDEA, GoLand, WebStorm and the rest of the IntelliJ Platform.
  • Above each logging call, how often its message was written in the last day — “864 log calls in the last day” — asked with count_messages, in the streams of the branch the checkout is on. Flux must be open, with the MCP server on.
  • Show in Flux, on a line’s right-click menu, opens the project’s console on what that line logs. Select the message’s words first to search for just those.
The project is found from the checkout: the folder a project was opened on, or the repository a project names. Nothing is counted until a branch is given its streams. Under Settings › Editor Extensions › Branches, give each branch of the project the streams it logs to, on whichever connection that is: main the production ones, develop the stage ones, release/* or * for the rest. A branch’s own name wins over a pattern, and a longer pattern over a shorter one. A branch given none shows no counts, since a count from the wrong environment says something false about the code, and Show in Flux says so instead of opening a console. The same page downloads both plugins and turns the MCP server on. Both read the server’s address and token from Flux’s own settings and keep nothing. Both come with every release: Flux-JetBrains.jar installs from Settings › Plugins › ⚙ › Install Plugin from Disk…, Flux-VSCode.vsix from Extensions › … › Install from VSIX….