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
- 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 iflearn.disabledis set. - Auto-registers Memory MCP (user scope) — runs
claude mcp add --scope user coding-friend-memory -- npx -y coding-friend-cli mcp-serveso 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 fromCLAUDE_PROJECT_DIR. Skipped if already registered. - Prints JSON config for both servers — for copy/paste into non-Claude-Code MCP clients (Claude Desktop, Cursor, ChatGPT, etc.).
- 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
- MCP Servers — full reference: tools, resources, config, health checks
cf memory mcp— Memory MCP setup command