add_component
Installs missing CI/CD, security, dependabot, or maintenance files from a starter into an existing repo. Default dry-run previews the file plan; set dry_run false to apply only necessary changes.
Instructions
Lift a starter's CI/CD layer into an EXISTING repo without re-scaffolding — the remediation half of the audit loop (audit_security/audit_release diagnose; this installs the missing files from the matching starter). Components: ci (.github/workflows/ci.yml), security (codeql.yml + SECURITY.md), dependabot (dependabot.yml + auto-merge), maintenance (stale + weekly health check), or all. DRY-RUN BY DEFAULT: returns a per-file plan (create / identical / skip-exists / overwrite) and writes nothing until dry_run is false. Existing-but-different files are skipped unless force — so the dry-run plan doubles as a drift report against the starter. Never touches app code or secrets-bearing CD workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the repo (default: the MCP server's cwd). Use the absolute path of the project the user is working in. | |
| force | No | Overwrite files that differ from the starter AND allow applying onto a dirty git tree. Default false. | |
| dry_run | No | Preview only (default true). Set false to write the planned files. | |
| starter | No | Template id to lift from (see list_templates). Auto-detected from the repo when omitted. | |
| component | No | Which group to lift (default: all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | ||
| dryRun | Yes | ||
| starter | Yes | ||
| written | Yes | ||
| repoPath | Yes | ||
| warnings | Yes | ||
| component | Yes | ||
| starterSource | Yes |