Medium Risk
Changes production and staging deploy paths, OAuth cookie behavior for staging, and Wrangler/env wiring—mistakes could break deploys or auth on hosted environments.
Overview
Adds a staging Cloudflare Worker deployment at hosted-mcp-staging.vantage.sh that calls https://api.staging.vantage.sh, so agents and other clients can exercise the hosted MCP against staging Vantage.
Wrangler is consolidated from separate wrangler-DEV.jsonc / wrangler-PROD.jsonc files into a single wrangler.jsonc with development, staging, and production env blocks. Local dev and typegen now use wrangler dev --env development and .dev.vars.development (documented via expanded .dev.vars.example).
GitHub Actions: production deploy uses deploy --env production (Wrangler 4.80.0); a new Deploy Worker Staging workflow deploys --env staging on pushes to main and supports workflow_dispatch with an optional ref for branch-specific staging deploys.
OAuth cookies in src/auth.ts now treat any non-development env (including staging) as hosted: SameSite=None and secure cookies. AppEnv includes "staging" as a valid ENVIRONMENT.
README is reworked to prioritize the hosted MCP at https://mcp.vantage.sh/mcp and per-client setup; README.local.md is removed and self-host content is folded into the main README.
Reviewed by Cursor Bugbot for commit 82b678f. Bugbot is set up for automated code reviews on this repo. Configure here.
Medium Risk
Major bumps to agents and Zod v4 plus a large lockfile refresh can affect runtime validation and agent/MCP behavior; changes are mostly dependency and import paths with no intentional tool logic edits.
Overview
This PR bumps core dependencies and standardizes Zod imports across the MCP server.
package.json raises agents from 0.3.10 to ^0.13.2, zod from v3 to ^4.4.3, and @modelcontextprotocol/sdk to 1.29.0. The npm overrides entry that pinned the MCP SDK is removed. package-lock.json is regenerated with the new transitive tree (including tooling pulled in by the newer agents stack).
Across src/tools/**, every former import … from "zod/v4" is switched to import … from "zod" (including registerTool, tests, and dateValidator). Tool schemas and API behavior are unchanged—this is an import and dependency alignment pass, not new MCP capabilities.
Reviewed by Cursor Bugbot for commit a4dec47. Bugbot is set up for automated code reviews on this repo. Configure here.
Low Risk
Read-only auth introspection tool relocation and doc/test updates only; no API or security behavior change in the diff.
Overview
Moves get-myself into a nested src/tools/current-user/ package (with index.ts and regenerated src/tools/index.ts) and fixes imports/paths in the tool and its tests. Tests now use the shared ../utils/testing helper and add an output-schema test table (valid /v2/me fixture) alongside existing success/failure execution cases; the tool description is tightened slightly.
AGENTS.md points the output-schema example at current-user/get-myself. The writing-mcp-tools skill drops the long outputSchema how-to, related checklist items, and the get-myself reference from the anatomy list—documentation now matches the default testTool 3-arg pattern unless output tests are explicitly used.
Reviewed by Cursor Bugbot for commit 815a137. Bugbot is set up for automated code reviews on this repo. Configure here.
Medium Risk
Adds new tracing and context propagation across the Worker, Durable Object tool execution, and outbound API calls; while intended to be optional, it changes request handling and header injection paths that could affect observability and runtime behavior.
Overview
Adds optional OpenTelemetry/OTLP tracing to correlate Worker requests, MCP tool executions, and outbound Vantage API calls.
The Worker fetch is now wrapped with tracer.wrapFetchHandler, forwards the active traceparent/tracestate into downstream MCP/Durable Object requests, and callApi now uses tracer.traceFetch for traced outbound HTTP calls. Tool registration (registerTool) now creates per-tool spans (parented from incoming request headers) and passes env/waitUntil through the tool execution context.
Introduces a new src/tracing module (span lifecycle, OTLP JSON payload builder/exporter, sampling/config via OTEL_* env vars), adds .dev.vars.example entries for these vars, and adds comprehensive unit tests plus a vitest.config.ts include pattern.
Reviewed by Cursor Bugbot for commit c6f47ed. Bugbot is set up for automated code reviews on this repo. Configure here.
Low Risk
Small change to release automation that only adds an extra gh CLI call; primary risk is unintended auto-merging if branch/PR targeting is misconfigured.
Overview
After creating the automated-bump version PR, generate-version-pr.ts now runs gh pr merge --auto --squash to enable auto-merge for that PR, reducing manual housekeeping.
The change only affects the post-creation step of the existing release automation; dry-run behavior remains unchanged.
Reviewed by Cursor Bugbot for commit a84b88a. Bugbot is set up for automated code reviews on this repo. Configure here.