Skip to content

Add Support For Qoder#758

Open
autoberry wants to merge 2 commits into
colbymchenry:mainfrom
autoberry:main
Open

Add Support For Qoder#758
autoberry wants to merge 2 commits into
colbymchenry:mainfrom
autoberry:main

Conversation

@autoberry

Copy link
Copy Markdown

Summary

Add Qoder CLI as a native installer target for codegraph install.

When ~/.qoder/ (global) or /.qoder/ (local) is detected, the installer auto-selects Qoder
CLI in the multiselect prompt and writes mcpServers.codegraph into the corresponding
settings.json. The operation is fully idempotent and reversible via --uninstall. Users can also
target it explicitly with --target=qoder.

Motivation

Qoder CLI (https://github.com/qoder-ai/qodercli) is a growing AI coding agent that supports MCP
servers via settings.json. Adding first-class support in Codegraph's installer allows Qoder users
to onboard with a single codegraph install command, matching the existing experience for Claude
Code, Cursor, Codex, etc.

Changes

File Description
src/installer/targets/qoder.ts New QoderTarget class implementing AgentTarget interface
src/installer/targets/registry.ts Register qoderTarget in ALL_TARGETS
src/installer/targets/types.ts Add 'qoder' to TargetId union
tests/installer-targets.test.ts 8 new tests covering install/detect/uninstall/idempotency
CHANGELOG.md Document the new feature
README.md Add Qoder CLI to the supported agents list
package.json Version bump to 1.0.0-beta.1

Design Decisions

  • Settings only — Qoder CLI has no permissions system or instructions file, so the target only writes mcpServers.codegraph to settings.json (not settings.local.json or AGENTS.md).
  • Non-destructive merge — Existing keys in settings.json (other mcpServers, user preferences) are preserved.
  • Idempotent — Re-running install when the config already matches returns action: 'unchanged' without rewriting the file.
  • Clean uninstall — Removes only mcpServers.codegraph; if mcpServers becomes empty, the key is removed entirely.

Test Plan

  • npm test — all existing + new tests pass
  • Manual: run codegraph install --target=qoder on a machine with ~/.qoder/ and verify settings.json is correctly written
  • Manual: run codegraph install --target=qoder --uninstall and verify the entry is cleanly removed
  • Manual: verify install preserves existing MCP server entries in settings.json

masterlee added 2 commits June 6, 2026 00:38
Spec for native QoderCLI support in `codegraph install` — adds a new
`AgentTarget` (qoder) to the existing pluggable installer registry,
mapping global→~/.qoder/settings.json and local→<repo>/.qoder/settings.json
with surgical `mcpServers.codegraph` writes only.
- Add qoder installer target that writes mcpServers.codegraph to
  ~/.qoder/settings.json (global) or <project>/.qoder/settings.json (local)
- Fully idempotent and reversible with --uninstall, use --target=qoder explicitly
- Register qoder target in the target registry
- Add comprehensive tests covering install, detect, uninstall, and idempotency
- Update CHANGELOG, README, and .gitignore accordingly
- Bump version to 1.0.0-beta.1
- Remove accidentally added "2" dependency
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.

1 participant