Serve the run report UI to MCP clients as an MCP App - #210
Open
wasimxyz wants to merge 2 commits into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Data Hub's MCP server now ships the run report as an MCP App, so a client that supports the extension renders the same report the web app shows instead of rebuilding it from JSON.
MCP Apps (SEP-1865) is an extension where the server publishes an HTML page at a
ui://address. The client fetches the page, runs it in a sandboxed iframe, and the page calls back into the server through the client.What changed
get_run_reportpoints at the page it belongs to,ui://data-hub/run-report.report_view_itemsreturns a page of report items with fresh download links,report_view_tablereturns parsed CSV rows, andreport_view_artifactreturns a parsed JSON artifact. All three check the same permissions the REST API does.next buildrunsmcp-apps:buildfirst, and the output inweb/mcp-apps/dist/is gitignored.The built page is 1,279 KB raw and 347 KB gzipped. Hosts may cache it.
Testing
Checked in a browser against a local MCP Apps host:
No local fixture data exists for the microscopy carousel, Raman spectra, qPCR, or a PDF with real page content, so none of those were checked.
make check-allreport_view_*descriptions say what they return and steer other clients toget_run_reportLimitations
tools/listto every client. Hiding them is the host's job under the spec, andmcp-handlerbuilds a fresh server per request and registers tools beforeinitialize, so this server cannot vary its list by client.