Commit a1fa9ff
feat(runner): dynamic credential-aware MCP server configuration (#1593)
## Summary
- **Remove `acp` backend MCP server** from `build_mcp_servers()` — the 9
`acp_*` tools wrapping the legacy K8s backend are superseded by the
`ambient` MCP sidecar's 15 tools
- **Add `build_credential_mcp_servers()`** — reads `CREDENTIAL_IDS` env
var and dynamically configures MCP servers only for credentials actually
bound to the project (`jira` → `mcp-atlassian`, `kubeconfig` →
`openshift`, `google` → `google-workspace`)
- **Remove credential-bearing entries from `.mcp.json`** —
`mcp-atlassian`, `openshift`, `google-workspace` were previously loaded
unconditionally; now they're only provisioned when the corresponding
credential is bound. Credential-free utilities (`context7`, `deepwiki`,
`webfetch`) are retained.
## Motivation
Previously, credential-bearing MCP servers were always loaded from
`.mcp.json` regardless of whether credentials were bound, leading to
startup failures and unnecessary MCP processes. This change makes MCP
server provisioning credential-aware: only servers whose credentials are
actually available get configured.
## Test plan
- [x] 549 runner tests pass (152 MCP-specific tests pass)
- [ ] Verify `mcp-atlassian` appears in MCP servers when `jira`
credential is bound
- [ ] Verify `openshift` appears when `kubeconfig` credential is bound
- [ ] Verify `google-workspace` appears when `google` credential is
bound
- [ ] Verify no credential MCP servers appear when `CREDENTIAL_IDS` is
empty
- [ ] Verify `ambient` MCP sidecar still works via SSE
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Updates**
* Removed built-in support for Atlassian, OpenShift, and Google
Workspace integrations; remaining default servers are limited.
* Added credential-aware support for Jira, Kubeconfig, and Google
services that can be enabled via credentials.
* **Bug Fixes / Resilience**
* Installer step now tolerates CodeRabbit CLI install failures and logs
a warning instead of failing the build.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: user <u@example.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 63545c7 commit a1fa9ff
3 files changed
Lines changed: 98 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 16 | | |
56 | 17 | | |
57 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 96 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
128 | 124 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 125 | + | |
133 | 126 | | |
134 | 127 | | |
135 | 128 | | |
| |||
148 | 141 | | |
149 | 142 | | |
150 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
151 | 235 | | |
152 | 236 | | |
153 | 237 | | |
| |||
0 commit comments