Skip to content

Add lint baseline - #22

Merged
ShmueLior merged 2 commits into
mainfrom
feat/lint-baseline
Nov 29, 2026
Merged

ShmueLior merged 2 commits into
mainfrom
feat/lint-baseline

Conversation

@ShmueLior

Copy link
Copy Markdown
Owner

lint can now accept the findings a server already has and fail only on new ones.

mcpprobe lint --write-baseline writes the current findings (sorted, no timestamps) and exits 0. lint --baseline , or "baseline" in mcpprobe.json (relative to that file, the flag wins), hides them. The report prints Hidden: N baselined. and lists entries that no longer match. Those are info only and never fail the run. Run --write-baseline again to refresh.

An entry is rule, tool and optional parameter, not the message, so a baseline survives wording changes. Rules that didn't run (like MCPP010 without --strict) are not called stale.

A missing, empty or bad baseline file, or both flags together, exits 2 before connecting. With no baseline, output is unchanged.

Library: LintBaseline, LintBaselineEntry, LintOptions.Baseline, LintReport.BaselinedFindings and StaleBaselineEntries. The Action gets a lint-baseline input and the Azure template a lintBaseline parameter, both passed as --baseline to lint only. There is no input to write one; do that locally and commit the file.

mcpprobe lint --write-baseline <file> writes the current findings to a
sorted lint baseline file and exits 0. lint --baseline <file>, or
"baseline" in mcpprobe.json (relative to that file), hides those
findings so only new ones fail. Entries are keyed by rule, tool and
optional parameter, not by message, so a baseline survives wording
changes. The report says "Hidden: N baselined." and lists entries that
no longer match; they never fail the run.

Library users get LintBaseline, LintBaselineEntry, LintOptions.Baseline,
LintReport.BaselinedFindings and LintReport.StaleBaselineEntries. The
Action gets a lint-baseline input and the Azure template a lintBaseline
parameter, both passed as --baseline.
@ShmueLior
ShmueLior merged commit 4ed14c1 into main Nov 29, 2026
3 checks passed
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