Skip to content

fix(mcp): log tool collisions after OAuth connect and guard bare mode spawn#3367

Merged
bug-ops merged 2 commits intomainfrom
3358-3359-mcp-oauth
Apr 24, 2026
Merged

fix(mcp): log tool collisions after OAuth connect and guard bare mode spawn#3367
bug-ops merged 2 commits intomainfrom
3358-3359-mcp-oauth

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 24, 2026

Summary

Changes

  • crates/zeph-mcp/src/manager.rs: collect all_tools vec during OAuth drain loop; call log_tool_collisions before drop(outcomes)
  • src/runner.rs: add !exec_mode.bare && to the OAuth spawn guard

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace -- -D warnings — pass
  • cargo nextest run --config-file .github/nextest.toml --workspace --lib --bins — 8389 passed, 20 skipped

@github-actions github-actions Bot added documentation Improvements or additions to documentation rust Rust code changes bug Something isn't working size/S Small PR (11-50 lines) labels Apr 24, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 24, 2026 20:03
@bug-ops bug-ops force-pushed the 3358-3359-mcp-oauth branch from 2f0703b to 00dfe3b Compare April 24, 2026 20:09
@github-actions github-actions Bot added size/XS Extra small PR (1-10 lines) size/S Small PR (11-50 lines) and removed size/S Small PR (11-50 lines) size/XS Extra small PR (1-10 lines) labels Apr 24, 2026
bug-ops added 2 commits April 24, 2026 22:15
… spawn

- connect_oauth_deferred now collects tools from all OAuth servers and
  calls log_tool_collisions before returning, matching the behavior of
  connect_all. Previously, tool ID collisions via the OAuth path were
  silently accepted. Closes #3359.

- The OAuth deferred spawn guard in runner.rs now checks !exec_mode.bare
  so no MCP connection is established when running in --bare mode.
  Previously a background tokio task was unconditionally spawned for
  OAuth servers regardless of exec mode. Closes #3358.
@bug-ops bug-ops force-pushed the 3358-3359-mcp-oauth branch from f377280 to ad9cf5d Compare April 24, 2026 20:15
@bug-ops bug-ops merged commit 1534ab6 into main Apr 24, 2026
32 checks passed
@bug-ops bug-ops deleted the 3358-3359-mcp-oauth branch April 24, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/S Small PR (11-50 lines)

Projects

None yet

1 participant