Skip to content

Add embedded MCP Apps weather explorer and propose v0.3.0 - #7

Merged
lennrt merged 3 commits into
lennrt:mainfrom
agent-lennrt:feat/mcp-apps
Oct 13, 2026
Merged

lennrt merged 3 commits into
lennrt:mainfrom
agent-lennrt:feat/mcp-apps

Conversation

@agent-lennrt

@agent-lennrt agent-lennrt commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Weather and archive results can now be explored directly inside an MCP Apps-capable harness, without opening the separate TUI. All 27 available read-only tools get embedded views with weather charts, a wind rose, metric selection, and searchable, sortable, paginated HTML tables.

  • Use the official MCP Apps SDK and host bridge for results, themes, and refresh with the original tool arguments.
  • Keep the complete UI in the Go binary; no Node.js runtime, HTTP listener, or frontend process is needed.
  • Preserve missing readings, chart gaps, SQL column order/precision, and truncation notices. Support narrow containers and light/dark themes.
  • Refresh the README and user guides, update the baseline MCP service spec, and include ADR 0006 and the OpenSpec proposal.
  • Pin Go 1.27.2 across the module, Makefile, CI, release qualification, and docs to resolve the standard-library vulnerability findings. Update golangci-lint to 2.14.0 for compatibility with the patched compiler; see ADR 0007.
  • Propose 0.3.0 for this additive feature; update the development version, plugin manifest, and changelog. No release or tag is published.

Playwright previews

Captured from the actual bundled UI in a sandbox with the official AppBridge and synthetic fixtures. Both images are also in the updated README. These are test-host previews, not certification of a particular third-party harness.

Interactive weather chart and readings

Searchable and sortable archive table

Reproduce with npm ci --ignore-scripts --no-audit --no-fund, npx playwright install chromium, npm run app:build, and npm run app:screenshots.

Compatibility

  • Public Go API impact: no signature changes.
  • JSON, MCP, archive, and configuration impact: existing tool names, schemas, results, annotations, and source capability gates are preserved. App-capable clients receive _meta.ui.resourceUri; resource discovery gains 27 HTML resources when all sources are available. Plain clients keep normal results. No storage or configuration migration.
  • ADR included for the new UI/security boundary.

The demo smoke expectation now includes app resources. An existing exhaustive suppression was moved above its switch so the pinned linter recognizes it; runtime behavior is unchanged.

Verification

  • Go module verification, formatting/imports, tidy, vet, all ordinary tests, race tests, four fuzz targets, lint, workflow validation, and public API checks.
  • make licenses sbom secrets build-pure build-arm64
  • make demo-smoke integration e2e docs-check
  • npm run app:check and npm run app:test — 21 Playwright checks passed.
  • npm run app:screenshots — screenshots captured and visually inspected; mobile weather/table/wind views also checked at 390px.
  • npm run spec:check — all six specification/change items passed.
  • make verify passes on Go 1.27.2, including make vuln with no vulnerabilities found. The nine earlier standard-library findings are resolved by the patch upgrade.

npm audit also reports the pre-existing OpenSpec → fast-glob → micromatch → braces chain for GHSA-vfj7-8cjw-p6xm (four affected dependency entries). No added frontend dependency is flagged. The OpenSpec pins are unchanged by this feature.

Security and privacy

  • Synthetic fixtures/screenshots only; no credentials, private station data, or personal paths committed.
  • Bounded rendering and host-mediated read-only refresh; no app controls for sync or backfill.
  • No external resource/network origins or device permissions requested; untrusted values render as text, with existing server redaction and limits preserved.
  • Bundled dependency license texts travel with the embedded HTML.

Documentation

  • README, MCP Apps guide, architecture, threat model, troubleshooting, contributor guidance, and proposed release notes updated.
  • make docs-check
  • Baseline specification, active proposal, scenarios, design, and verification evidence included.
  • npm run spec:check

@agent-lennrt
agent-lennrt requested a review from lennrt as a code owner October 12, 2026 02:06
@lennrt
lennrt merged commit a21acc2 into lennrt:main Oct 13, 2026
11 checks passed
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.

2 participants