Skip to content

revert(webmcp): remove unauthenticated remote handoff session - #60

Merged
erinepshovel-code merged 1 commit into
mainfrom
repair/rollback-unauthenticated-handoff
Sep 2, 2026
Merged

erinepshovel-code merged 1 commit into
mainfrom
repair/rollback-unauthenticated-handoff

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Contributor

Post-merge review of #59 found a security P1: handoff creation treats a forgeable browser Origin as authentication, allowing arbitrary session creation and bounded-store displacement/DoS. Two lifecycle P2s also remain: stale pending submissions can publish after edits, and TTL expiry does not notify connected clients that the dynamic tool disappeared.

This reverts only #59 to the exact pre-feature tree. The prior public registry MCP and browser-native WebMCP remain. The remote human-handoff concept is preserved in #59/history but should return only with a server-authenticated creation capability plus complete submit/expiry lifecycle semantics.

hmmm: authentication mechanism for a future remote handoff is intentionally not invented in this rollback.

Roll back only PR #59's remote human-handoff surface after post-merge review found forgeable Origin-based creation plus unresolved pending-submit and TTL notification races. Preserve the prior public registry MCP/browser WebMCP surface. Reintroduce remote handoff only with a server-authenticated creation capability and complete lifecycle semantics.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T13:03:00.109736Z 7ae6497 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@erinepshovel-code
erinepshovel-code merged commit 85f798c into main Sep 2, 2026
5 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7ae6497078

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread server/mcp-server.mjs
const result = protocol.handle(message, { protocolVersion, handoffSession });
if (result?.notification) return sendEmpty(response, 202, corsHeaders(request, allowedOrigins));
const result = protocol.handle(message, { protocolVersion });
if (result?.notification) return sendEmpty(response, 202);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore CORS headers on accepted notification responses

When a browser client from any configured allowed origin posts a JSON-RPC notification such as notifications/initialized, this branch returns 202 without Access-Control-Allow-Origin, so the browser reports a CORS failure even though the server accepted the request and its preflight advertises POST support. The same omission affects the parse, routing, and protocol-version error branches; restore corsHeaders(request, allowedOrigins) on all responses to accepted cross-origin requests.

Useful? React with 👍 / 👎.

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.

1 participant