Skip to content

Pretty plugin labels, preserve plugin app provenance during MCP tool refresh#15606

Draft
canvrno-oai wants to merge 1 commit intomainfrom
canvrno/pretty_plugin_names_better_dedup
Draft

Pretty plugin labels, preserve plugin app provenance during MCP tool refresh#15606
canvrno-oai wants to merge 1 commit intomainfrom
canvrno/pretty_plugin_names_better_dedup

Conversation

@canvrno-oai
Copy link
Contributor

  • Prefer plugin manifest interface.displayName for plugin labels.
  • Preserve plugin provenance when handling list_mcp_tools so connector plugin_display_names are not clobbered.
  • Add a TUI test to ensure plugin-owned app mentions are deduped correctly.

Comment on lines +1553 to +1560
loaded_plugin.manifest_name = manifest
.interface
.as_ref()
.and_then(|interface| interface.display_name.as_deref())
.map(str::trim)
.filter(|display_name| !display_name.is_empty())
.map(str::to_string)
.or_else(|| Some(manifest.name.clone()));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use display_name, manifest.name as falback

Comment on lines +8988 to +8990
plugin_display_names: plugin_provenance
.plugin_display_names_for_connector_id(connector_id)
.to_vec(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prevent on_list_mcp_tools from clobbering display names, which complicated downstream dedup of apps/plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant