Skip to content

docs: correct OAuth refresh, endpoint override, Docker env and callback port descriptions - #1889

Merged
Dumbris merged 3 commits into
mainfrom
docs/oauth-docker-doc-accuracy
Nov 11, 2026
Merged

Dumbris merged 3 commits into
mainfrom
docs/oauth-docker-doc-accuracy

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 11, 2026

Copy link
Copy Markdown
Member

Summary

Four statements in the OAuth and Docker isolation docs did not match the code. A cross-model review of #1887 found them in the same files; they are unrelated to token storage, so they are fixed here. Docs only.

Changes

  • docs/mcp-go-oauth.md: refreshed tokens are persisted (access token, refresh token and expiry), not kept in memory only. A successful tool call alone does not prove a refresh happened.
  • docs/mcp-go-oauth.md: the callback listener is cached per server and reused across flows, with callbacks dispatched by state. A pinned port that is unavailable is an error. The "unique port per flow" and "zero port conflicts" claims are reworded.
  • docs/features/oauth-authentication.md: OAuth endpoints are discovered by default but can be overridden with authorization_endpoint, token_endpoint and registration_endpoint.
  • docs/features/docker-isolation.md: the Docker argument example now shows key-only -e API_KEY -e DEBUG flags. Values travel in the Docker CLI environment, not in argv.

Verified against

  • internal/oauth/persistent_token_store.go (SaveToken, reactive refresh path)
  • internal/oauth/config.go (StartCallbackServerOnHost)
  • internal/config/config.go and internal/oauth/transport_wrapper.go (endpoint overrides)
  • internal/upstream/core/connection_docker.go (dockerEnvKeyFlags)

Testing

cd website && npm ci && npm run build passes, including the link verification step.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

@Dumbris
Dumbris enabled auto-merge (squash) November 11, 2026 18:53
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit 12c931b into main Nov 11, 2026
56 of 62 checks passed
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.

2 participants