Expand npm conformance coverage (#1725)
This commit is contained in:
parent
b283596df1
commit
ef37c2156e
4 changed files with 20 additions and 14 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -5,7 +5,7 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/conformance": "0.2.0-alpha.8",
|
"@modelcontextprotocol/conformance": "0.2.0-alpha.9",
|
||||||
"@modelcontextprotocol/server-everything": "2026.1.26",
|
"@modelcontextprotocol/server-everything": "2026.1.26",
|
||||||
"@modelcontextprotocol/server-memory": "2026.1.26"
|
"@modelcontextprotocol/server-memory": "2026.1.26"
|
||||||
}
|
}
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@modelcontextprotocol/conformance": {
|
"node_modules/@modelcontextprotocol/conformance": {
|
||||||
"version": "0.2.0-alpha.8",
|
"version": "0.2.0-alpha.9",
|
||||||
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/conformance/-/conformance-0.2.0-alpha.8.tgz",
|
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/conformance/-/conformance-0.2.0-alpha.9.tgz",
|
||||||
"integrity": "sha512-ktbvq6ftvs23TjZ/WVmTKZHue8dqoUF5bBG3Qd5pbawfTyuveZw93o07uQij8tslBlccpPVS5jE212G+SnLo2A==",
|
"integrity": "sha512-Bi5P5TQlOQGPJxCT7UAHbpG7wsR7sNZskHGtCoZBo6vDu416D2FXPgM4wKbg91teIgj4HjGkhnzlvP7U2dszfQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/sdk": "^1.29.0",
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Pinned npm dependencies for MCP C# SDK integration and conformance tests",
|
"description": "Pinned npm dependencies for MCP C# SDK integration and conformance tests",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@modelcontextprotocol/conformance": "0.2.0-alpha.8",
|
"@modelcontextprotocol/conformance": "0.2.0-alpha.9",
|
||||||
"@modelcontextprotocol/server-everything": "2026.1.26",
|
"@modelcontextprotocol/server-everything": "2026.1.26",
|
||||||
"@modelcontextprotocol/server-memory": "2026.1.26"
|
"@modelcontextprotocol/server-memory": "2026.1.26"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,19 @@ public class ClientConformanceTests
|
||||||
[InlineData("auth/resource-mismatch")]
|
[InlineData("auth/resource-mismatch")]
|
||||||
[InlineData("auth/pre-registration")]
|
[InlineData("auth/pre-registration")]
|
||||||
|
|
||||||
|
// Offline access scope negotiation.
|
||||||
|
[InlineData("auth/offline-access-scope")]
|
||||||
|
[InlineData("auth/offline-access-not-supported")]
|
||||||
|
|
||||||
|
// RFC 9207 authorization server issuer validation.
|
||||||
|
[InlineData("auth/iss-supported")]
|
||||||
|
[InlineData("auth/iss-not-advertised")]
|
||||||
|
[InlineData("auth/iss-supported-missing")]
|
||||||
|
[InlineData("auth/iss-wrong-issuer")]
|
||||||
|
[InlineData("auth/iss-unexpected")]
|
||||||
|
[InlineData("auth/iss-normalized")]
|
||||||
|
[InlineData("auth/metadata-issuer-mismatch")]
|
||||||
|
|
||||||
// Backcompat: 2025-03-26 OAuth flows (no per-request metadata, root-location metadata).
|
// Backcompat: 2025-03-26 OAuth flows (no per-request metadata, root-location metadata).
|
||||||
[InlineData("auth/2025-03-26-oauth-metadata-backcompat")]
|
[InlineData("auth/2025-03-26-oauth-metadata-backcompat")]
|
||||||
[InlineData("auth/2025-03-26-oauth-endpoint-fallback")]
|
[InlineData("auth/2025-03-26-oauth-endpoint-fallback")]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using ModelContextProtocol.Tests.Utils;
|
using ModelContextProtocol.Tests.Utils;
|
||||||
|
|
||||||
namespace ModelContextProtocol.ConformanceTests;
|
namespace ModelContextProtocol.ConformanceTests;
|
||||||
|
|
@ -28,12 +27,9 @@ public class ServerConformanceTests(
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task RunPendingConformanceTest_JsonSchema202012()
|
public async Task RunConformanceTest_JsonSchema202012()
|
||||||
{
|
{
|
||||||
Assert.SkipWhen(!NodeHelpers.IsNodeInstalled(), "Node.js is not installed. Skipping conformance tests.");
|
Assert.SkipWhen(!NodeHelpers.IsNodeInstalled(), "Node.js is not installed. Skipping conformance tests.");
|
||||||
Assert.SkipWhen(
|
|
||||||
RuntimeInformation.IsOSPlatform(OSPlatform.Windows),
|
|
||||||
"Pending Node-based conformance scenario is unstable on Windows due to a libuv shutdown assertion.");
|
|
||||||
|
|
||||||
var result = await RunConformanceTestsAsync($"server --url {fixture.ServerUrl} --scenario json-schema-2020-12");
|
var result = await RunConformanceTestsAsync($"server --url {fixture.ServerUrl} --scenario json-schema-2020-12");
|
||||||
|
|
||||||
|
|
@ -42,12 +38,9 @@ public class ServerConformanceTests(
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task RunPendingConformanceTest_ServerSsePolling()
|
public async Task RunConformanceTest_ServerSsePolling()
|
||||||
{
|
{
|
||||||
Assert.SkipWhen(!NodeHelpers.IsNodeInstalled(), "Node.js is not installed. Skipping conformance tests.");
|
Assert.SkipWhen(!NodeHelpers.IsNodeInstalled(), "Node.js is not installed. Skipping conformance tests.");
|
||||||
Assert.SkipWhen(
|
|
||||||
RuntimeInformation.IsOSPlatform(OSPlatform.Windows),
|
|
||||||
"Pending Node-based conformance scenario is unstable on Windows due to a libuv shutdown assertion.");
|
|
||||||
|
|
||||||
var result = await RunConformanceTestsAsync($"server --url {fixture.ServerUrl} --scenario server-sse-polling");
|
var result = await RunConformanceTestsAsync($"server --url {fixture.ServerUrl} --scenario server-sse-polling");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue