Repository navigation
Description
Junior’s Vercel integration is intended for deployment and log investigation. Sequence the next Vercel capability work behind the core action-review boundary so Guardian can review structured read operations instead of trying to infer intent from raw CLI traffic.
Blocked by #1053. Parent approval design: #874.
Why wait for Guardian
The current Vercel skill describes a read-only CLI allowlist, but skill instructions are not an authorization boundary. An HTTP endpoint allowlist around an evolving CLI would also preserve a low-level interface that does not give Guardian the semantic proposal it needs: project, deployment, environment, time window, filters, result limit, and data sensitivity.
Prefer a typed Vercel tool surface. This lets core build the exact action proposal from validated input and authoritative runtime context immediately before execution.
Direction
- Expose structured read tools. Prefer Vercel’s official MCP tools if Junior’s OAuth client and tool filtering are compatible; otherwise add equivalent first-party plugin tools. Initial operations should cover:
- list teams and projects
- list and inspect deployments
- read build logs
- search bounded runtime logs
- Declare standard tool annotations. Read operations should carry appropriate MCP-compatible hints, including:
readOnlyHint: truedestructiveHint: falseopenWorldHint: true
- Route eligible actions through Guardian. Guardian receives the exact validated proposal and relevant user intent, then returns
allow,ask, ordeny. Ordinary bounded investigation should remain low-friction; unusually broad or sensitive production-log access may require confirmation. - Allowlist the exposed tool set. Do not expose deploy, rollback, promote, environment-variable, domain, cache, storage, alias, or other mutation tools as part of the read-only integration.
- Keep deterministic authorization authoritative. Tool annotations are reviewer signals, not credentials or policy grants. Provider-side permissions, credential issuance, target ownership, and hard mutation denials must still fail closed independently of Guardian.
Proposed Guardian proposal fields
For Vercel reads, the proposal should include the applicable subset of:
- team and project
- deployment
- production, preview, or other environment
- build logs versus runtime logs
- time window
- filters or search query
- result limit
- destination and actor from authoritative runtime context
Do not ask the model to reconstruct these facts from a shell command or a chain of HTTP requests.
Authentication options to evaluate
Official Vercel MCP
Evaluate https://mcp.vercel.com, preferably with a project-specific URL where appropriate, and restrict Junior to the read tools above. Confirm:
- Junior can complete Vercel’s OAuth flow as an accepted MCP client
allowedToolsprevents mutation tools from reaching the agent- tool annotations survive MCP adaptation into core approval metadata
- project/team scope and runtime-log access match product needs
First-party Junior tools
If the MCP route is not compatible, implement typed tools in @sentry/junior-vercel using host-managed credentials. Use the narrowest provider-side role or selected-project Integration permissions available. Keep real credentials host-side.
CLI compatibility
Do not expand the current credentialed CLI surface before Guardian lands. If the CLI remains as a temporary fallback:
- keep the real token out of the sandbox
- pin the CLI version before relying on request shapes
- deny credential issuance for unknown or mutating requests
- ensure the CLI cannot bypass the structured approval path for equivalent Vercel operations
The preferred end state is structured tools rather than Guardian reviewing arbitrary bash commands or individual HTTP requests.
Validation
- Vercel read tools preserve their declared
readOnlyHint,destructiveHint, andopenWorldHintmetadata. - Core constructs a proposal from validated arguments and authoritative actor, destination, conversation, and credential context.
- Guardian can allow an ordinary bounded read, ask for unusually broad or sensitive access, and deny an invalid proposal.
- Mutation tools are not exposed through the read-only Vercel integration.
- Missing target or authority context fails closed.
- Annotations cannot override deterministic authorization.
- Real Vercel credentials remain host-side.
Non-goals
- Adding Vercel deploy, rollback, promote, environment-variable, domain, storage, cache, or other mutation support
- Using Guardian as the credential or HTTP authorization boundary
- Reviewing every internal HTTP request emitted by the Vercel CLI
- Building a Vercel-specific approval system outside core
Related: #465 introduced the read-only Vercel skill, #337 established credential egress, #874 owns core action review, and #1053 owns Guardian enforcement.
References:
- https://vercel.com/docs/agent-resources/vercel-mcp
- https://vercel.com/docs/agent-resources/vercel-mcp/tools
- https://vercel.com/docs/integrations/install-an-integration/manage-integrations-reference
Requested by immutable dcramer via Junior.
--
Activity
[-]Enforce read-only Vercel access at egress[/-][+]Adopt Guardian-reviewed read-only Vercel tools[/+]sentry-junior commentedon Nov 9, 2026
Obsolete: the read-only, blocked-on-#1053 plan was overtaken. #1053 is closed and #1900 added typed Vercel deployment and alias tools, including writes, with read-only hints (
packages/junior-vercel/src/tools/actions.ts). Open a narrow issue if typed log tools are still wanted.Closed during a tracker cleanup. Reopen if this still needs separate tracking.