Commit cdb019c
authored
Clarify default MCP servers (#1546)
## Summary
- Renamed MCP wrapper defaults from `houseServers` to `defaultServers`.
- Kept the Exa HTTPS MCP endpoint in the default set even when the local
`index` MCP server is unavailable.
- Added an eval assertion for the no-index case.
## Validation
- `nix run nixpkgs#nixfmt-rfc-style -- lib/util/mcp.nix
packages/agent/mcp.nix packages/agent/codex/default.nix
packages/agent/claude-code/default.nix tests/default.nix
lib/default.nix`
- `nix eval --raw --impure --expr 'let lib = (import <nixpkgs> {}).lib;
mcp = import ./lib/util/mcp.nix { inherit lib; }; in (mcp.defaultServers
{}).exa.url'`
- `nix eval --json --impure --expr 'let lib = (import <nixpkgs> {}).lib;
mcp = import ./lib/util/mcp.nix { inherit lib; }; in mcp.toCodexEntries
(mcp.defaultServers {})'`
- `nix eval --raw --impure --expr 'let flake = builtins.getFlake
(toString ./.); tests = import ./tests { nixpkgs = flake.inputs.nixpkgs;
ix = flake.lib; paths = flake.lib.paths; }; failures = builtins.filter
(a: !a.assertion) tests.groups.mcp; in builtins.toJSON (map (a:
a.message) failures)'`
Fixes #1545
(sent by an AI agent via Codex)
<!-- Macroscope's pull request summary starts here -->
<!-- Macroscope will only edit the content between these invisible
markers, and the markers themselves will not be visible in the GitHub
rendered markdown. -->
<!-- If you delete either of the start / end markers from your PR's
description, Macroscope will append its summary at the bottom of the
description. -->
> [!NOTE]
> ### Rename `houseServers` to `defaultServers` in MCP server
configuration
> Renames the `houseServers` attribute and function to `defaultServers`
across the MCP configuration layer, including
[mcp.nix](https://github.com/indexable-inc/index/pull/1546/files#diff-f70a76d7dd82c8fd07876567087fe2e2412453d6b2d8db0d3ba66c77ed1530b8),
[lib/util/mcp.nix](https://github.com/indexable-inc/index/pull/1546/files#diff-30f208a31e39d4388eb8b510d8a6962b9cd1a5d7b074429d38190a855a620744),
and the claude-code and codex agent packages. Also adds a test asserting
that the Exa MCP server is included even when the index MCP server is
unavailable.
>
> <!-- Macroscope's review summary starts here -->
>
> <sup><a href="https://app.macroscope.com">Macroscope</a> summarized
00a92f9.</sup>
> <!-- Macroscope's review summary ends here -->
>
<!-- macroscope-ui-refresh -->
<!-- Macroscope's pull request summary ends here -->1 parent 97ba022 commit cdb019c
8 files changed
Lines changed: 27 additions & 16 deletions
File tree
- doc
- claude-code
- codex
- lib
- util
- packages/agent
- claude-code
- codex
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
244 | | - | |
| 244 | + | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
2460 | 2463 | | |
2461 | 2464 | | |
2462 | 2465 | | |
2463 | | - | |
| 2466 | + | |
2464 | 2467 | | |
2465 | 2468 | | |
2466 | 2469 | | |
| |||
2470 | 2473 | | |
2471 | 2474 | | |
2472 | 2475 | | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
| 2483 | + | |
2473 | 2484 | | |
2474 | 2485 | | |
2475 | 2486 | | |
| |||
0 commit comments