cf mcp

Setup MCP servers for learning docs and memory system.

Overview

cf mcp registers and configures the two Coding Friend MCP servers. See MCP Servers for the full reference on both servers, their tools, and configuration options.

Usage

cf mcp

The learn folder is always read from your global config (~/.coding-friend/config.json), defaulting to ~/.coding-friend/learn/. To change it, run cf config → Learn settings → Output dir.

What it does

  1. Auto-registers Learn MCP (user scope) — runs claude mcp add --scope user coding-friend-learn ... so the server is available across all your projects. Skipped if already registered or if learn.disabled is set.
  2. Auto-registers Memory MCP (user scope) — runs claude mcp add --scope user coding-friend-memory -- npx -y coding-friend-cli mcp-serve so it's available across all your projects. No path argument is stored at registration — the server resolves the current project's memory directory at runtime from CLAUDE_PROJECT_DIR. Skipped if already registered.
  3. Prints JSON config for both servers — for copy/paste into non-Claude-Code MCP clients (Claude Desktop, Cursor, ChatGPT, etc.).
  4. Runs health checks for both servers and prints fix hints inline.

Notes

cf mcp and cf status warn you when a project-scope .mcp.json entry for coding-friend-memory shadows the user-scope server — run cf update to clean it up.

See Also