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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project are documented here. The format is based on

## [Unreleased]

## [0.5.0-preview] - 2026-11-29

### Added

- `mcpprobe.json`: a committed config file for `mcpprobe lint` (`failOn`, `strict`, `nested`, `minDescriptionLength`, `minDescriptionWords`, `rules`, and `ignore`). `lint` uses the nearest file, starting in the current directory and going up to the repository root (the first folder with a `.git`), and says `Using config <path>.` on stderr. New flags: `--config <file>` and `--no-config`. Order of precedence: defaults, then the file, then flags typed on the command line (`--nested false` and `--strict false` can turn a file setting off; `--rule` merges per rule id). Without a file nothing changes. The file is read strictly (unknown keys, wrong types and unknown rule ids exit 2), allows comments and trailing commas, and holds lint settings only, not a server to start. A repository that already has an unrelated `mcpprobe.json` will now have it read by `lint`. JSON schema: `docs/mcpprobe.schema.json`.
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</PropertyGroup>

<PropertyGroup Label="Package metadata">
<VersionPrefix>0.4.0</VersionPrefix>
<VersionPrefix>0.5.0</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<Authors>Lior Shmueli</Authors>
<Copyright>Copyright (c) 2026 Lior Shmueli</Copyright>
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Test kit for MCP servers built with the [MCP C# SDK](https://github.com/modelcon

Works with any test framework: failures are plain `McpProbeAssertionException`s. Targets .NET 8 and .NET 10, on ModelContextProtocol 2.4.0.

> Status: 0.4.0-preview on NuGet. The API may change before 1.0.
> Status: 0.5.0-preview on NuGet. The API may change before 1.0.

![mcpprobe CLI: snapshot a server, lint it, then catch a breaking tool-surface change](docs/demo.gif)

Expand Down Expand Up @@ -199,7 +199,7 @@ In code: `new LintOptions { Baseline = LintBaseline.Load("mcpprobe-lint-baseline
Write a snapshot once and commit it, then check it in CI:

```bash
dotnet tool install --global McpProbe.Cli --version 0.4.0-preview
dotnet tool install --global McpProbe.Cli --version 0.5.0-preview

mcpprobe snapshot --stdio "dotnet run --project src/MyServer" --out mcp-tools.json
mcpprobe diff --stdio "dotnet run --project src/MyServer" --baseline mcp-tools.json
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
10.0.x
- run: dotnet build -c Release
- name: Check MCP tool surface
uses: ShmueLior/mcpprobe@v0.4.0-preview
uses: ShmueLior/mcpprobe@v0.5.0-preview
with:
stdio: dotnet run --no-build --project src/MyServer -c Release
baseline: mcp-tools.json
Expand All @@ -271,9 +271,9 @@ Inputs follow the CLI: `stdio`, `http`, or `from-file` (exactly one), plus `base

`strict`, `transport`, and `report` are off by default, so an unchanged workflow runs the same commands as before. `strict` is lint-only. `transport` is only used with `http`. `report` is a directory, not a file: the Action writes `lint.html` and/or `diff.html` there (both checks run by default, so a single file path would overwrite one report with the other). The job summary stays the plain-text report. Upload is left to your workflow.

`config` is the path of a [`mcpprobe.json`](#config-file-and-ignore-rules) for lint. Leave it empty and lint finds one on its own, starting in the step's working directory (the repository root after `actions/checkout`), so a committed `mcpprobe.json` is used without any input. `config` needs a CLI that has `--config`, the release after 0.4.0-preview; the Action fails fast with a message if the installed tool lacks it.
`config` is the path of a [`mcpprobe.json`](#config-file-and-ignore-rules) for lint. Leave it empty and lint finds one on its own, starting in the step's working directory (the repository root after `actions/checkout`), so a committed `mcpprobe.json` is used without any input. `config` needs a CLI that has `--config`, which is 0.5.0-preview or later; the Action fails fast with a message if the installed tool lacks it.

`lint-baseline` is passed to lint as `--baseline` (the `baseline` input is the snapshot for `diff`). It overrides `"baseline"` in `mcpprobe.json` and has the same CLI requirement as `config`. There is no input to write a baseline; do that locally and commit the file.
`lint-baseline` is passed to lint as `--baseline` (the `baseline` input is the snapshot for `diff`). It overrides `"baseline"` in `mcpprobe.json` and has the same CLI requirement as `config`. There is no input to write a baseline; do that locally and commit the file. `config` and `lint-baseline` need `ShmueLior/mcpprobe@v0.5.0-preview` or later; the v0.4.0-preview wrapper does not have them.

`strict` and `transport` also work against the 0.3.0-preview CLI. `report` needs a CLI that has `--report`, which is 0.4.0-preview or later. If you set `report` and the installed tool lacks the flag, the Action fails fast with a message instead of a generic "unrecognized option". Do not add these inputs to a workflow that pins `ShmueLior/mcpprobe@v0.3.0-preview`; that tag's wrapper does not have them.

Expand Down Expand Up @@ -306,7 +306,7 @@ resources:
type: github
name: ShmueLior/mcpprobe
endpoint: GitHub
ref: refs/tags/v0.4.0-preview
ref: refs/tags/v0.5.0-preview

steps:
- checkout: self
Expand All @@ -320,7 +320,7 @@ steps:
baseline: mcp-tools.json
```

The template needs bash (Git Bash on Windows). It also accepts `strict`, `transport`, `report` (a directory, as in the Action), `config` and `lintBaseline`. Do not add those parameters to a pipeline that pins `refs/tags/v0.3.0-preview`; that tag's template does not have them. Upload is a separate step; the template does not publish an artifact:
The template needs bash (Git Bash on Windows). It also accepts `strict`, `transport`, `report` (a directory, as in the Action), `config` and `lintBaseline`. Do not add those parameters to a pipeline that pins `refs/tags/v0.3.0-preview`; that tag's template does not have them. `config` and `lintBaseline` need `refs/tags/v0.5.0-preview` or later. Upload is a separate step; the template does not publish an artifact:

```yaml
- task: PublishPipelineArtifact@1
Expand All @@ -339,7 +339,7 @@ If you cannot reference the GitHub repo, install the tool and run the same comma
- script: |
set -euo pipefail
tool_path="$(Agent.TempDirectory)/mcpprobe-cli"
dotnet tool install McpProbe.Cli --tool-path "$tool_path" --version 0.4.0-preview
dotnet tool install McpProbe.Cli --tool-path "$tool_path" --version 0.5.0-preview
export PATH="$tool_path:$PATH"
mcpprobe diff --stdio "dotnet run --no-build --project src/MyServer -c Release" --baseline mcp-tools.json
mcpprobe lint --stdio "dotnet run --no-build --project src/MyServer -c Release"
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ inputs:
Exact McpProbe.Cli version to install. Defaults to the same version as this
repository's package. Do not set this to latest.
required: false
default: '0.4.0-preview'
default: '0.5.0-preview'
source:
description: >-
If set, the only NuGet source used to install McpProbe.Cli (a folder of
Expand Down
2 changes: 1 addition & 1 deletion templates/azure-pipelines/mcpprobe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# type: github
# name: ShmueLior/mcpprobe
# endpoint: GitHub
# ref: refs/tags/v0.4.0-preview
# ref: refs/tags/v0.5.0-preview
#
# steps:
# - checkout: self
Expand Down
Loading