From e1e7c1a2a180e940895fb1048b845ec899db5a5e Mon Sep 17 00:00:00 2001 From: Michael Dieringer <65093775+MichaelDieringer@users.noreply.github.com> Date: Thu, 25 Jun 2026 18:46:27 +0200 Subject: [PATCH] Mode B: valider og ret businesscentral-sti i .mcp.json Den hyppigste setup-fejl i pre-CURABIS-Standard projekter: .mcp.json peger paa en projektlokal bc-mcp-bridge.js der ikke eksisterer i stedet for ~/.claude/bc-mcp-bridge.js. Mode B tjekker nu businesscentral-stien og retter den stille hvis den er forkert. Rapporterer aendringen til udvikleren. Co-Authored-By: Claude Sonnet 4.6 --- custom/setup/curabis-standard.agent.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/custom/setup/curabis-standard.agent.md b/custom/setup/curabis-standard.agent.md index 9e03999..9b50ec0 100644 --- a/custom/setup/curabis-standard.agent.md +++ b/custom/setup/curabis-standard.agent.md @@ -410,9 +410,31 @@ Never touches `CLAUDE.md`, `projectmemory/`, `docs/`, or `~/.bc-mcp.config.json` | `.github/.agents/munger.agent.md` | Fetch fresh from BCQuality, overwrite | | `cspell.json` — words from template | Merge new words, keep project words | | `.mcp.json` — `al` entry | Add if `find-altool.ps1` now exists and entry is missing | +| `.mcp.json` — `businesscentral` path | Validate and correct if wrong (see below) | | `HEARTBEAT.md` | Create from template if missing (substitute tokens), never overwrite | | `docs/specs/`, `docs/decisions/`, `docs/cleanup/` | Create if missing, never overwrite content | +### .mcp.json — businesscentral path validation (Mode B) + +The `businesscentral` MCP server entry must point to the global bridge file, +not a project-local path. After any update, validate `.mcp.json`: + +1. Read `.mcp.json` and locate the `businesscentral` entry +2. Check the `args` array — the bridge path must be: + `C:\Users\\.claude\bc-mcp-bridge.js` + where `` is the current Windows username (`$env:USERNAME`) +3. If the path points anywhere else (e.g. `Scripts/bc-mcp-bridge.js`, + a project subfolder, or any path not under `~/.claude/`): **correct it silently** +4. If `businesscentral` entry is missing entirely: add it with the correct path +5. Report any correction made: + ``` + ⚠️ .mcp.json: businesscentral-stien var forkert og er rettet. + Gammel: + Ny: C:\Users\\.claude\bc-mcp-bridge.js + ``` + +This is the most common setup error on projects configured before CURABIS Standard. + ### HEARTBEAT.md token substitution (Mode B) When creating HEARTBEAT.md from template in Mode B: