feat: auto-install support for the Junie agent#664
Open
mvanhorn wants to merge 1 commit into
Open
Conversation
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds JetBrains' Junie to the agents that
install/uninstallauto-detect and wire,so Junie users get the codebase-memory-mcp MCP server registered the same way Cursor,
Antigravity, OpenCode and the others already are. Closes #651.
Junie is detected by the presence of
~/.junie/, andinstallwrites the MCP entry to~/.junie/mcp/mcp.jsonusing the standardmcpServersJSON format (the same writerCursor and Antigravity use). The entry is upserted, so re-running
installdoes notduplicate it, and
uninstallremoves exactly that entry while leaving the rest of theconfig intact. The change is additive and gated on detection, so non-Junie users are
unaffected. Junie is also listed in the
Detected agents:line and theinstall --planreceipt.Checklist
git commit -s) — required, CI rejectsunsigned commits (DCO, see CONTRIBUTING.md)
make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)New tests in
tests/test_cli.c:cli_detect_agents_finds_junie_issue651(detection) andcli_junie_mcp_install_issue651(install writes a well-formed entry, a second installstays idempotent, uninstall removes it). The
clisuite passes: 102 passed, 0 failed.Fixes #651