From d81e997793e3af6675e55cf3b00060f55400365e Mon Sep 17 00:00:00 2001 From: Liam Horne Date: Sat, 5 Sep 2026 11:58:38 -0400 Subject: [PATCH] Proxy the public MCP endpoint to the tracker API --- README.md | 6 ++++++ next.config.mjs | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index f55377a..2f15e61 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,12 @@ If linting fails, the commit will be blocked until issues are resolved. Metrics are scraped using github actions which automatically updates the repo with up to date data. +## MCP server + +The tracker API exposes a read-only Model Context Protocol endpoint at +`https://www.buildcanada.com/tracker/mcp`. The frontend proxies this endpoint to +the Rails API alongside the JSON API routes. + ## Contributing We would love to have your help! Please fill in our volunteer [intake form](https://5nneq7.share-na3.hsforms.com/2l9iIH2gFSomphjDe-ci5OQ). diff --git a/next.config.mjs b/next.config.mjs index 6153cad..1621c49 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -49,6 +49,10 @@ const nextConfig = { source: "/api/dashboard/:path*", destination: `${process.env.NEXT_PUBLIC_API_URL}/api/dashboard/:path*`, }, + { + source: "/mcp", + destination: `${process.env.NEXT_PUBLIC_API_URL}/mcp`, + }, ]; }, };