Problem
MCP_ENDPOINT is a hardcoded const with zero env reads, so there is no way to point staging/local builds at a different registry.
Where
src/worker/mcp.ts (export const MCP_ENDPOINT = "https://mcp.agentpostmortem.com/mcp").
Acceptance
Add a failing test first setting the endpoint via env/binding, expecting callMcpTool to target it. Then fix.
Problem
MCP_ENDPOINTis a hardcoded const with zero env reads, so there is no way to point staging/local builds at a different registry.Where
src/worker/mcp.ts(export const MCP_ENDPOINT = "https://mcp.agentpostmortem.com/mcp").Acceptance
Add a failing test first setting the endpoint via env/binding, expecting
callMcpToolto target it. Then fix.