fix(ai-memory): register Claude Code MCP as session-aware bridge

A plain HTTP entry carries no bearer; Claude Code then attempts OAuth
dynamic client registration against ai-memory and fails. The stdio
bridge reads [auth].bearer_token_file from the client config.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
m3tam3reandClaude Fable 5.1 committed 2026-10-25 13:35:41 +01:00
1 parent 99c5877fb3
commit 963351200c
2 files changed
+5 -1

No files matched your search

@@ -51,6 +51,7 @@ check "hooks opencode2" "$act" "install-hooks --agent opencode2 --apply"
check "auth-token symlink" "$act" "ln -sfn /run/agenix/ai-memory-token "
refute "no token on command lines" "$act" "--auth-token"
refute "activation must not write opencode.json (home-manager symlink)" "$act" "install-mcp --client opencode"
check "claude mcp is the session-aware bridge" "$act" "install-mcp --client claude-code --apply --session-aware"
# Missing token file: skip with a warning, exit 0, never call ai-memory.
script="$(printf '%s\n' "$act" | sed 's|/run/agenix/ai-memory-token|/nonexistent/ai-memory-token|g')"