feat(coding/agents): hand the shared MCP catalogue to Claude Code
- Move programs.mcp.servers out of agents.nix into mcp.nix so hosts that do not load the whole coding set (T3 Code servers) can import it alone - Add claude-code.nix: programs.claude-code with enableMcpIntegration, replacing the bare llm-agents.claude-code package (would collide on bin/claude). home-manager delivers the catalogue as a generated plugin, ~/.claude/settings.json and ~/.claude.json stay writable - ai-memory: register the session-aware Claude bridge via programs.claude-code.mcpServers instead of `ai-memory install-mcp`; activation only removes the stale user-scope entry now - Adjust ai-memory.test.sh accordingly Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
b63db50485
commit
c9f68a4361
5 files changed
+97
-52
No files matched your search
@@ -51,7 +51,12 @@ 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"
|
||||
refute "activation no longer registers the claude mcp itself" "$act" "install-mcp --client claude-code"
|
||||
check "stale user-scope claude entry is removed" "$act" "claude mcp remove ai-memory -s user"
|
||||
|
||||
claude="$(ev programs.claude-code.mcpServers.ai-memory.args --apply 'builtins.concatStringsSep " "')"
|
||||
check "claude mcp is the session-aware bridge" "$claude" "mcp-bridge --server-url https://memory.m3ta.dev/mcp"
|
||||
refute "claude mcp forwards the session id" "$claude" "--no-session-id"
|
||||
|
||||
# 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')"
|
||||
|
||||
Reference in new issue
Block a user