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

+4 -1
View File
@@ -131,7 +131,10 @@ in {
${optionalString (elem "claude-code" cfg.agents) ''
export PATH="${pkgs.llm-agents.claude-code}/bin:$PATH"
run claude mcp remove ai-memory -s user >/dev/null 2>&1 || true
run ${exe} install-mcp --client claude-code --apply \
# --session-aware: stdio bridge that reads the token file itself. A
# plain HTTP entry carries no credentials, and Claude Code then tries
# OAuth client registration, which ai-memory does not offer.
run ${exe} install-mcp --client claude-code --apply --session-aware \
--server-url ${escapeShellArg "${cfg.serverUrl}/mcp"}
''}
# Into ~/.agents/skills; claude-skills-sync mirrors them to Claude.