corgea-cli 1.12.0__tar.gz → 1.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/Cargo.lock +1 -1
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/Cargo.toml +1 -1
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/PKG-INFO +1 -1
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/main.rs +54 -0
- corgea_cli-1.13.0/src/mcp.rs +1042 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/blast.rs +23 -5
- corgea_cli-1.13.0/tests/cli_mcp.rs +291 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.codex/hooks.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.github/workflows/npm-publish.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.github/workflows/release-binaries.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.github/workflows/release.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.github/workflows/staging-contract.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.github/workflows/test.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/.gitignore +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/AGENTS.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/LICENSE +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/README.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/RELEASING.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/bin/corgea.js +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/build_release.sh +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/examples/deps_skill.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/harness +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/pyproject.toml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/scripts/check-linux-binary.sh +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/scripts/npm/bundle-binaries.js +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/skills/corgea/SKILL.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/advisories.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/authorize.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/cicd.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/config.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/catalog.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/detect.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/diff.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/ecosystems/evaluate.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/ecosystems/maven.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/ecosystems/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/ecosystems/npm.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/ecosystems/pypi.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/explain.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/findings.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/model.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/parse/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/parse/npm_lock.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/parse/python_lock.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/policy.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/report.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/run.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/skill.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/common.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/correctness_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/detect_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/diff_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/explain_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/findings_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/maven_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/npm_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/policy_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/pypi_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/report_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/robustness_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/deps/tests/slice0_tests.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/images.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/incremental.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/inspect.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/lib.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/list.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/log.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/detect.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/exec.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/parse.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/render.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/test_support.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/tree.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/uv.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/precheck/verdict.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scan.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/fortify.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/parsers/checkmarx.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/parsers/coverity.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/parsers/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/parsers/sarif.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/scanners/parsers/semgrep.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/setup_hooks.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/skill.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/skip_scan.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/targets.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/utils/api.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/utils/generic.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/utils/terminal.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/verify_deps/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/verify_deps/registry.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/vuln_api/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/vuln_api_stub/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/src/wait.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_advisories.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_bare_install.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_config_errors.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_deps.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_deps_skill.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_exec_fallback.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_install.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_npm_ci.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_provenance.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_remediation.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_scan_include_image.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_scan_sbom.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_scan_wait_terminal_state.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_tree.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_uv_sync.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cli_verdict.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/block_on_report.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/common/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/inspect.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/main.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/scan_incremental.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/scan_list.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/scan_skip.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/cloud_commands_e2e/upload_wait.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/common/mod.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/README.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/go-mod-smoke/go.mod +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/go-mod-smoke/go.sum +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-gradle/build.gradle +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-gradle/gradle.lockfile +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-alias/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-chained/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-deep-chain/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-managed/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-parent/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-plugin-deps/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-profile-mgmt/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-props/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/java-maven-revision/pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/not-xml-pom.xml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/poetry.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/pyproject.toml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/malformed/truncated-poetry.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/mixed-monorepo/services/api/requirements.txt +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/mixed-monorepo/services/web/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/mixed-monorepo/services/web/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-app/.corgea/deps.yml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-app/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-app/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-monorepo/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-monorepo/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-monorepo/packages/a/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-monorepo/packages/b/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-pnpm/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-pnpm/pnpm-lock.yaml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-stale/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-stale/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-transitive/package-lock.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-transitive/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-yarn/package.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/node-yarn/yarn.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-pip-nolock/requirements.txt +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-poetry/poetry.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-poetry/pyproject.toml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-poetry-multi/poetry.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-poetry-multi/pyproject.toml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-uv-requirements/pyproject.toml +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-uv-requirements/requirements.txt +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/python-uv-requirements/uv.lock +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/README.md +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/check_clean.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/check_malware.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/check_unknown.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/check_vulnerable.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/package_profile.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/fixtures/vuln_api/package_profile_not_found.json +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/harness_smoke.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/list_code_quality.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/list_resolution.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/logging_e2e.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/vuln_api_contract.rs +0 -0
- {corgea_cli-1.12.0 → corgea_cli-1.13.0}/tests/wait_resolution.rs +0 -0
|
@@ -6,6 +6,7 @@ mod incremental;
|
|
|
6
6
|
mod inspect;
|
|
7
7
|
mod list;
|
|
8
8
|
mod log;
|
|
9
|
+
mod mcp;
|
|
9
10
|
mod scan;
|
|
10
11
|
mod setup_hooks;
|
|
11
12
|
mod skill;
|
|
@@ -313,6 +314,11 @@ enum Commands {
|
|
|
313
314
|
#[command(subcommand)]
|
|
314
315
|
command: SkillCommands,
|
|
315
316
|
},
|
|
317
|
+
/// Install the Corgea MCP server into an agent's config
|
|
318
|
+
Mcp {
|
|
319
|
+
#[command(subcommand)]
|
|
320
|
+
command: McpCommands,
|
|
321
|
+
},
|
|
316
322
|
/// Offline dependency inventory: scan, graph, explain, diff, sbom, policy
|
|
317
323
|
Deps {
|
|
318
324
|
#[command(subcommand)]
|
|
@@ -502,6 +508,37 @@ enum SkillCommands {
|
|
|
502
508
|
},
|
|
503
509
|
}
|
|
504
510
|
|
|
511
|
+
#[derive(Subcommand, Debug)]
|
|
512
|
+
enum McpCommands {
|
|
513
|
+
/// Install (or reinstall) the Corgea MCP server in an agent's JSON config
|
|
514
|
+
Install {
|
|
515
|
+
#[arg(
|
|
516
|
+
long,
|
|
517
|
+
help = "Agent to install for (e.g. cursor, claude, claude-code). Defaults to the configured default agent."
|
|
518
|
+
)]
|
|
519
|
+
agent: Option<String>,
|
|
520
|
+
|
|
521
|
+
#[arg(
|
|
522
|
+
long,
|
|
523
|
+
default_value = "user",
|
|
524
|
+
help = "Installation scope: user or project."
|
|
525
|
+
)]
|
|
526
|
+
scope: String,
|
|
527
|
+
|
|
528
|
+
#[arg(
|
|
529
|
+
long,
|
|
530
|
+
help = "Write to a custom JSON file (overrides the agent's default path)."
|
|
531
|
+
)]
|
|
532
|
+
dir: Option<String>,
|
|
533
|
+
|
|
534
|
+
#[arg(
|
|
535
|
+
long,
|
|
536
|
+
help = "Persist the provided --agent as the default for future installs."
|
|
537
|
+
)]
|
|
538
|
+
set_default: bool,
|
|
539
|
+
},
|
|
540
|
+
}
|
|
541
|
+
|
|
505
542
|
#[derive(Subcommand, Debug, Clone, PartialEq)]
|
|
506
543
|
enum Scanner {
|
|
507
544
|
Snyk,
|
|
@@ -974,6 +1011,23 @@ fn main() {
|
|
|
974
1011
|
skill::run_set_default_agent(&mut corgea_config, agent);
|
|
975
1012
|
}
|
|
976
1013
|
},
|
|
1014
|
+
Some(Commands::Mcp { command }) => match command {
|
|
1015
|
+
McpCommands::Install {
|
|
1016
|
+
agent,
|
|
1017
|
+
scope,
|
|
1018
|
+
dir,
|
|
1019
|
+
set_default,
|
|
1020
|
+
} => {
|
|
1021
|
+
verify_token_and_exit_when_fail(&corgea_config);
|
|
1022
|
+
mcp::run_install(
|
|
1023
|
+
&mut corgea_config,
|
|
1024
|
+
agent.clone(),
|
|
1025
|
+
scope,
|
|
1026
|
+
dir.clone(),
|
|
1027
|
+
*set_default,
|
|
1028
|
+
);
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
977
1031
|
Some(Commands::Deps { command }) => {
|
|
978
1032
|
// Offline: no token / network. Exit code propagates fail-on policy.
|
|
979
1033
|
std::process::exit(i32::from(corgea::deps::run::run(command.clone())));
|