Commit d9277e0
tests: align conformance fixtures with @modelcontextprotocol/conformance main
The conformance suite's main branch (post 0.2.0-alpha.2) made two
breaking changes that our pinned wire-name / spec-version contracts had
to follow:
1. `DRAFT-2026-v1` wire literal flipped to `2026-07-28` (commit
6f83abf in the conformance repo).
2. `incomplete-result-*` server scenarios renamed to
`input-required-result-*` and extended from 8 to 14 scenarios
(PR #262 in the conformance repo, follow-on to our own MRTR rename
in PR #1458 where `IncompleteResult` became `InputRequiredResult`).
Track A (the published 0.2.0-alpha.2 pin) is unaffected and continues
to skip these tests via the wire-version-match gate introduced in
`f3698c71`. Track B (a private install of the conformance `main`
branch with the four merged sessionless/MRTR/error-code/tasks PRs)
now exercises 12 of the 14 MRTR scenarios end-to-end against this
SDK's `ConformanceServer`.
Changes in this commit:
- `IncompleteResultTools.cs` and `IncompleteResultPrompts.cs` —
rename 6 tool wire names plus 1 prompt wire name from
`test_incomplete_result_*` (and `test_tool_with_elicitation`)
to `test_input_required_result_*` so the conformance scenarios
can find them. The C# class names are intentionally left as
`Incomplete*` to keep the diff minimal; the comment block above
`RunMrtrConformanceTest` documents the asymmetry.
- `ServerConformanceTests.cs` — replace the 8-row MRTR theory with
the 14-row theory matching the new conformance scenario set; flip
the two `--spec-version DRAFT-2026-v1` references to
`2026-07-28`; mark two scenarios skipped that require
server-side patterns the `ConformanceServer` tools don't yet
implement (HMAC-signed requestState for
`input-required-result-tampered-state`; per-request capability
gating for `input-required-result-capability-check`). Those
scenarios are still feature-flagged behind the wire-version gate so
they only attempt to run when the installed conformance package
speaks `2026-07-28`.
- `CachingConformanceTests.cs` — flip the `--spec-version`
reference and rewrite the doc remarks to explain the
wire-version-match gate.
Validation: `dotnet test` over the targeted slice (5 conformance
test classes) under serial run reports 17 pass / 1 fail / 2 skip
against the private `compat/conformance-draft` build. The single
failure (`Sep2243.http-custom-headers`) is a pre-existing C# SDK
client bug exposed by the conformance-pin bump: the client sends no
`Mcp-Param-*` headers when the server's tool advertises
`x-mcp-header` annotations. The bug exists on `origin/main`
(`git diff origin/main..HEAD -- src/ModelContextProtocol.Core/Client`
on these files is empty) and is unrelated to the SEP-2575 / SEP-2567
draft work in this PR. Tracking as a follow-up.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f3698c7 commit d9277e0
4 files changed
Lines changed: 53 additions & 34 deletions
File tree
- tests
- ModelContextProtocol.AspNetCore.Tests
- ModelContextProtocol.ConformanceServer
- Prompts
- Tools
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
Lines changed: 33 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
184 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
185 | 196 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
194 | 211 | | |
195 | 212 | | |
196 | 213 | | |
197 | | - | |
| 214 | + | |
198 | 215 | | |
199 | 216 | | |
200 | 217 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | | - | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
0 commit comments