Skip to content

chore(cdk): strip leftover /about MCP URL and TOKEN Amplify env - #87

Merged
jginorio merged 1 commit into
mainfrom
cursor/strip-about-mcp-env-3f03
Sep 17, 2026
Merged

jginorio merged 1 commit into
mainfrom
cursor/strip-about-mcp-env-3f03

Conversation

@jginorio

@jginorio jginorio commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

/about is gone (root redirects to /knowledge) and nothing in web/ reads NEXT_PUBLIC_MCP_URL or NEXT_PUBLIC_MCP_TOKEN. This PR strips the leftover Amplify env plumbing — same shape as merged #85 MARKETING_URL strip.

  • Drop CDK mcpEnvVars push of NEXT_PUBLIC_MCP_URL and NEXT_PUBLIC_MCP_TOKEN (including the shared team bearer)
  • Remove /about comments that justified injecting those keys
  • Keep NEXT_PUBLIC_MCP_HOST for /brains copy-paste snippets (per-brain tokens still come from /api/brains/[id]/token)
  • Synth tests now assert leftover URL/TOKEN are not Amplify env; hosted NEXT_PUBLIC_MCP_HOST still is

Keep

Leave alone

Test plan

  • Repo scan: web/ has zero readers of NEXT_PUBLIC_MCP_URL / NEXT_PUBLIC_MCP_TOKEN (NEXT_PUBLIC_MCP_HOST remains in web/app/brains/page.tsx)
  • CDK stack-synth.test.ts — 2/2 pass (leftover URL/TOKEN are not Amplify env; hosted NEXT_PUBLIC_MCP_HOST stays)
  • Full CDK suite — 30/30 pass
  • amplify.yml still does not grep those two keys into .env.production
Open in Web Open in Cursor 

/about is gone; nothing in web/ reads NEXT_PUBLIC_MCP_URL or
NEXT_PUBLIC_MCP_TOKEN. Stop injecting the shared team bearer into
Amplify. Keep NEXT_PUBLIC_MCP_HOST for /brains copy-paste snippets.

Co-authored-by: Jaime Ginorio <jaime.ginorio@finditpr.com>
@jginorio
jginorio marked this pull request as ready for review September 17, 2026 14:02
@jginorio
jginorio merged commit d43d536 into main Sep 17, 2026
1 check 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