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.6.0-preview] - 2026-12-04

### Added

- Lint checks resource templates when the server declares the resources capability: MCPP025 (no description), MCPP026 (missing, invalid or duplicate uri, uriTemplate or prompt name, error) and MCPP027 (no name). Listed resources are checked only with `--resources` (config `lint.resources`). MCPP028 checks icons on tools, prompts and resource templates from a live server, without fetching them. `--from-file` lints tools only, so MCPP028 does not run on a snapshot file.
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.5.0</VersionPrefix>
<VersionPrefix>0.6.0</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<Authors>Lior Shmueli</Authors>
<Copyright>Copyright (c) 2026 Lior Shmueli</Copyright>
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A .NET test kit for C# MCP server testing, for servers built with the [MCP C# SD

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

> Status: 0.5.0-preview on NuGet. The API may change before 1.0.
> Status: 0.6.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 @@ -226,7 +226,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.5.0-preview
dotnet tool install --global McpProbe.Cli --version 0.6.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 @@ -300,7 +300,7 @@ This is the .NET / NuGet McpProbe Action from [`ShmueLior/mcpprobe`](https://git

The `McpProbe tool surface check` Action installs the same `McpProbe.Cli` version as the tag you pin, then runs `diff` and `lint`. It needs `actions/checkout`, `actions/setup-dotnet` (a .NET 8 or .NET 10 SDK), and your server already built. Reports go to the job summary.

Pin an exact release tag that includes the Action (0.3.0-preview or later), for example `ShmueLior/mcpprobe@v0.5.0-preview`. Do not pin `@main`. There is no supported floating `@v0` or `@v1` tag until 1.0.
Pin an exact release tag that includes the Action (0.3.0-preview or later), for example `ShmueLior/mcpprobe@v0.6.0-preview`. Do not pin `@main`. There is no supported floating `@v0` or `@v1` tag until 1.0.

```yaml
name: CI
Expand All @@ -325,7 +325,7 @@ jobs:
10.0.x
- run: dotnet build -c Release
- name: Check MCP tool surface
uses: ShmueLior/mcpprobe@v0.5.0-preview
uses: ShmueLior/mcpprobe@v0.6.0-preview
with:
stdio: dotnet run --no-build --project src/MyServer -c Release
baseline: mcp-tools.json
Expand All @@ -337,7 +337,7 @@ Pass exactly one of `stdio`, `http`, or `from-file`. Both `diff` and `lint` are

```yaml
- name: Check MCP tool surface
uses: ShmueLior/mcpprobe@v0.5.0-preview
uses: ShmueLior/mcpprobe@v0.6.0-preview
with:
http: https://example.test/mcp
bearer-env: MCP_TOKEN
Expand Down Expand Up @@ -371,7 +371,7 @@ Pass exactly one of `stdio`, `http`, or `from-file`. Both `diff` and `lint` are
| `lint-baseline` | empty | Path to a lint baseline written by 'mcpprobe lint --write-baseline'. Findings in it don't fail lint. Not the snapshot (that is baseline). Overrides baseline in mcpprobe.json. Requires a CLI that has lint --baseline. |
| `transport` | empty | Pin the HTTP transport: auto, streamable-http, or sse. Only used with http. Leave empty to use the CLI default (auto). |
| `report` | empty | Directory where HTML reports are written (lint.html and/or diff.html). This input is a directory, not a file; the CLI --report flag takes a file. Leave empty to skip writing HTML files. Requires a CLI that has --report. |
| `version` | `0.5.0-preview` | Exact McpProbe.Cli version to install. Defaults to the same version as this repository's package. Do not set this to latest. |
| `version` | `0.6.0-preview` | Exact McpProbe.Cli version to install. Defaults to the same version as this repository's package. Do not set this to latest. |
| `source` | empty | If set, the only NuGet source used to install McpProbe.Cli (a folder of nupkgs, or a feed URL). Use this to install a just-packed build in CI. |

None of the inputs is marked required in `action.yml`. The wrapper still needs exactly one of `stdio`, `http`, or `from-file`.
Expand All @@ -386,7 +386,7 @@ None of the inputs is marked required in `action.yml`. The wrapper still needs e
| `lint-report` | Path to lint.html if that file was written. Empty otherwise. |
| `diff-report` | Path to diff.html if that file was written. Empty otherwise. |

`bearer-env` and `header-env` need a CLI that has `--bearer-env` / `--header-env`. If you set them and the installed tool lacks the flags, the Action fails fast with a message instead of a generic "unrecognized option".
`bearer-env` and `header-env` need a CLI that has `--bearer-env` / `--header-env`, which is 0.6.0-preview or later. If you set them and the installed tool lacks the flags, the Action fails fast with a message instead of a generic "unrecognized option".

`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.

Expand All @@ -399,7 +399,7 @@ None of the inputs is marked required in `action.yml`. The wrapper still needs e
```yaml
- name: Check MCP tool surface
id: mcpprobe
uses: ShmueLior/mcpprobe@v0.5.0-preview
uses: ShmueLior/mcpprobe@v0.6.0-preview
with:
stdio: dotnet run --no-build --project src/MyServer -c Release
baseline: mcp-tools.json
Expand All @@ -423,7 +423,7 @@ resources:
type: github
name: ShmueLior/mcpprobe
endpoint: GitHub
ref: refs/tags/v0.5.0-preview
ref: refs/tags/v0.6.0-preview

steps:
- checkout: self
Expand All @@ -437,7 +437,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`, `lintBaseline`, `bearerEnv` and `headerEnv`. 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. `bearerEnv` and `headerEnv` need a CLI that has `--bearer-env` / `--header-env`. 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`, `lintBaseline`, `bearerEnv` and `headerEnv`. 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. `bearerEnv` and `headerEnv` need `refs/tags/v0.6.0-preview` or later. Upload is a separate step; the template does not publish an artifact:

```yaml
- task: PublishPipelineArtifact@1
Expand All @@ -456,7 +456,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.5.0-preview
dotnet tool install McpProbe.Cli --tool-path "$tool_path" --version 0.6.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 @@ -129,7 +129,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.5.0-preview'
default: '0.6.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.5.0-preview
# ref: refs/tags/v0.6.0-preview
#
# steps:
# - checkout: self
Expand Down
Loading