Repository navigation
Conversation
…erver (SHIP-745) OpenAI's plugin directory verifies a remote MCP server's domain by fetching a token it issues from /.well-known/openai-apps-challenge. - SHIPYARD_MCP_OPENAI_DOMAIN_CHALLENGE (chart: mcp.openaiDomainChallenge, install: MCP_HOST_OPENAI_DOMAIN_CHALLENGE). Set, the server answers GET on that path with exactly the token as plain text, without a bearer token; unset, the path is a 404. - A token with a space, line break or control character is refused at startup, since OpenAI compares the body exactly. - docs/mcp.md: the deploy step, and that every later release must pass the token too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SHIP-745, part 2. OpenAI's plugin directory verifies a remote MCP server's domain: it issues a token in its portal and fetches it from
https://<mcp host>/.well-known/openai-apps-challenge. That path is a 404 onmcp.shipyard.buildtoday. Part 1, the ChatGPT OAuth client in core, is shipyardbuild/shipyard#4166.Changes
hosted.Config.OpenAIDomainChallenge, fromSHIPYARD_MCP_OPENAI_DOMAIN_CHALLENGE.GET /.well-known/openai-apps-challengeanswers with exactly the token, astext/plain, with no bearer token needed.mcp.openaiDomainChallenge(empty by default) sets the env var only when given.make mcp-host.install.*:MCP_HOST_OPENAI_DOMAIN_CHALLENGE=<token>, checked to be one token.helm upgradedoesn't reuse values, so the docs say to pass it on every release after verification.The token isn't a secret: OpenAI reads it from the public URL.
Testing
go test ./pkg/mcp/... ./commands/...passes. New tests:TestOpenAIDomainChallenge: a 404 when unset; the exact body andtext/plainwhen set; POST is refused;/mcpstill returns 401; tokens with a space, newline, tab or NUL are refusedTestHostConfigFromEnvOpenAIDomainChallengescripts/chart-test.shpasses, with two new checks: no env var by default, and the token reaches the server when set.bad tokenandx;rm.Rollout
Nothing changes until OpenAI issues the token, which needs the StackGen OpenAI organization (SHIP-745). Then: release with the token, and click Verify Domain in the portal.
🤖 Generated with Claude Code