Skip to content

fix: conformance tests for tools_call and auth/scope-step-up#1022

Merged
alexhancock merged 1 commit into
mainfrom
alexhancock/issue-1002
Jul 22, 2026
Merged

fix: conformance tests for tools_call and auth/scope-step-up#1022
alexhancock merged 1 commit into
mainfrom
alexhancock/issue-1002

Conversation

@alexhancock

@alexhancock alexhancock commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@alexhancock
alexhancock requested a review from a team as a code owner July 21, 2026 17:54
@github-actions github-actions Bot added T-CI Changes to CI/CD workflows and configuration T-config Configuration file changes labels Jul 21, 2026
.ok()
.and_then(|version| serde_json::from_value(Value::String(version)).ok())
.unwrap_or(ProtocolVersion::V_2026_07_28)
.unwrap_or(ProtocolVersion::V_2025_11_25)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The node module defaults to this in its code for this ENV var

https://github.com/modelcontextprotocol/conformance/blob/da56f6631c83bec2b3b7e40a82f392ae360b790c/src/types.ts#L43

https://github.com/modelcontextprotocol/conformance/blob/da56f6631c83bec2b3b7e40a82f392ae360b790c/src/runner/client.ts#L45

It is set to the new version when the command is run with --spec-version 2026-07-28 so we still have coverage of the new way

DaleSeo
DaleSeo previously approved these changes Jul 21, 2026

@DaleSeo DaleSeo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have minor suggestions.

Comment thread conformance/src/bin/client.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we delete this file and remove the following lines?

--expected-failures conformance/expected-failures-2026-07-28.yaml \

--expected-failures conformance/expected-failures-2026-07-28.yaml \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment thread conformance/src/bin/client.rs Outdated

fn uses_discover_lifecycle() -> bool {
conformance_protocol_version().as_str() >= ProtocolVersion::V_2026_07_28.as_str()
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I guess this isn't really worth having its own function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call - done

@alexhancock
alexhancock force-pushed the alexhancock/issue-1002 branch from 99057ba to 3b8bdcc Compare July 22, 2026 16:43
@alexhancock

Copy link
Copy Markdown
Contributor Author

@DaleSeo All feedback addressed

@alexhancock
alexhancock requested a review from DaleSeo July 22, 2026 16:44
@alexhancock
alexhancock merged commit ac9c637 into main Jul 22, 2026
21 checks passed
@alexhancock
alexhancock deleted the alexhancock/issue-1002 branch July 22, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2026-07-28 T-CI Changes to CI/CD workflows and configuration T-config Configuration file changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conformance client: legacy-lifecycle scenarios fail with -32020 missing MCP-Protocol-Version header at 2026-07-28

3 participants