Skip to content

feat: expose metadata/datasets as an MCP-App-only tool for the UI widget#540

Open
kryachkow wants to merge 2 commits into
developmentfrom
533-expose-metadatadatasets-as-an-mcp-app-only-tool-for-the-ui-widget
Open

feat: expose metadata/datasets as an MCP-App-only tool for the UI widget#540
kryachkow wants to merge 2 commits into
developmentfrom
533-expose-metadatadatasets-as-an-mcp-app-only-tool-for-the-ui-widget

Conversation

@kryachkow

Copy link
Copy Markdown
Contributor

Applicable issues

Description of changes

Adds a new DatasetsMetadataApp tool that returns the channel's datasets metadata payload (the same payload as the /metadata/datasets service endpoint) so the UI widget can consume it through MCP.

  • New DatasetsMetadataAppTool chain that builds the response and returns it as a DatasetsMetadataAppArtifact.
  • The MCP provider surfaces this artifact as MCP structured content, so the UI widget can render the metadata directly (the JSON body is also returned as the tool's text content).
  • The tool is MCP-only (mcp_only=True, pinned) and app-only by default (mcp_visibility=["app"]), so it stays hidden from the Supreme Agent / model, which does not need dataset metadata through this path.
  • Extracted the payload-building logic into a shared build_channel_datasets_metadata service so the service endpoint and the new tool stay in sync.
  • Registered the new tool type (DATASETS_METADATA_APP) in the enums, tool config, and channel config.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

…get #533

Add a DatasetsMetadataApp tool that returns the channel's datasets
metadata payload (matching the /metadata/datasets service endpoint) as
MCP structured content so the UI widget can render it. The tool is
MCP-only and app-only by default, keeping it hidden from the Supreme
Agent.

Extract the payload building into a shared build_channel_datasets_metadata
service so the service endpoint and the new tool stay in sync.
@kryachkow kryachkow self-assigned this Jul 22, 2026
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.

Expose /metadata/datasets as an MCP-App-only tool for the UI Widget

1 participant