Commit 5a844c9
committed
refactor(mcp): move chrome-devtools recipe into agents/ai.just
Encapsulate what can be encapsulated today. The justfile recipe moves from
project-root `justfile` into `agents/ai.just` (sibling to the rest of the
APM/agent dev tooling), and `shell.nix` reverts its `KOLU_CHROME_EXECUTABLE`
addition — the recipe now resolves Chrome-for-Testing inline by globbing
`$PLAYWRIGHT_BROWSERS_PATH/chromium-*/chrome-linux64/chrome`. `.mcp.json`
stays at project root (that's where Claude Code reads it from) and its
command updates to `just ai::mcp-chrome-devtools` via the existing
`mod ai 'agents/ai.just'` import.
Full encapsulation — declaring the MCP server inside `agents/apm.yml` and
letting `just ai::apm` regenerate `.mcp.json` — is blocked on
microsoft/apm#655 (Claude Code MCP adapter) landing in juspay's fork. The
follow-up TODO is captured in the recipe's doc comment.
Trade-off: the hickey-iteration's elegant Nix-eval-time chrome-path
resolution (read browsers.json at eval, fail loud on layout change) is
dropped in favor of a runtime shell glob. Failure mode shifts from
"fails at `nix develop` eval" to "empty --executable-path at MCP startup
→ chrome-devtools-mcp errors out loud" — different failure point, still
loud, and keeps `shell.nix` free of MCP-specific env vars.1 parent 63a28ec commit 5a844c9
4 files changed
+14
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | 98 | | |
111 | 99 | | |
112 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 5 | | |
17 | 6 | | |
18 | 7 | | |
| |||
22 | 11 | | |
23 | 12 | | |
24 | 13 | | |
25 | | - | |
26 | 14 | | |
27 | 15 | | |
28 | 16 | | |
| |||
0 commit comments