Skip to content

OAuth client id is required but documented as optional #83

Closed

Description

@eugenenelou

I get this error:

Error: failed to load configuration: failed to load configuration: invalid configuration: mcpServers[3].oauth.client_id: client_id is required when oauth is configured

I tried setting oauth: {} because otherwise it seems the OAuth flow is not even started (tried with linear and figma MCPs), but i'm stuck there because I don't have a client_id.

Activity

  1. added a commit that references this issue on Nov 1, 2025
    a3b287e
  2. Dumbris commented on Nov 1, 2025

    @Dumbris
    Member

    Thanks for reporting this issue! You've identified a real bug in the validation logic.

    Issue Confirmed

    You were absolutely right - the documentation says client_id is optional and supports Dynamic Client Registration (RFC 7591), but the validation code was incorrectly requiring it whenever an oauth block was present.

    Fix Implemented

    I've just created PR #116 which fixes this problem:

    What was wrong:

    • Validation code required client_id to be non-empty whenever oauth configuration existed
    • This blocked users from using DCR mode as documented

    What's fixed:

    • Removed the mandatory client_id validation check
    • client_id is now truly optional as documented
    • Both DCR mode (empty client_id) and pre-registered client mode (with client_id) now work correctly

    Your config now works:

    {
      "name": "linear-mcp",
      "url": "https://api.linear.app/mcp",
      "protocol": "http",
      "oauth": {
        "scopes": ["mcp.read", "mcp.write"],
        "pkce_enabled": true
      }
    }

    Testing

    I've added comprehensive test cases and verified the fix with configurations matching your use case. All tests pass and the server starts successfully with OAuth configs that have empty client_id.

    PR for review: #116

    Thanks again for the detailed bug report - it really helped identify the mismatch between documentation and implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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