Skip to content

feat(dashboards): port MCP App dashboard prototype (issue #396, PR 1) - #635

Merged
caohy1988 merged 4 commits into
GoogleCloudPlatform:mainfrom
whuang602:feat/mcp-app-dashboard
Dec 1, 2026
Merged

caohy1988 merged 4 commits into
GoogleCloudPlatform:mainfrom
whuang602:feat/mcp-app-dashboard

Conversation

@whuang602

Copy link
Copy Markdown
Contributor

Summary

Ports the TypeScript MCP App interactive dashboard prototype into dashboards/mcp_app/ as requested in #396 (PR 1 of the rollout). The Python package/wheel is unchanged and the dashboard's SQL queries remain self-contained.

Commit Structure

  1. feat(dashboards): import MCP App dashboard prototype (b4bf97a)
  2. chore(dashboards): add repo plumbing and CI for MCP App dashboard
    • Added Google LLC Apache-2.0 headers to all 20 ported code/config files (Dockerfile, mcp-app.html, server.ts, vite.config.ts, src/*.ts, src/styles.css, tests/*.test.mjs) with zero changes to application logic.
    • Added the SIL Open Font License 1.1 text for the embedded Space Grotesk font at dashboards/mcp_app/src/assets/OFL.txt.
    • Added an MCP App (TypeScript) entry to dashboards/README.md.
    • Added dashboards/mcp_app/node_modules excludes in pyproject.toml ([tool.pyink] and [tool.isort]) and dashboards/mcp_app/node_modules/ + dashboards/mcp_app/dist/ in .gitignore, mirroring dashboards/web/.
    • Added a path-filtered GitHub Actions workflow (.github/workflows/mcp-app-ci.yml) with permissions: contents: read, SHA-pinned actions, persist-credentials: false, and no GCP credentials, running npm ci, npm run build, npm run build:server, and npm test.

Verification

  • Verified 28/28 byte-for-byte SHA-256 match between b4bf97a and Commit 1.
  • Verified Commit 2 makes zero logic edits inside dashboards/mcp_app/ (headers + OFL.txt only) and zero changes to src/, tests/, or Python wheel targets.
  • Ran local build and test suite in dashboards/mcp_app/ (no GCP credentials):
    • npm run build (dist/mcp-app.html single-file bundle: 393.47 kB) — pass
    • npm run build:server (dist/server.mjs: 106.4 kB) — pass
    • npm test (node --import tsx --test tests/*.test.mjs) — 150/150 passed
  • Verified isort --check-only dashboards/ passes with dashboards/mcp_app/node_modules/ populated.

Follow-ups (Separate PRs)

Per #396, deferred from this initial port:

  • Typed output schemas
  • Automated host test harness
  • Shared pricing state
  • Per-identity rate limiting

Refs #396

Import mcp-apps/bqaa-dashboard/ verbatim from
haiyuan-eng-google/bigquery_agent_analytics_skill at commit
b4bf97ae52797d06396f6b7a73b1fcdae6009ef0 into dashboards/mcp_app/.

Refs GoogleCloudPlatform#396
- Add Apache-2.0 headers to ported MCP App source and config files
- Add SIL OFL 1.1 license text for the embedded Space Grotesk font
- Add MCP App row to dashboards/README.md
- Exclude dashboards/mcp_app/node_modules in pyproject.toml and .gitignore
- Add path-filtered MCP App CI workflow (.github/workflows/mcp-app-ci.yml)

Refs GoogleCloudPlatform#396

@caohy1988 caohy1988 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the port. I checked that the first commit matches the prototype file for file and that the second commit only adds headers, the font license, the docs index entry, formatter/ignore rules and the CI workflow, so provenance is easy to follow. The SQL side looks solid: parameterized queries, a mandatory time predicate on every section, a split byte budget, and the UI writes data through text nodes. The pure test suites pass, and the Python package and its tests are untouched.

A few things are worth fixing in the follow-up commits, and I've collected them in #636. The two I'd do first are in the README: the tunnel recipe exposes the live server with no token, and the Cloud Run origin step uses --set-env-vars, which drops BQAA_PROJECT so the service won't start (--update-env-vars fixes it). After those, the Tools totals are computed from the top-30 rows, an empty error_message counts as an error, and the Traces tab shows a failed query as "no traces". Approving.

@caohy1988
caohy1988 merged commit f113510 into GoogleCloudPlatform:main Dec 1, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants