Skip to content

remote-mcp-github-oauth example has vars that override deployment secrets #243

@mor10

Description

@mor10

Problem description

When deploying the Remote MCP GitHub OAuth example as per the documentation, the user lands on a 404 page during the OAuth loop

Cause

wrangler.jsonc contains vars that override any secrets stored using npx wrangler secret put GITHUB_CLIENT_ID etc:

"vars": {
    // replace this in .dev.vars
    "GITHUB_CLIENT_ID": "1234567890",
    "GITHUB_CLIENT_SECRET": "1234567890",
    "COOKIE_ENCRYPTION_KEY": "1234567890"
  },

Solution

Remove the vars from wrangler.jsonc. The project already provides .dev.vars.example which provides sufficient dev environ support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions