Skip to content

feat: auto-install support for the Junie agent#664

Open
mvanhorn wants to merge 1 commit into
DeusData:mainfrom
mvanhorn:feat/651-feat-auto-install-support-for-the-junie-
Open

feat: auto-install support for the Junie agent#664
mvanhorn wants to merge 1 commit into
DeusData:mainfrom
mvanhorn:feat/651-feat-auto-install-support-for-the-junie-

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds JetBrains' Junie to the agents that install / uninstall auto-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/, and install writes the MCP entry to
~/.junie/mcp/mcp.json using the standard mcpServers JSON format (the same writer
Cursor and Antigravity use). The entry is upserted, so re-running install does not
duplicate it, and uninstall removes exactly that entry while leaving the rest of the
config 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 the
install --plan receipt.

Checklist

  • Every commit is signed off (git commit -s) — required, CI rejects
    unsigned commits (DCO, see CONTRIBUTING.md)
  • Tests pass locally (make -f Makefile.cbm test)
  • Lint passes (make -f Makefile.cbm lint-ci)
  • New behavior is covered by a test (reproduce-first for bug fixes)

New tests in tests/test_cli.c: cli_detect_agents_finds_junie_issue651 (detection) and
cli_junie_mcp_install_issue651 (install writes a well-formed entry, a second install
stays idempotent, uninstall removes it). The cli suite passes: 102 passed, 0 failed.

Fixes #651

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
@mvanhorn mvanhorn mentioned this pull request Jun 28, 2026
1 task
@DeusData

Copy link
Copy Markdown
Owner

Huge thanks for opening this PR and for the work you put into it.

The maintainer shop is currently full, so this may sit for a bit before it gets a proper review. We will come back to this as soon as possible with real feedback; I wanted to make sure it did not sit unacknowledged in the meantime.

@DeusData DeusData added enhancement New feature or request editor/integration Editor compatibility and CLI integration priority/backlog Valuable contribution, lower scheduling urgency; review when maintainer capacity opens. labels Jun 29, 2026
@DeusData

DeusData commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Thanks. This is a small additive agent config change. Please link or cite the Junie config path/format for ~/.junie/mcp/mcp.json, and confirm install/uninstall/dry-run behavior is idempotent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor/integration Editor compatibility and CLI integration enhancement New feature or request priority/backlog Valuable contribution, lower scheduling urgency; review when maintainer capacity opens.

2 participants