Skip to content

fix: add auth_type=pat to memory MCP WorkspaceClient - #104

Merged
IceRhymers merged 1 commit into
masterfrom
fix/memory-mcp-pat-auth
Apr 1, 2026
Merged

fix: add auth_type=pat to memory MCP WorkspaceClient#104
IceRhymers merged 1 commit into
masterfrom
fix/memory-mcp-pat-auth

Conversation

@IceRhymers

Copy link
Copy Markdown
Owner

Summary

Closes #103

• In the Databricks Apps runtime, multiple auth env vars (PAT, OAuth, etc.) are present simultaneously, causing the Databricks SDK to error with "detected multiple auth types" when WorkspaceClient is created without an explicit auth_type.
• Adds auth_type="pat" to the _get_ws() helper in claw/core/memory_mcp.py so the SDK uses PAT auth explicitly.
• Adds a unit test (TestGetWs::test_passes_auth_type_pat) verifying the constructor receives auth_type="pat".

Test plan

• [x] New test test_passes_auth_type_pat passes
• [x] Full test suite (315 tests) passes with no failures

Generated with Claude Code

…uth error

In the Databricks Apps runtime, multiple auth env vars are present
causing the SDK to error with "detected multiple auth types". Explicitly
setting auth_type="pat" resolves the ambiguity.

Adds test verifying auth_type=pat is passed to WorkspaceClient.

Closes #103

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@IceRhymers
IceRhymers merged commit 24feff0 into master Apr 1, 2026
1 check passed
@IceRhymers
IceRhymers deleted the fix/memory-mcp-pat-auth branch April 3, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: memory MCP WorkspaceClient detects multiple auth types — must set auth_type=pat

1 participant