Skip to content

docs(adr): single source of truth for agent-memory MCP#53

Open
metazen11 wants to merge 1 commit into
mainfrom
dev
Open

docs(adr): single source of truth for agent-memory MCP#53
metazen11 wants to merge 1 commit into
mainfrom
dev

Conversation

@metazen11

Copy link
Copy Markdown
Owner

Summary

  • Adds ADR 0001 documenting the diagnosis and fix for the duplicate agent-memory MCP registration that appeared as ✗ Failed to connect alongside the working plugin entry.
  • Adds an AGENTS.md warning so future contributors don't re-enable project-scope MCP auto-load in this repo and re-trigger the failure.
  • No code or runtime config changes — pure documentation.

Root cause (summary; full detail in the ADR)

This repo's .mcp.json doubles as the plugin manifest (referenced by .claude-plugin/plugin.json) and gets auto-detected as a project-scope MCP whenever Claude's cwd is this repo. Project scope doesn't set CLAUDE_PLUGIN_ROOT, so the project-scope launch failed every session while the plugin-scope launch worked fine.

The host-side fix (dropping enabledMcpjsonServers and enableAllProjectMcpServers from this project's .claude/settings.local.json) makes Claude only load the plugin entry. .mcp.json stays in place because the plugin manifest depends on it — codex review correctly flagged that deleting it would silently break every fresh plugin install.

Test plan

  • Direct stdio probe to scripts/run_mcp.sh returns a healthy initialize + tools/list (server v1.26.0, 12 tools).
  • claude mcp list | grep agent-memory shows exactly one connected line (plugin:agent-memory:agent-memory ✓ Connected) and no diagnostic warning.
  • Codex review: 0 blocking findings, 0 suggestions (run after correcting the first-pass diagnosis).
  • After merge: re-run the verification probe documented in docs/adr/0001-claude-mcp-single-source-of-truth.md §Verification on a freshly restarted Claude session.

Related

  • ADR: docs/adr/0001-claude-mcp-single-source-of-truth.md
  • AGENTS.md warning under "Memory store + API" → MCP server bullet

Adds ADR 0001 documenting the diagnosis and fix for the duplicate
'agent-memory' MCP registration that appeared as '✗ Failed to connect'
alongside the working plugin entry.

Root cause was host-side, not repo-side: this repo's .mcp.json doubles
as the plugin manifest (referenced by .claude-plugin/plugin.json) and
also gets auto-detected as a project-scope MCP when Claude's cwd is
this repo. Project scope can't resolve ${CLAUDE_PLUGIN_ROOT}, so the
project-scope launch failed every session. The host-side fix is to
drop enabledMcpjsonServers / enableAllProjectMcpServers from
.claude/settings.local.json so Claude only loads the plugin entry.

The repo's .mcp.json stays in place — codex review correctly flagged
that deleting it would silently break every fresh plugin install
because the plugin manifest depends on it.

Also adds an AGENTS.md note warning future maintainers not to re-enable
project-scope MCP auto-load in this repo.

Working-branch: fix/agent-memory-mcp-single-source-of-truth
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.

2 participants