Skip to content

Remote MCP server OAuth flow fails inside sbx — no keyring directory available #3037

Description

@maxcleme

Description

When using a remote MCP server (e.g. Notion at mcp.notion.com) from inside sbx, the OAuth2 popup triggers correctly but the flow fails when attempting to store the token, because no file keyring directory is available in the sandbox environment.

Error

Image

Steps to Reproduce

  1. Configure a remote MCP server
     - type: mcp
        remote:
          url: https://mcp.notion.com/sse
          transport_type: sse
  1. Run docker-agent inside sbx
  2. Observe the OAuth2 popup appear
  3. Complete the OAuth flow
  4. Agent fails to initialize — token cannot be stored

Expected Behavior

OAuth tokens should be stored in a location accessible from within the sandbox, or docker-agent should provide a fallback storage mechanism when a file keyring is unavailable.

Metadata

Metadata

Assignees

Labels

area/mcpMCP protocol, MCP tool servers, integrationarea/securityAuthentication, authorization, secrets, vulnerabilities

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions