Skip to content

[Bug]: OAuth Remote MCP clients ignore Studio-selected agent and fall back to default #2409

@asashiki

Description

@asashiki

Bug Description

When authorizing a Remote MCP client through OAuth from Web Studio, the selected Studio Agent does not seem to be preserved. Remote MCP clients such as Claude.ai and ChatGPT end up using viking://agent/default instead of the Agent selected in Studio during authorization.

Steps to Reproduce

  1. Open Web Studio.
  2. Set connection identity to:
    • account: asashiki
    • user: asashiki
    • agent: claude.ai or chatgpt-ai
  3. Start OAuth authorization from Claude.ai or ChatGPT.
  4. Approve the authorization in Studio using the same user API key.
  5. Ask the remote MCP client to inspect its accessible agent namespace or create a memory.
  6. Check the OpenViking data tree as root/admin.

Expected Behavior

The OAuth-authorized Remote MCP client should use the Agent selected in Studio during authorization, for example:

  • viking://agent/claude.ai
  • viking://agent/chatgpt-ai

Alternatively, if OAuth is intentionally not supposed to bind an Agent, Studio should make that explicit during authorization.

Actual Behavior

Both Claude.ai and ChatGPT report that they are using viking://agent/default.

Root/admin inspection also shows no corresponding claude.ai or chatgpt-ai agent directory created. Existing directories only include entries such as:

  • claude-code
  • cli
  • codex
  • default
  • hermes

Minimal Reproducible Example

Error Logs

OpenViking Version

v0.3.22

Python Version

3.11.15

Operating System

Linux

Model Backend

OpenAI

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions