fix(oauth): point proxy landing page to OAuth docs#61015
Merged
Conversation
The OAuth proxy root route advertised the MCP docs URL. Point it to the OAuth integration docs (https://posthog.com/docs/api/oauth) instead, and use a plain hyphen in the landing text to avoid the em-dash rendering as mojibake under text/plain. Generated-By: PostHog Code Task-Id: 107cea25-6ee2-42b0-b844-2b26e58db63a
Contributor
|
Reviews (1): Last reviewed commit: "fix(oauth): point proxy landing page to ..." | Re-trigger Greptile |
Piccirello
approved these changes
Jun 1, 2026
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.
Problem
The OAuth proxy's root route returns a plain-text landing message, but it linked to the MCP docs (
https://posthog.com/docs/model-context-protocol). This is the OAuth proxy, so the link should point to PostHog's OAuth integration docs. The message also used an em-dash, which rendered as mojibake under thetext/plainresponse.Changes
https://posthog.com/docs/api/oauth.How did you test this code?
I'm an agent. The existing
tests/router.test.tsassertions (content-typecontainstext/plain, body containsPostHog OAuth Proxy) remain satisfied by inspection. I was unable to execute the vitest suite in this environment because the service'snode_modulesare not installed here.Automatic notifications
Docs update
🤖 Agent context
Authored with Claude Code. The task was to repoint the OAuth proxy landing route from MCP docs to OAuth docs and fix the em-dash. I located the correct OAuth docs URL (
/docs/api/oauth) via the PostHog docs search, then switched the em-dash to a plain hyphen at the user's request. Left the genuinely MCP-related references inservices/mcp/and the OAuth metadataservice_documentationfield untouched, since those are not the landing route in question.