Enrich app/read connector metadata (#34417)

## What changed

- Add `iconUrlDark`, `distributionChannel`, `installUrl`, and
  `pluginDisplayNames` to the experimental `app/read` connector metadata.
- Populate plugin display names from enabled plugins without starting their MCP
  servers.
- Accept both dark-icon field spellings from the batch API and keep the new
  upstream fields optional for compatibility with older responses.

## Testing

- Cover the serialized response fields, legacy batch responses, and plugin
  display-name lookup without MCP startup.

GitOrigin-RevId: 68601a104de839c0f4f4621d33b0e4d08ad88c64
This commit is contained in:
Matthew Zeng authored and copyberry committed 2026-07-20 22:06:50 +00:00
1 parent cf821e8ec8
commit 60272096bc
11 files changed
+336 -22

No files matched your search

+4 -2
View File
@@ -16,14 +16,16 @@ pub struct ConnectorToolSummary {
/// Metadata returned by the app batch-read API.
///
/// This intentionally excludes connector runtime state, full actions, and model descriptions.
/// Tool summaries contain display text only, and the icon URL is already projected as a public
/// URL by the backend.
/// Tool summaries contain display text only, and icon URLs are already projected as public URLs by
/// the backend.
#[derive(Debug, Clone, PartialEq)]
pub struct ConnectorMetadata {
pub id: String,
pub name: String,
pub description: Option<String>,
pub icon_url: Option<String>,
pub icon_url_dark: Option<String>,
pub distribution_channel: Option<String>,
pub tool_summaries: Option<Vec<ConnectorToolSummary>>,
}