From 01c436579971d437142ab0bf3bb8248ff2e46219 Mon Sep 17 00:00:00 2001 From: Lior Shmueli <48066416+ShmueLior@users.noreply.github.com> Date: Sun, 29 Nov 2026 09:58:13 +0200 Subject: [PATCH] Set version to 0.5.0-preview --- CHANGELOG.md | 2 ++ Directory.Build.props | 2 +- README.md | 16 ++++++++-------- action.yml | 2 +- templates/azure-pipelines/mcpprobe.yml | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c74867f..4cad27a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 .` on stderr. New flags: `--config ` 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`. diff --git a/Directory.Build.props b/Directory.Build.props index d57d8d2..84f6c54 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -12,7 +12,7 @@ - 0.4.0 + 0.5.0 preview Lior Shmueli Copyright (c) 2026 Lior Shmueli diff --git a/README.md b/README.md index 58461ee..bbff75f 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 @@ -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 @@ -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. @@ -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 @@ -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 @@ -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" diff --git a/action.yml b/action.yml index 93f6c5d..4f6a4cb 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/templates/azure-pipelines/mcpprobe.yml b/templates/azure-pipelines/mcpprobe.yml index d10b78c..5c75f90 100644 --- a/templates/azure-pipelines/mcpprobe.yml +++ b/templates/azure-pipelines/mcpprobe.yml @@ -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