Skip to content

fix(acp): wire IDE-provided MCP servers into do_new_session#4444

Merged
bug-ops merged 1 commit into
mainfrom
4442-acp-mcp-servers-wiring
May 18, 2026
Merged

fix(acp): wire IDE-provided MCP servers into do_new_session#4444
bug-ops merged 1 commit into
mainfrom
4442-acp-mcp-servers-wiring

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 18, 2026

Summary

  • do_new_session now calls acp_mcp_servers_to_entries(&args.mcp_servers) and registers each ServerEntry with McpManager before the first prompt arrives
  • Per-server failures are logged as warn! — session creation is never interrupted
  • Re-enabled 11 unit tests in mcp_bridge.rs (were under #[cfg(any())] since ACP 0.10 migration); updated type paths to acp::schema::McpServer* for ACP 0.11 compatibility

Test plan

  • cargo build --features acp — passes
  • cargo clippy --workspace -- -D warnings — passes
  • cargo +nightly fmt --check — passes
  • cargo nextest run -p zeph-acp — 65 tests pass (includes 11 re-enabled mcp_bridge tests)

Closes #4442

@github-actions github-actions Bot added bug Something isn't working size/M Medium PR (51-200 lines) rust Rust code changes labels May 18, 2026
@bug-ops bug-ops force-pushed the 4442-acp-mcp-servers-wiring branch from b0919e5 to 5110dca Compare May 18, 2026 22:08
acp_mcp_servers_to_entries was implemented and exported but never
called. do_new_session now converts NewSessionRequest.mcp_servers and
registers each ServerEntry with McpManager before the first prompt
arrives. Per-server registration failures are logged as warnings so
session creation is never interrupted.

Also re-enables 11 unit tests in mcp_bridge.rs that were left under
acp::McpServer* to acp::schema::McpServer* to match the new re-export
structure.

Closes #4442
@bug-ops bug-ops enabled auto-merge (squash) May 18, 2026 22:11
@bug-ops bug-ops force-pushed the 4442-acp-mcp-servers-wiring branch from 5110dca to 4c0029a Compare May 18, 2026 22:11
@bug-ops bug-ops merged commit 8a80b7e into main May 18, 2026
32 checks passed
@bug-ops bug-ops deleted the 4442-acp-mcp-servers-wiring branch May 18, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acp: IDE-provided MCP servers silently ignored — acp_mcp_servers_to_entries never called in do_new_session

1 participant