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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Junie agent

1 participant