diff --git a/CHANGELOG.md b/CHANGELOG.md index b69b374..e338428 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.9.10 + +- The directory folder's `mcp.json` lists only the remote server's type and + URL. Anthropic's directory now refuses an unverified publisher's MCP list + that carries OAuth settings, so OpenAI's sign-in declaration is added only + to the release's directory ZIP, from `submission/openai-mcp-auth.json`. + ## 0.9.9 - Updating a diff from its directory no longer starts a second diff when the diff --git a/directory/differ/.claude-plugin/plugin.json b/directory/differ/.claude-plugin/plugin.json index d2c98d2..f0ff202 100644 --- a/directory/differ/.claude-plugin/plugin.json +++ b/directory/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/directory/differ/.codex-plugin/plugin.json b/directory/differ/.codex-plugin/plugin.json index 0dda387..41d5e93 100644 --- a/directory/differ/.codex-plugin/plugin.json +++ b/directory/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", @@ -95,7 +95,7 @@ "commerce_description": "Differ does not sell anything or take payments." }, "publication": { - "release_notes": "Differ 0.9.9: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.10: make, publish and diff bits; publish as a guest or connect a Differ account." } } } diff --git a/directory/differ/mcp.json b/directory/differ/mcp.json index 9ae483a..0c24717 100644 --- a/directory/differ/mcp.json +++ b/directory/differ/mcp.json @@ -3,21 +3,7 @@ "mcpServers": { "differ": { "type": "streamable-http", - "url": "https://publish.getdiffer.com/mcp", - "extensions": { - "com.openai": { - "auth": { - "type": "mixed", - "client": { - "mode": "dcr" - }, - "baseScopes": [ - "profile", - "bits:write" - ] - } - } - } + "url": "https://publish.getdiffer.com/mcp" } } } diff --git a/directory/differ/plugin.json b/directory/differ/plugin.json index 9c9bba6..bd5d6fe 100644 --- a/directory/differ/plugin.json +++ b/directory/differ/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", @@ -97,7 +97,7 @@ "commerce_description": "Differ does not sell anything or take payments." }, "publication": { - "release_notes": "Differ 0.9.9: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.10: make, publish and diff bits; publish as a guest or connect a Differ account." } } } diff --git a/docs/submission.md b/docs/submission.md index 3d12b55..59818eb 100644 --- a/docs/submission.md +++ b/docs/submission.md @@ -18,7 +18,7 @@ generated files by hand. | --- | --- | | Name, descriptions, category, URLs, colours, icon | `interfaceFields` in `scripts/build.mjs` | | Review test cases (5 positive, 3 negative) | `submission/review-cases.json` | -| OpenAI auth for the MCP server | `directory/differ/mcp.json`, from `build.mjs` | +| OpenAI auth for the MCP server | `submission/openai-mcp-auth.json`, added to the directory ZIP by `scripts/package-release.py` | | Privacy policy for Anthropic | `privacyPolicyUrl` in `.claude-plugin/plugin.json` | | Tool titles, annotations, sign-in challenge, domain token | Control (`gdiffer`, `services/control/internal/content`) | @@ -90,6 +90,12 @@ work down the draft's checks. - `mcp.json` with `extensions["com.openai"].auth`: `{ type: "mixed", client: { mode: "dcr" }, baseScopes: ["profile", "bits:write"] }`. Without it the portal says "Declare extensions.com.openai.auth.type". + `package-release.py` adds it to the ZIP from + `submission/openai-mcp-auth.json`; it never goes in `directory/differ`, + because Anthropic's directory refuses an unverified publisher's MCP list + whose server carries more than a remote `type` and `url`, or OAuth + ("Files outside the allowed list", 2026-12-02). Upload the release ZIP, + not a ZIP of the folder. - **The same `review` and `publication` in `.codex-plugin/plugin.json`.** Portal bug, 2026-11-05: with the review only in the root `plugin.json` the cases import with empty prompts ("Test case user prompt is diff --git a/package-lock.json b/package-lock.json index 79b40c7..9f20eb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "differ-plugin", - "version": "0.9.9", + "version": "0.9.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "differ-plugin", - "version": "0.9.9", + "version": "0.9.10", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "1.32.1", diff --git a/package.json b/package.json index 0ad573b..2d91d01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "differ-plugin", - "version": "0.9.9", + "version": "0.9.10", "private": true, "type": "module", "engines": { diff --git a/plugins/differ/.claude-plugin/plugin.json b/plugins/differ/.claude-plugin/plugin.json index d2c98d2..f0ff202 100644 --- a/plugins/differ/.claude-plugin/plugin.json +++ b/plugins/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/.codex-plugin/plugin.json b/plugins/differ/.codex-plugin/plugin.json index 5949e42..6e985b6 100644 --- a/plugins/differ/.codex-plugin/plugin.json +++ b/plugins/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/plugin.json b/plugins/differ/plugin.json index f3c245d..047b32f 100644 --- a/plugins/differ/plugin.json +++ b/plugins/differ/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "differ", - "version": "0.9.9", + "version": "0.9.10", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/scripts/differ.cjs b/plugins/differ/scripts/differ.cjs index de51ce5..6328966 100644 --- a/plugins/differ/scripts/differ.cjs +++ b/plugins/differ/scripts/differ.cjs @@ -39789,7 +39789,7 @@ var import_node_child_process3 = require("node:child_process"); // package.json var package_default = { name: "differ-plugin", - version: "0.9.9", + version: "0.9.10", private: true, type: "module", engines: { diff --git a/scripts/build.mjs b/scripts/build.mjs index a8d4814..248eba3 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -102,9 +102,11 @@ for (const plugin of [local, remote]) { } json(`${local}/mcp.json`, { $schema: 'https://agent-plugins.org/schemas/1.0.0/mcp.schema.json', mcpServers: { differ: { type: 'stdio', command: 'node', args: ['${PLUGIN_ROOT}/scripts/differ.cjs', 'mcp'] } } }); json(`${local}/.mcp.json`, { mcpServers: { differ: { command: 'node', args: ['${CLAUDE_PLUGIN_ROOT}/scripts/differ.cjs', 'mcp'] } } }); -// Guest tools need no sign-in and account tools use OAuth, so the server is -// "mixed"; Control registers clients dynamically (/oauth/register). -const auth = { type: 'mixed', client: { mode: 'dcr' }, baseScopes: ['profile', 'bits:write'] }; -json(`${remote}/mcp.json`, { $schema: 'https://agent-plugins.org/schemas/1.0.0/mcp.schema.json', mcpServers: { differ: { type: 'streamable-http', url: 'https://publish.getdiffer.com/mcp', extensions: { 'com.openai': { auth } } } } }); +// Anthropic's directory follows this folder and, from a publisher it has not +// verified, keeps another tool's MCP list only when each server has a remote +// server's fields and no OAuth (2026-12-02). OpenAI's sign-in declaration is +// added to the directory ZIP by package-release.py, from +// submission/openai-mcp-auth.json. +json(`${remote}/mcp.json`, { $schema: 'https://agent-plugins.org/schemas/1.0.0/mcp.schema.json', mcpServers: { differ: { type: 'streamable-http', url: 'https://publish.getdiffer.com/mcp' } } }); json(`${remote}/.mcp.json`, { mcpServers: { differ: { type: 'http', url: 'https://publish.getdiffer.com/mcp' } } }); console.log(`Built Differ ${version}: local helper and remote directory package.`); diff --git a/scripts/package-release.py b/scripts/package-release.py index f3392f9..1d24531 100644 --- a/scripts/package-release.py +++ b/scripts/package-release.py @@ -12,6 +12,18 @@ args = parser.parse_args() args.output.mkdir(parents=True, exist_ok=True) version = json.loads((root / 'package.json').read_text())['version'] +# OpenAI's portal reads MCP sign-in only from the uploaded ZIP's mcp.json. It +# stays out of directory/differ, which Anthropic's directory refuses with OAuth. +openai_auth = json.loads((root / 'submission/openai-mcp-auth.json').read_text()) + + +def contents(variant, relative, file): + if variant == 'directory' and relative.as_posix() == 'mcp.json': + manifest = json.loads(file.read_text()) + manifest['mcpServers']['differ']['extensions'] = {'com.openai': {'auth': openai_auth}} + return (json.dumps(manifest, indent=2) + '\n').encode() + return file.read_bytes() + checksums = [] for variant, directory in [('local', 'plugins/differ'), ('directory', 'directory/differ')]: source = root / directory @@ -30,7 +42,7 @@ info.create_system = 3 info.external_attr = 0o100644 << 16 info.compress_type = ZIP_DEFLATED - archive.writestr(info, file.read_bytes()) + archive.writestr(info, contents(variant, relative, file)) checksums.append(f'{hashlib.sha256(target.read_bytes()).hexdigest()} {target.name}') (args.output / 'SHA256SUMS').write_text('\n'.join(checksums) + '\n') print('\n'.join(checksums)) diff --git a/scripts/validate.mjs b/scripts/validate.mjs index 6fe6ad2..d703b6f 100644 --- a/scripts/validate.mjs +++ b/scripts/validate.mjs @@ -37,10 +37,13 @@ const remote = 'directory/differ'; const openaiRoot = json(`${remote}/plugin.json`).extensions['com.openai']; const codex = json(`${remote}/.codex-plugin/plugin.json`); const claude = json(`${remote}/.claude-plugin/plugin.json`); -// OpenAI reads MCP sign-in only from mcp.json: guests need none, accounts use OAuth via DCR. -const auth = json(`${remote}/mcp.json`).mcpServers.differ.extensions?.['com.openai']?.auth; -assert.equal(auth?.type, 'mixed', 'directory mcp.json must declare extensions.com.openai.auth.type "mixed"'); -assert.equal(auth?.client?.mode, 'dcr', 'directory mcp.json must register OAuth clients with DCR'); +// OpenAI reads MCP sign-in only from the ZIP's mcp.json, which package-release.py +// adds: guests need none, accounts use OAuth via DCR. Anthropic's directory +// refuses an MCP list with OAuth in the folder it follows. +const auth = json('submission/openai-mcp-auth.json'); +assert.equal(auth.type, 'mixed', 'OpenAI MCP auth must be type "mixed"'); +assert.equal(auth.client?.mode, 'dcr', 'OpenAI MCP auth must register OAuth clients with DCR'); +assert.deepEqual(Object.keys(json(`${remote}/mcp.json`).mcpServers.differ).sort(), ['type', 'url'], 'directory/differ/mcp.json may carry only a remote server\'s type and url'); // Review cases: exactly 5 + 3, with prompts. The portal imports prompts only from // .codex-plugin/plugin.json, so both manifests carry the same review block. for (const [file, openai] of [['plugin.json', openaiRoot], ['.codex-plugin/plugin.json', codex.extensions?.['com.openai']]]) { diff --git a/submission/openai-mcp-auth.json b/submission/openai-mcp-auth.json new file mode 100644 index 0000000..7cc1468 --- /dev/null +++ b/submission/openai-mcp-auth.json @@ -0,0 +1,10 @@ +{ + "type": "mixed", + "client": { + "mode": "dcr" + }, + "baseScopes": [ + "profile", + "bits:write" + ] +} diff --git a/test/distribution.test.mjs b/test/distribution.test.mjs index 4c59ec0..0854c5b 100644 --- a/test/distribution.test.mjs +++ b/test/distribution.test.mjs @@ -15,12 +15,11 @@ test('directory package connects remotely and preserves every verified skill', ( assert.deepEqual(json(join(directory, '.mcp.json')).mcpServers, { differ: { type: 'http', url: 'https://publish.getdiffer.com/mcp' }, }); + // Anthropic's directory keeps another tool's MCP list from a publisher it has + // not verified only when each server has a remote server's fields and no + // OAuth (2026-12-02), so the folder it follows declares no OpenAI auth. assert.deepEqual(json(join(directory, 'mcp.json')).mcpServers, { - differ: { - type: 'streamable-http', url: 'https://publish.getdiffer.com/mcp', - // OpenAI's portal requires the server's auth: guest tools open, account tools by OAuth via DCR. - extensions: { 'com.openai': { auth: { type: 'mixed', client: { mode: 'dcr' }, baseScopes: ['profile', 'bits:write'] } } }, - }, + differ: { type: 'streamable-http', url: 'https://publish.getdiffer.com/mcp' }, }); const openai = json(join(directory, 'plugin.json')).extensions['com.openai']; assert.equal(openai.review.test_cases.positive.length, 5); @@ -65,6 +64,14 @@ test('release ZIPs are reproducible, contain only runtime files and work after e } }; visit(plugin); + if (variant === 'directory') { + // OpenAI's portal requires the server's auth in the uploaded ZIP: guest + // tools open, account tools by OAuth via DCR. + assert.deepEqual(json(join(plugin, 'mcp.json')).mcpServers.differ, { + type: 'streamable-http', url: 'https://publish.getdiffer.com/mcp', + extensions: { 'com.openai': { auth: { type: 'mixed', client: { mode: 'dcr' }, baseScopes: ['profile', 'bits:write'] } } }, + }); + } if (variant === 'local') { const bit = join(temporary, 'vote'); mkdirSync(join(bit, 'data'), { recursive: true });