Skip to content

Fix: map widget + mcp-address subagent wiring - #60

Merged
YASSERRMD merged 6 commits into
mainfrom
fix/56-map-widget-and-mcp-address
May 28, 2026
Merged

Fix: map widget + mcp-address subagent wiring#60
YASSERRMD merged 6 commits into
mainfrom
fix/56-map-widget-and-mcp-address

Conversation

@YASSERRMD

Copy link
Copy Markdown
Owner

Summary

  • Wires the joblantern app to an mcp-address MCP server, emitting address.geocoded (with lat/lon/display_name) or address.not_found evidence facts per submission.
  • Adds a Leaflet 1.9.4 map widget to the verdict page that plots a pin when an address.geocoded fact is present (self-hosted leaflet — no CDN).
  • Relaxes CSP to allow OSM tile images and the Leaflet inline bootstrap.
  • Adds deploy/docker-compose.smoketest.yml — postgres + mcp-address + app — and a cmd/joblantern/Dockerfile. Existing deploy/Dockerfile.dev golang base bumped from 1.23 → 1.25 to match go.mod.

Test plan

  • docker compose -f deploy/docker-compose.smoketest.yml up -d --build brings the stack up healthy.
  • Verdict with a real address (Werner-von-Siemens-Straße 1, Munich) → GREEN, map renders with pin at 48.1443, 11.5749.
  • Verdict with a gibberish address → RED, address.not_found evidence row, no map.
  • CSP still blocks unexpected origins (no console errors on the verdict page).

@YASSERRMD
YASSERRMD merged commit 60028e8 into main May 28, 2026
3 of 6 checks passed
@YASSERRMD
YASSERRMD deleted the fix/56-map-widget-and-mcp-address branch May 28, 2026 09:49
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.

1 participant