Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion directory/differ/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions directory/differ/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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."
}
}
}
Expand Down
16 changes: 1 addition & 15 deletions directory/differ/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
4 changes: 2 additions & 2 deletions directory/differ/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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."
}
}
}
Expand Down
8 changes: 7 additions & 1 deletion docs/submission.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`) |

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "differ-plugin",
"version": "0.9.9",
"version": "0.9.10",
"private": true,
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/scripts/differ.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
10 changes: 6 additions & 4 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);
14 changes: 13 additions & 1 deletion scripts/package-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))
11 changes: 7 additions & 4 deletions scripts/validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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']]]) {
Expand Down
10 changes: 10 additions & 0 deletions submission/openai-mcp-auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "mixed",
"client": {
"mode": "dcr"
},
"baseScopes": [
"profile",
"bits:write"
]
}
17 changes: 12 additions & 5 deletions test/distribution.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 });
Expand Down
Loading