Detect connectors used in external agent sessions (#36336)

## What changed

- Add session connector detection to `ExternalAgentConfigService` for Claude and Cursor migrations.
- Resolve Claude connector attributions through session manifests and map Cursor `CallMcpTool` server IDs through cached plugin metadata.
- Return deduplicated connector candidates with their session counts and detection sources, and expose the new result types from the migration crate.

## Testing

- Cover Claude connector resolution by server name and UUID.
- Cover Cursor connector detection and per-session counting from MCP tool calls.

GitOrigin-RevId: 772bfe949bdc734b385a6e06f6a4b1d35b4cf210
This commit is contained in:
charlesgong-openai authored and copyberry committed 2026-07-31 14:35:55 +00:00
1 parent ef293f7ac9
commit 448118f544
9 files changed
+479 -19

No files matched your search

@@ -56,7 +56,10 @@ use mcp::parse_env_placeholder;
pub use memory::ExternalMemoryFile;
pub use memory::discover_external_memory_files;
pub use rewrite::RewriteProfile;
pub use service::DetectedConnectorCandidate;
pub use service::DetectedConnectorSource;
pub use service::ExternalAgentConfigDetectOptions;
pub use service::ExternalAgentConfigDetection;
pub use service::ExternalAgentConfigImportItemResult;
pub use service::ExternalAgentConfigImportOutcome;
pub use service::ExternalAgentConfigImportRawError;