@@ -44,8 +44,8 @@ def walk_enabled_plugins(
4444 is_enabled : Callable [[Any ], bool ],
4545 locate_dir : Callable [[str , str ], Optional [Path ]],
4646 read_plugin : Callable [[Path ], tuple [dict , dict ]],
47- ) -> tuple [ dict , dict ] :
48- """Iterate enabled plugins; merge their MCP servers and metadata.
47+ ) -> dict :
48+ """Iterate enabled plugins and build their inventory metadata.
4949
5050 Args:
5151 plugin_entries: ``{<plugin>@<marketplace>: settings}`` map from the IDE config.
@@ -55,13 +55,13 @@ def walk_enabled_plugins(
5555 filesystem path or None if it can't be resolved.
5656 read_plugin: given the plugin path, returns ``(entry_fields, servers)``:
5757 ``entry_fields`` are extra metadata to attach to the inventory entry
58- (name/version/description/...), ``servers`` are MCP servers contributed.
58+ (name/version/description/...); ``servers`` are the plugin's MCP
59+ servers, which ``read_plugin`` uses to derive that metadata.
5960
60- Returns ``(merged_mcp_servers, enriched_plugins) ``. Plugin keys without
61- ``@`` (or that fail to resolve to a directory) still appear in the
62- inventory with just ``{'enabled': True}`` so we don't silently drop them.
61+ Returns ``enriched_plugins``. Plugin keys without ``@`` (or that fail to
62+ resolve to a directory) still appear in the inventory with just
63+ ``{'enabled': True}`` so we don't silently drop them.
6364 """
64- merged_mcp : dict = {}
6565 enriched : dict = {}
6666
6767 for plugin_key , settings in plugin_entries .items ():
@@ -79,8 +79,7 @@ def walk_enabled_plugins(
7979 if plugin_dir is None :
8080 continue
8181
82- plugin_fields , servers = read_plugin (plugin_dir )
82+ plugin_fields , _ = read_plugin (plugin_dir )
8383 entry .update (plugin_fields )
84- merged_mcp .update (servers )
8584
86- return merged_mcp , enriched
85+ return enriched
0 commit comments