Skip to content

OpenAI Plugins Directory: submission guide, domain verification, support and terms pages - #115

Merged
aterga merged 8 commits into
mainfrom
claude/openai-directory-guide-p4el4n
Aug 3, 2026
Merged

aterga merged 8 commits into
mainfrom
claude/openai-directory-guide-p4el4n

Conversation

@aterga

@aterga aterga commented Aug 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Everything for listing the connector in OpenAI's directory (the universal Plugins Directory shared by ChatGPT and Codex, built on the Apps SDK and MCP): the submission guide, the /.well-known/openai-apps-challenge domain-verification endpoint, a /support page for the customer-support-URL field, and /terms for the terms-of-service field. Companion to the Anthropic guide from #109. Verified against developers.openai.com on 2026-08-01.

The guide (docs/openai-directory-submission.md)

  • Process: submission at platform.openai.com/plugins; DFINITY's Platform org shows "preverified for app submission", so the verified-organization gate is already cleared for this purpose; the submitter needs the Apps Management write permission; seven-tab form; updates re-enter review after a server re-scan.
  • Readiness: the live server already meets OpenAI's published auth bar — OAuth 2.1 auth-code + PKCE S256 per the MCP authorization spec, DCR, RFC 8414/9728 discovery documents, ChatGPT's callback already in the redirect allow-list. Annotations set on all 26 tools (test enforces presence + readOnlyHint/destructiveHint; openWorldHint declared everywhere but not test-asserted — re-check in Scan Tools).
  • Open items: privacy policy, support, and terms pages pending the production release; the "login and password" demo-account wording vs passkey-based Internet Identity; the crypto/commerce policy analysis; drafted test cases (6 positive / 4 negative).

The domain-verification endpoint

GET /.well-known/openai-apps-challenge serves $OPENAI_APPS_CHALLENGE_TOKEN verbatim as text/plain (trimmed, so unit-file whitespace can't break OpenAI's exact-match check) and 404s while unset or blank. The token is world-readable by design, so it travels as a plain repository variable: deploy-native.yml passes vars.OPENAI_APPS_CHALLENGE_TOKEN → deploy.sh → imcp2.service, alongside the existing MCP_SERVE_BETA substitution.

The support page (/support)

OpenAI's form wants a customer-support URL; nothing served one. /support routes users to [email protected] (with what to include, and a never-send-secrets note), the status dashboard, id.ai/manage/access for revocation, GitHub issues, the Hackenproof security policy, and the privacy policy.

The terms page (/terms)

The forms ask for a terms URL, and the privacy policy's performance-of-service legal basis rests on a usage contract that didn't exist. Written for what the service actually is: free and non-custodial; requests made under the user's authorization are the user's; actions on a public network cannot be undone (its own section, given what canister deletion and generic update calls can do); third-party applications, the NNS-governed network, and the assistant provider sit outside the contract; as-is disclaimer and liability limits with the Swiss Art. 100 CO carve-out (unlawful intent / gross negligence not excludable); Swiss law, Zürich jurisdiction, mandatory consumer forums preserved; material changes get advance notice, mirroring the policy's change clause. Effective August 3, 2026.

Taken ready-for-review with the /terms text signed off the same way as the privacy policy's.

Related issues

Companion to #109 (Anthropic submission package); the privacy policy the listings need is #114 + the production release.

Changes

  • Add docs/openai-directory-submission.md.
  • src/main.rs: openai_apps_challenge_router + route (with unit tests); /support and /terms routes.
  • Add src/assets/support.html, src/assets/terms.html.
  • deploy/native/imcp2.service, deploy/native/deploy.sh, .github/workflows/deploy-native.yml: thread OPENAI_APPS_CHALLENGE_TOKEN through the existing substitution mechanism.

Testing

  • cargo build --locked --all-targets
  • cargo test --locked --all-targets — 151 lib + 2 bin + 8 router tests pass
  • bash -n deploy/native/deploy.sh
  • Live smoke tests: challenge endpoint (exact trimmed token / 404), /support and /terms render with all destinations, the wordmark substituted, and no em-dashes
  • npm test --prefix monitoring/mcp-status — n/a, dashboard unchanged

Checklist

  • I have read the Contributing guidelines.
  • Docs (README / comments) updated for any user-visible change.
  • No secrets, credentials, or internal-only information are included.

The submission path for ChatGPT's directory (now the universal Plugins
Directory shared by ChatGPT and Codex, built on the Apps SDK): portal at
platform.openai.com/plugins, verified-organization prerequisite, the
seven-tab form, and review flow. Readiness table against the live
server: OAuth 2.1 + PKCE S256, DCR, and the discovery documents already
meet OpenAI's published auth requirements, and ChatGPT's callback
prefix is already in the redirect allow-list. Open items: the
/.well-known/openai-apps-challenge domain-verification route (small
code change, token comes from the portal), the login-and-password
demo-account wording vs passkey-based Internet Identity, the crypto/
commerce policy analysis (narrower than Anthropic's prohibition), and
a drafted 6-positive/4-negative test-case set.

Verified against developers.openai.com on 2026-08-01.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an OpenAI Plugins Directory submission guide for the production MCP connector.

Changes:

  • Documents submission requirements, readiness, blockers, and test cases.
  • Provides a submission-day checklist and official references.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/openai-directory-submission.md Resolved
Comment thread docs/openai-directory-submission.md Resolved
Comment thread docs/openai-directory-submission.md Resolved
Comment thread docs/openai-directory-submission.md Resolved
All verified:

- The privacy-policy readiness row claimed ready while its own text said
  not-live-until-release; now marked pending the production release.
- The annotation row overclaimed test enforcement: the unit test asserts
  presence plus readOnlyHint/destructiveHint values only, so
  openWorldHint (declared on all 26 tools) is flagged for re-check in
  the portal's Scan Tools step.
- The lookalike negative test case used the bare 'multidex.com', which
  the classifier deliberately REPAIRS to https://multidex.ai (the
  classifier unit test asserts exactly this); the case now uses the
  explicit-scheme URL that reaches the IC-evidence refusal gate, and
  explains the distinction.
- The listing-copy note now requires replacing the Anthropic
  description's Claude-specific wording, not just fitting field limits.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw

aterga commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

All four findings verified and fixed in e234c24:

  • Privacy-policy row: marked ⏳ pending the production release instead of ✅ — the row contradicted itself and the checklist.
  • Annotation enforcement: narrowed to what the test guarantees — presence plus readOnlyHint/destructiveHint values; openWorldHint is declared on all 26 tools but not asserted, so the guide now says to re-check it in the portal's Scan Tools step.
  • Lookalike test case: the sharpest catch — the classifier's own unit test asserts that bare multidex.com repairs to https://multidex.ai, so the case as written could never produce a refusal. It now uses the explicit-scheme https://multidex.com (honoured verbatim, reaching the IC-evidence gate) and explains the repair-vs-refuse distinction.
  • Listing copy: the adaptation note now explicitly requires replacing the Anthropic description's Claude-specific wording, not just fitting field limits.

Resolving all four threads.


Generated by Claude Code

…i-apps-challenge

The ChatGPT-directory submission portal proves domain control by
fetching this endpoint and comparing the whole body against the token
it revealed. The route serves $OPENAI_APPS_CHALLENGE_TOKEN verbatim as
text/plain, trimmed so unit-file whitespace cannot break the exact
match, and 404s while the variable is unset or blank, so the endpoint
is inert until a submission is in flight.

The token is world-readable by design, so it travels as a plain
repository VARIABLE (not a secret): deploy-native.yml passes
vars.OPENAI_APPS_CHALLENGE_TOKEN into deploy.sh, which substitutes it
into imcp2.service alongside MCP_SERVE_BETA. Setting the variable and
redeploying is all that is needed once the portal reveals the token.

Unit tests cover both states (bare-token 200 text/plain, trimmed; 404
on unset/blank), and the guide's blocker 1 now describes the one
remaining manual step.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
@aterga aterga changed the title docs: add the OpenAI Plugins Directory submission guide OpenAI Plugins Directory: submission guide and domain-verification endpoint Aug 2, 2026
OpenAI's submission form wants a customer-support URL, not just an
address, and nothing served one: the landing footer and the privacy
policy mention [email protected] but neither is a support page. /support
follows the /privacy-policy construction (self-contained document,
connect-flow identity, wordmark substitution) and routes users to
[email protected] (with what to include and a never-send-secrets note),
the status dashboard, id.ai/manage/access for revocation, GitHub
issues, the Hackenproof security policy, and the privacy policy.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
@aterga aterga changed the title OpenAI Plugins Directory: submission guide and domain-verification endpoint OpenAI Plugins Directory: submission guide, domain-verification endpoint, support page Aug 2, 2026
The directory forms ask for a terms URL, and the privacy policy's
performance-of-service legal basis rests on a usage contract that did
not exist anywhere. Same construction as /privacy-policy and /support.

The terms are written for what this service actually is: free and
non-custodial (no funds, no long-term credentials); requests made under
the user's authorization are the user's (the Service cannot tell a wise
instruction from an unwise one); actions execute on a public network
and cannot be undone after acceptance, so the irreversibility warning
is its own section; third-party applications, the NNS-governed
network, and the assistant provider are outside the contract; as-is
warranty disclaimer and liability limits with the Swiss-law carve-out
for unlawful intent and gross negligence (Art. 100 CO); Swiss law,
Zurich jurisdiction, mandatory consumer forums preserved; material
changes get advance notice, mirroring the privacy policy's change
clause. Effective August 3, 2026, matching the policy.

Needs the same legal pass as the privacy policy before the release.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
@aterga aterga changed the title OpenAI Plugins Directory: submission guide, domain-verification endpoint, support page OpenAI Plugins Directory: submission guide, domain verification, support and terms pages Aug 2, 2026
@aterga
aterga marked this pull request as ready for review August 2, 2026 15:49
@aterga
aterga requested review from a team and Copilot August 2, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (3)

docs/openai-directory-submission.md:166

  • The unchecked business-verification item contradicts the PR description's statement that DFINITY is already preverified for app submission. Leaving it unchecked makes the submission checklist report a blocker that has already been cleared.
- [ ] OpenAI Platform organization verified (business verification)

docs/openai-directory-submission.md:22

  • This says organization verification must still be completed, but the PR description states that DFINITY's Platform organization is already “preverified for app submission.” That changes a cleared prerequisite into an apparent blocker; record the actual preverified state here while retaining the Apps Management permission requirement.

This issue also appears on line 166 of the same file.

- **Who can submit:** a **verified organization** (or verified individual) on
  the OpenAI Platform — complete individual/business verification in
  organization settings first. Submitters need the **"Apps Management"**
  permission with write access

deploy/native/deploy.sh:81

  • The challenge token is interpolated directly into both a sed replacement and an unquoted systemd Environment= value. A token containing & is silently changed (sed expands it to the matched placeholder), # or \ can break the substitution, and whitespace/quotes are reparsed by systemd, so the endpoint may not return the portal's exact token. Escape for both parsers or, preferably, write the value through a safely quoted EnvironmentFile (and add a deployment test with metacharacters).
unit_mcp="$(sed -e "s#__PUBLIC_URL__#https://$DOMAIN#g" -e "s#__MCP_SERVE_BETA__#${MCP_SERVE_BETA:-}#g" -e "s#__OPENAI_APPS_CHALLENGE_TOKEN__#${OPENAI_APPS_CHALLENGE_TOKEN:-}#g" "$here/imcp2.service")"

id.ai/manage/access is not the live destination; connections are
revoked from the settings page today.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
Copilot AI review requested due to automatic review settings August 2, 2026 15:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (4)

src/assets/terms.html:26

  • In dark mode, this accent has only about 4.31:1 contrast against #14110d, below the 4.5:1 requirement for the page's normal-sized link text. Use a slightly lighter accent such as #c9603e (about 4.68:1).
    --muted: #9a9384; --accent: #c25a37; --hairline: #342e25; --grid: rgba(240, 235, 224, 0.05);

src/assets/support.html:26

  • In dark mode, this accent has only about 4.31:1 contrast against #14110d, below the 4.5:1 requirement for the page's normal-sized link text. Use a slightly lighter accent such as #c9603e (about 4.68:1).
    --muted: #9a9384; --accent: #c25a37; --hairline: #342e25; --grid: rgba(240, 235, 224, 0.05);

src/assets/support.html:139

  • This points to /manage/settings, but the existing privacy policy and this PR's stated support destination identify /manage/access as the page that lists and revokes active connections. Link directly to /manage/access so users reach the revocation UI described here.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>. Revoking there

src/assets/terms.html:150

  • This points users to /manage/settings, while the existing privacy policy identifies /manage/access as the active-connection revocation page. Since this paragraph makes revocation a user responsibility, link to the actual revocation UI.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>.</p>

The official product should not reference the staging environment; the
terms keep their coverage generically ('together with any pre-release
deployments of the same software that we operate'), matching the same
change to the privacy policy's scope on #114.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
Copilot AI review requested due to automatic review settings August 2, 2026 16:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (5)

docs/openai-directory-submission.md:19

  • The PR description says DFINITY's Platform organization is already “preverified for app submission,” but the guide instead instructs the submitter to complete verification and later leaves that gate unchecked. Resolve which status is correct and align the guide/checklist with it; otherwise the submission owner cannot tell whether organization verification is actually a blocker.
- **Who can submit:** a **verified organization** (or verified individual) on
  the OpenAI Platform — complete individual/business verification in
  organization settings first. Submitters need the **"Apps Management"**

src/assets/support.html:139

  • The revocation destination conflicts with the PR description and the served privacy policy, both of which direct users to id.ai/manage/access. Keep the support page on that canonical access-management URL so users land directly on the page that lists and revokes connections.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>. Revoking there

docs/openai-directory-submission.md:62

  • These requirements are marked complete even though both public URLs remain unavailable until a production release. The privacy-policy row correctly treats the identical deployment state as pending, and OpenAI cannot validate URLs that still return 404. Mark support and terms as pending and include both in the submission-day live-URL checks so this table cannot trigger a premature submission.
| Customer support contact (OpenAI asks for a URL) | ✅ `https://mcp.internetcomputer.org/support` — ships with this PR (live at the next release); routes users to <[email protected]>, the status dashboard, id.ai access management, GitHub issues, and the security policy |
| Terms of Service URL | ✅ `https://mcp.internetcomputer.org/terms` — ships with this PR (live at the next release); Swiss-law terms covering the non-custodial model, user responsibility for authorized actions, irreversibility of network actions, as-is/liability limits with the Art. 100 CO carve-out. Needs the same legal pass as the privacy policy |

src/assets/terms.html:151

  • This revocation link conflicts with the PR description and the privacy policy's id.ai/manage/access guidance. Terms and privacy should not send users to different locations for the same required revocation action.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>.</p>

deploy/native/deploy.sh:81

  • The challenge token is inserted directly into a sed replacement, so values containing replacement metacharacters are not preserved verbatim: & expands to the placeholder, # terminates the expression, and \ changes escaping. Since this value comes from an external portal and the endpoint requires an exact match, render it with literal-safe escaping (including systemd environment-file syntax) rather than interpolating the raw value into sed.
unit_mcp="$(sed -e "s#__PUBLIC_URL__#https://$DOMAIN#g" -e "s#__MCP_SERVE_BETA__#${MCP_SERVE_BETA:-}#g" -e "s#__OPENAI_APPS_CHALLENGE_TOKEN__#${OPENAI_APPS_CHALLENGE_TOKEN:-}#g" "$here/imcp2.service")"

…variable

Same value, same substitution path; handled as a secret for consistency
with the other deploy inputs (it is world-readable at the endpoint by
design, so this is hygiene rather than confidentiality). The reusable
workflow now declares it as an optional secret and both callers pass
the SAME repository-level secret: the token is submission-specific,
not host-specific, so it is deliberately not PROD_-prefixed. An
optional secret neither caller sets arrives as the empty string, which
deploy.sh substitutes as-is and the route reads as 404. Comments, the
ops README's secrets table, and the guide updated to match.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
Copilot AI review requested due to automatic review settings August 2, 2026 16:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

Suppressed comments (3)

src/assets/support.html:139

  • This revocation link conflicts with both the existing privacy policy (src/assets/privacy-policy.html:270) and the PR description, which direct users to id.ai/manage/access. As written, the new support page sends users to a different settings path instead of the page that lists and revokes active connections.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>. Revoking there

src/assets/terms.html:151

  • Use the documented connection-revocation URL here. The existing privacy policy identifies id.ai/manage/access as the page that lists active authorizations; directing Terms readers to /manage/settings makes the contractual revocation instruction inconsistent and may not take them to the required control.
<a href="https://id.ai/manage/settings">id.ai/manage/settings</a>.</p>

docs/openai-directory-submission.md:84

  • The PR description says this is a plain repository variable threaded via vars.OPENAI_APPS_CHALLENGE_TOKEN, but this guide and all three workflow changes use a repository secret. An operator following the PR description would create a variable that the workflow never reads, leaving the endpoint at 404. Align the PR description and deployment documentation/workflows on one mechanism.
reveals the token: set the **repository secret**
`OPENAI_APPS_CHALLENGE_TOKEN` (Settings → Secrets and variables → Actions →
Secrets, repository level — both deploy callers pass the same one) and

@aterga
aterga merged commit 7151d48 into main Aug 3, 2026
9 of 10 checks passed
aterga pushed a commit that referenced this pull request Aug 3, 2026
Post-audit merges (#87-#115) that changed user-visible or documented
behavior, folded into the README:

- II's consent screen requires an explicit access-level choice (Questions
  only vs Actions & questions); it is not a read-only-by-default opt-out.
- Name the connect binding cookie correctly: mcp_connect, not sid, with
  Secure conditional on an https PUBLIC_URL.
- Document the official pages (/privacy-policy, /support, /terms) and the
  OpenAI domain-verification endpoint with its env-gated 404 behavior
  (#109, #112, #115).
- /version now reports the served II pairings via the instances array (#94).
- CWE-674: note the post-parse depth bounds on interface alias chains (#87)
  and the type-less reply decode/render path (#108).
- Companion-control note: percent-encoded slashes/dots in redirect paths are
  rejected (#107).
- Deploy: describe the reference native deployment pipeline (staging tracks
  main, release-* tags ship production with the binary attached) (#81, #93).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TGhwpdTbUqQbR5AiiN8Ljw
MRmarioruci added a commit that referenced this pull request Aug 3, 2026
Replace the landing page at `/` with the latest self-contained bundle
exported from Claude Design. Its cross-page links are rewritten from the
export's relative `./<Name>.html` hrefs to the server's existing routes
(`/privacy-policy`, `/terms`, `/support`), so no URLs change.

The privacy, terms, and support pages are deliberately left as they are on
main: their text is reviewed copy (privacy review #114, directory pages
#109/#115) and is not sourced from the design tool.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
aterga pushed a commit that referenced this pull request Aug 3, 2026
Replace the landing page at `/` with the latest self-contained bundle
exported from Claude Design. Its cross-page links are rewritten from the
export's relative `./<Name>.html` hrefs to the server's existing routes
(`/privacy-policy`, `/terms`, `/support`), so no URLs change.

The privacy, terms, and support pages are deliberately left as they are on
main: their text is reviewed copy (privacy review #114, directory pages
#109/#115) and is not sourced from the design tool.

Co-authored-by: Claude Opus 4.8 <[email protected]>
@aterga aterga mentioned this pull request Aug 4, 2026
6 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants