Skip to content

Fix public Outcome Tracker MCP endpoint - #169

Open
snario wants to merge 1 commit into
BuildCanada:mainfrom
snario:fix/mcp-proxy
Open

Fix public Outcome Tracker MCP endpoint#169
snario wants to merge 1 commit into
BuildCanada:mainfrom
snario:fix/mcp-proxy

Conversation

@snario

@snario snario commented Sep 5, 2026

Copy link
Copy Markdown

Summary

  • proxy POST /tracker/mcp through the Next.js frontend to the Rails API POST /mcp route
  • document the public MCP endpoint in the frontend repository

Why

The Rails API added its MCP server in BuildCanada/OutcomeTrackerAPI#117 and documents the public URL as https://www.buildcanada.com/tracker/mcp. The production frontend currently returns its own 404 for that URL because next.config.mjs proxies the JSON API routes but has no MCP rewrite.

The existing Rails JSON API remains reachable through the frontend, confirming the API proxy/origin is live. This adds the missing cross-repo routing piece.

Verification

  • imported next.config.mjs with a test API origin and asserted /mcp resolves to <origin>/mcp
  • prettier --check next.config.mjs README.md
  • git diff --check

The live URL will still return 404 until this frontend change is merged and deployed.

@snario

snario commented Sep 5, 2026

Copy link
Copy Markdown
Author

Production verification: the Rails MCP server itself is healthy. The existing /api/v1/:path* wildcard can currently reach it at the temporary URL https://www.buildcanada.com/tracker/api/v1/mcp; initialize, tools/list, and tools/call (list_activity) all returned valid MCP responses with all 10 tools. Only the documented canonical /tracker/mcp route is missing, which this PR restores.

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