Skip to content

Commit dd1972e

Browse files
bl014hclaude
andcommitted
research: target-drift matched-pair fixtures (registry#1706)
Six sanitized synthetic server.json A/B pairs + expected registry/client outcomes for the target-drift signal under discussion in modelcontextprotocol/registry#1706. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent 6c81169 commit dd1972e

18 files changed

Lines changed: 487 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/alpha",
3+
"description": "A synthetic fixture server.",
4+
"version": "1.0.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/alpha",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.alpha.example/mcp"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@alpha/mcp",
20+
"version": "1.0.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-01-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/alpha",
3+
"description": "A synthetic fixture server.",
4+
"version": "1.1.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/alpha",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.alpha.example/mcp?region=eu"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@alpha/mcp",
20+
"version": "1.1.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-02-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"case": "01-query-key-set-change",
3+
"registry_targetDrift": {
4+
"comparedTo": {
5+
"previousPublished": "A",
6+
"first": "A"
7+
},
8+
"remotesChanged": true,
9+
"packageOwnersChanged": false,
10+
"repositoryChanged": false,
11+
"changes": [
12+
{
13+
"kind": "remote",
14+
"field": "url.query-keys",
15+
"from": [],
16+
"to": [
17+
"region"
18+
]
19+
}
20+
]
21+
},
22+
"client_action": "re-consent",
23+
"why": "A new query key changes the request shape. Registry sees the key set (not values) and reports it; client re-consents."
24+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/bravo",
3+
"description": "A synthetic fixture server.",
4+
"version": "1.0.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/bravo",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.bravo.example/mcp?tenant=aaaa"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@bravo/mcp",
20+
"version": "1.0.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-01-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/bravo",
3+
"description": "A synthetic fixture server.",
4+
"version": "1.1.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/bravo",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.bravo.example/mcp?tenant=bbbb"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@bravo/mcp",
20+
"version": "1.1.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-02-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"case": "02-query-value-rotation",
3+
"registry_targetDrift": {
4+
"comparedTo": {
5+
"previousPublished": "A",
6+
"first": "A"
7+
},
8+
"remotesChanged": false,
9+
"packageOwnersChanged": false,
10+
"repositoryChanged": false,
11+
"changes": []
12+
},
13+
"client_action": "re-consent",
14+
"why": "THE KEY CASE. Registry reports remotesChanged=false (it compares keys, never values, to avoid leaking). But the locally pinned exact target changed. remotesChanged=false must NOT suppress client re-consent."
15+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/charlie",
3+
"description": "A synthetic fixture server.",
4+
"version": "1.0.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/charlie",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.charlie.example/mcp"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@charlie/mcp-widget",
20+
"version": "1.0.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-01-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/charlie",
3+
"description": "A synthetic fixture server.",
4+
"version": "2.0.0",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/charlie",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.charlie.example/mcp"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@charlie/mcp-gadget",
20+
"version": "2.0.0",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-02-01T00:00:00Z"
29+
}
30+
}
31+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"case": "03-same-scope-package-rename",
3+
"registry_targetDrift": {
4+
"comparedTo": {
5+
"previousPublished": "A",
6+
"first": "A"
7+
},
8+
"remotesChanged": false,
9+
"packageOwnersChanged": false,
10+
"repositoryChanged": false,
11+
"changes": [
12+
{
13+
"kind": "package",
14+
"field": "identifier",
15+
"from": "@charlie/mcp-widget",
16+
"to": "@charlie/mcp-gadget"
17+
}
18+
]
19+
},
20+
"client_action": "re-consent",
21+
"why": "Owner scope (@charlie) is unchanged, so packageOwnersChanged=false \u2014 but the installed package identity changed. Registry may surface the identifier change; either way the client re-pins and re-consents."
22+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "io.example.fixtures/delta",
3+
"description": "A synthetic fixture server.",
4+
"version": "9",
5+
"repository": {
6+
"url": "https://github.com/example-fixtures/delta",
7+
"source": "github"
8+
},
9+
"remotes": [
10+
{
11+
"type": "streamable-http",
12+
"url": "https://api.delta.example/mcp"
13+
}
14+
],
15+
"packages": [
16+
{
17+
"registryType": "npm",
18+
"registryBaseUrl": "https://registry.npmjs.org",
19+
"identifier": "@delta/mcp",
20+
"version": "9",
21+
"transport": {
22+
"type": "stdio"
23+
}
24+
}
25+
],
26+
"_meta": {
27+
"io.modelcontextprotocol.registry/official": {
28+
"publishedAt": "2026-01-01T00:00:00Z"
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)