2.home-manager/tests/modules/programs/claude-code
Austin Horstman 4fcef56c15 claude-code: load MCP config via plugin dir
Claude Code rejects `--mcp-config` once the Home Manager wrapper injects
it around subcommands, which breaks commands like `claude mcp list`.
Claude Code 2.1.76 fixed `--plugin-dir` so it no longer consumes
following subcommands, so use that path for the generated MCP config
instead.

Generate a plugin directory with a manifest and `.mcp.json`, wrap
`claude` with `--plugin-dir` before user arguments, and snapshot that
wrapper directly in the tests. Keep the existing LSP support in the
generated plugin directory as well, and add coverage for the combined
MCP+LSP case plus the MCP integration merge path.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2026-03-18 23:58:36 -05:00
..
agents claude-code: added 'agentsDir' option to specify agents from filesystem 2025-09-14 23:29:18 -05:00
commands claude-code: added 'commandsDir' option to specify commands from filesystem 2025-09-14 23:29:18 -05:00
hooks claude-code: added 'hooks' and 'hooksDir' options to specify hooks from filesystem 2025-09-14 23:29:18 -05:00
rules tests/claude-code: add rules tests 2025-12-19 13:19:35 -06:00
skill-subdir claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
skills/test-skill claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
agents-dir.nix claude-code: added 'agentsDir' option to specify agents from filesystem 2025-09-14 23:29:18 -05:00
agents-path.nix tests/claude-code: add path tests for agents/commands 2025-09-17 00:07:05 -05:00
assertion.nix claude-code: add lsp servers support 2026-03-17 23:52:47 -05:00
basic.nix claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
commands-dir.nix claude-code: added 'commandsDir' option to specify commands from filesystem 2025-09-14 23:29:18 -05:00
commands-path.nix tests/claude-code: add path tests for agents/commands 2025-09-17 00:07:05 -05:00
default.nix claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-agents-readme.md claude-code: added 'agentsDir' option to specify agents from filesystem 2025-09-14 23:29:18 -05:00
expected-changelog claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
expected-code-reviewer.md claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
expected-commit claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
expected-documentation.md claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
expected-lsp-plugin.json claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-lsp-wrapper claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-mcp-plugin.json claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-mcp-wrapper claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-memory.md claude-code: added memories (claude.md) generation 2025-09-14 23:29:18 -05:00
expected-plugin-manifest.json claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
expected-settings.json claude-code: init module (#7685) 2025-08-16 21:33:06 -05:00
full-config.nix claude-code: added 'hooks' and 'hooksDir' options to specify hooks from filesystem 2025-09-14 23:29:18 -05:00
hooks-dir.nix claude-code: added 'hooks' and 'hooksDir' options to specify hooks from filesystem 2025-09-14 23:29:18 -05:00
lsp.nix claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
mcp-integration.nix claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
mcp-lsp.nix claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
mcp.nix claude-code: load MCP config via plugin dir 2026-03-18 23:58:36 -05:00
memory-from-source.nix claude-code: added memories (claude.md) generation 2025-09-14 23:29:18 -05:00
memory-management.nix claude-code: added memories (claude.md) generation 2025-09-14 23:29:18 -05:00
mixed-content.nix claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
output-styles-not-set.nix claude-code: add support for output styles 2026-02-26 21:37:08 -06:00
output-styles.nix claude-code: add support for output styles 2026-02-26 21:37:08 -06:00
rules-dir.nix tests/claude-code: add rules tests 2025-12-19 13:19:35 -06:00
rules-path.nix tests/claude-code: add rules tests 2025-12-19 13:19:35 -06:00
skills-dir.nix claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
skills-path.nix claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
skills-subdir.nix claude-code: fix skills implementation 2026-02-19 14:00:06 -06:00
test-agent.md tests/claude-code: add path tests for agents/commands 2025-09-17 00:07:05 -05:00
test-command.md tests/claude-code: add path tests for agents/commands 2025-09-17 00:07:05 -05:00
test-output-style.md claude-code: add support for output styles 2026-02-26 21:37:08 -06:00
test-rule.md tests/claude-code: add rules tests 2025-12-19 13:19:35 -06:00
test-skill.md claude-code: added 'skills' option to specify skills from filesystem 2025-11-25 23:35:00 -06:00