feat(cli): add pay qodercli subcommand and Qoder IDE/CLI setup integration#377
feat(cli): add pay qodercli subcommand and Qoder IDE/CLI setup integration#377radioheadz wants to merge 1 commit into
pay qodercli subcommand and Qoder IDE/CLI setup integration#377Conversation
|
@radioheadz is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryAdds
Confidence Score: 5/5Safe to merge; the Windows launcher correctly addresses the PowerShell here-string and race-condition issues from prior reviews, and all new code paths are covered by tests. Previous blocking issues — the PowerShell rust/crates/cli/src/commands/qodercli/mod.rs — the Windows cleanup-on-error path and the missing equivalent to Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant pay CLI
participant setup.rs
participant qodercli/mod.rs
participant qodercli binary
User->>pay CLI: pay setup
pay CLI->>setup.rs: install_mcp_configs()
setup.rs->>setup.rs: add_mcp_entry(qoder_ide_config_path)
note right of setup.rs: ~/Library/.../Qoder/SharedClientCache/mcp.json
setup.rs->>setup.rs: add_qodercli_mcp_entry(~/.qoder/settings.json)
note right of setup.rs: Guarded by parent-dir existence check
User->>pay CLI: pay qodercli [args]
pay CLI->>qodercli/mod.rs: QodercliCommand::run()
qodercli/mod.rs->>qodercli/mod.rs: build_mcp_config(pay_bin, active_account, env)
alt Unix/macOS/Linux
qodercli/mod.rs->>qodercli binary: qodercli --mcp-config <json> --allowed-tools ... --append-system-prompt ...
else Windows
qodercli/mod.rs->>qodercli/mod.rs: "write pay_qodercli_mcp_config_{pid}.json"
qodercli/mod.rs->>qodercli/mod.rs: "write pay_qodercli_launcher_{pid}.ps1"
qodercli/mod.rs->>qodercli binary: powershell -File launcher.ps1
qodercli/mod.rs->>qodercli/mod.rs: cleanup temp files (best-effort)
end
qodercli binary-->>User: interactive session with pay MCP
Reviews (4): Last reviewed commit: "feat(cli): add pay qodercli subcommand a..." | Re-trigger Greptile |
dff8ab9 to
f72e063
Compare
f72e063 to
1be189a
Compare
1be189a to
4ad2b87
Compare
Summary
Adds first-class Qoder support to the pay CLI — both runtime launch and persistent setup.
Changes
pay qoderclisubcommandNew command that launches
qodercliwith the pay MCP server injected via--mcp-config(stateless, session-scoped). Includes Windows support viaPowerShell wrapper and 5 unit tests covering config generation and
cross-platform logic.
pay setup— Qoder IDE & CLI registrationRegisters the pay MCP server in both Qoder clients by writing JSON config
files directly (no CLI commands invoked):
~/Library/Application Support/Qoder/SharedClientCache/mcp.json~/.qoder/settings.jsonUses the same
add_mcp_entry()approach as Claude Code/Desktop for consistency.Other
Testing
cargo clippy -p pay -- -D warnings: zero warnings.pay setup: successfully writes both config files.pay qodercli: launches with pay MCP available in session.Generated with Qoder