Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Built with a **Hexagonal Architecture**, DebtDrone ships as a single, statically-linked Go binary that serves three distinct purposes:
1. **Interactive TUI:** A beautiful, responsive terminal interface for developers to explore code complexity locally.
2. **Headless CLI:** A robust, pipeline-ready executable for CI/CD environments with strict quality gates and JSON outputs.
3. **Coding-agent MCP:** A local stdio server on `main` that scans within an explicit repository root without modifying its contents.
3. **Coding-agent MCP:** A local stdio server that scans within an explicit repository root without modifying its contents.

---

Expand Down Expand Up @@ -44,9 +44,10 @@ Built on [Cobra](https://github.com/spf13/cobra).

[Configure DebtDrone for a coding agent →](https://cli.debtdrone.net/mcp-and-agents/)

> **Release status:** MCP is available on `main` but is not part of the
> latest tagged release, `v2.1.0`. The agent guide includes a temporary
> source installation until the next approved release.
> **Release availability:** MCP is included in `v2.2.0` and later. If the latest
> tagged release is older, temporarily install the current source with
> `go install github.com/endrilickollari/debtdrone-cli/v2/cmd/debtdrone@main`.
> Once `v2.2.0` is available, upgrade through your normal installation method.

---

Expand Down
6 changes: 3 additions & 3 deletions cmd/debtdrone/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func TestScanCmd_QualityGate(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
root := createRootWithScan()
args := []string{"scan", testRepo}
args := []string{"scan", testRepo, "--security-scan=false"}
if tt.failOn != "" {
args = append(args, "--fail-on", tt.failOn)
}
Expand All @@ -163,7 +163,7 @@ func TestScanCmd_OutputFormats(t *testing.T) {

t.Run("--format=json", func(t *testing.T) {
root := createRootWithScan()
output, _, err := executeCommandWithStreams(root, "scan", testRepo, "--format", "json")
output, _, err := executeCommandWithStreams(root, "scan", testRepo, "--format", "json", "--security-scan=false")

if err != nil {
t.Fatalf("Expected no error, got %v", err)
Expand All @@ -180,7 +180,7 @@ func TestScanCmd_OutputFormats(t *testing.T) {

t.Run("--format=text", func(t *testing.T) {
root := createRootWithScan()
output, err := executeCommand(root, "scan", testRepo, "--format", "text")
output, err := executeCommand(root, "scan", testRepo, "--format", "text", "--security-scan=false")

if err != nil {
t.Fatalf("Expected no error, got %v", err)
Expand Down
2 changes: 1 addition & 1 deletion public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> DebtDrone is an open-source technical-debt scanner with an interactive TUI, a headless CLI for automation, a local MCP server, and a reusable Go scanner API.

Coding agents can start `debtdrone mcp --root <absolute-path>` as a local, read-only stdio server. Its `scan_repository` tool cannot access paths outside the configured root. MCP is currently available on `main` and is not included in the latest tagged release, `v2.1.0`.
Coding agents can start `debtdrone mcp --root <absolute-path>` as a local, read-only stdio server. Its `scan_repository` tool cannot access paths outside the configured root. MCP is included in v2.2.0 and later; while the latest tagged release is older, users can temporarily install `github.com/endrilickollari/debtdrone-cli/v2/cmd/debtdrone@main` from source.

## Start here

Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/command-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ results were printed.
## `debtdrone mcp`

:::note[Release availability]
This command is available on `main` but is not included in `v2.1.0`. Follow
[MCP and coding agents](../mcp-and-agents/#before-you-connect-an-agent) for the
temporary source installation.
This command is included in `v2.2.0` and later. If the latest tagged release is
still older, follow the temporary source-installation instructions in
[MCP and coding agents](../mcp-and-agents/#before-you-connect-an-agent).
:::

```text
Expand Down
5 changes: 2 additions & 3 deletions src/content/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ matching severity should return a non-zero status in CI.

Connect Codex or Claude Code to the local, repository-scoped MCP server. The
`scan_repository` tool uses the same scanner as the CLI, stays within the root
you configure, and does not modify repository contents. MCP is currently
available on `main` and will enter tagged distribution with the next approved
release.
you configure, and does not modify repository contents. MCP is included in
`v2.2.0` and later.

[Connect a coding agent →](./mcp-and-agents/)

Expand Down
16 changes: 7 additions & 9 deletions src/content/docs/mcp-and-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@ repository contents.
## Before you connect an agent

:::note[MCP release availability]
The `mcp` command is available on `main` but is not included in the latest
tagged release, `v2.1.0`. Until the next approved release is published, install
the current source version:
The `mcp` command is included in `v2.2.0` and later. If the latest tagged
release is still older than `v2.2.0`, install the current source temporarily:

```bash title="Terminal · Install MCP support from main"
```bash title="Terminal · Install MCP support before v2.2.0"
go install github.com/endrilickollari/debtdrone-cli/v2/cmd/debtdrone@main
```

The same `go install` command works in PowerShell.

This requires the Go and C compiler prerequisites described in
[Install the CLI](../installation/). Return to the normal tagged installation
methods after a release containing `debtdrone mcp` is available.
The same command works in PowerShell and requires the Go and C compiler
prerequisites described in [Install the CLI](../installation/). Once `v2.2.0`
is available, return to a normal tagged installation. Restart your agent after
changing the executable so it discovers the updated command.
:::

Confirm that the installed binary exposes the MCP command and is discoverable
Expand Down
22 changes: 16 additions & 6 deletions src/content/docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,25 @@ debtdrone scan . --format=json --security-scan=false

## Configuration changes have no effect on scans

This is expected in the current release. `debtdrone init` generates a preview
repository file, but scans do not load it. The user-level `debtdrone config set`
command persists values safely, but scan, MCP, and TUI entry points do not apply
them until the remaining integration lands.
First inspect the effective value and its winning source:

Pass scan settings as flags instead:
```bash
debtdrone config get scan.max_complexity
debtdrone config list
```

Headless, MCP, and TUI scans all apply the versioned user configuration.
`DEBTDRONE_*` environment variables override the file, and explicit scan flags
or MCP tool inputs override both. Remove an unintended environment override or
use `debtdrone config unset <key>` when the file should fall back to its default.

The repository-level `.debtdrone.yaml` file created by `debtdrone init` is a
separate preview format and is not loaded by current scans. Persist supported
settings with `debtdrone config set` instead:

```bash
debtdrone scan . --max-complexity=12 --fail-on=high
debtdrone config set scan.max_complexity 12
debtdrone config set scan.fail_on high
```

If a config command reports malformed or incompatible YAML, follow the path in
Expand Down
Loading