Vercel Connector
Connect PraisonAI agents to Vercel for projects, deployments, build logs, and runtime errors with OAuth 2.1
Connect your PraisonAI agents to Vercel to inspect projects, check preview and production deployments, read build logs, and diagnose runtime errors using Vercel’s official remote MCP server.
| Setting | Value |
|---|---|
| Catalog ID | vercel |
| Endpoint | https://mcp.vercel.com |
| Transport | Streamable HTTP (Remote) |
| Authentication | OAuth 2.1 (browser or --manual) |
from praisonaiagents import Agent, MCP
agent = Agent(
name="Deployment Assistant",
instructions="Inspect Vercel deployments and diagnose build or runtime failures clearly.",
tools=MCP(
"https://mcp.vercel.com",
oauth=True,
server_name="vercel",
),
)
agent.start("Check the latest 5 deployments on my main Vercel project and report any failed builds")The user asks about a failing deploy; PraisonAI signs into Vercel over OAuth 2.1, pulls build logs, and explains the exact error.
graph LR
User["👤 User"] --> Agent["🤖 PraisonAI Agent"]
Agent --> Auth["🔐 Vercel OAuth 2.1"]
Auth --> Vercel["▲ Vercel Remote MCP<br/>mcp.vercel.com"]
Vercel --> Result["✅ Deployments & Logs"]
classDef input fill:#6366F1,stroke:#7C90A0,color:#fff
classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
classDef auth fill:#F59E0B,stroke:#7C90A0,color:#fff
classDef ok fill:#10B981,stroke:#7C90A0,color:#fff
class User input
class Agent agent
class Auth auth
class Vercel,Result okHow It Works
PraisonAI connects to Vercel’s hosted MCP server (https://mcp.vercel.com) with OAuth 2.1 PKCE, saves your token locally at 0600 in ~/.praisonai/mcp-auth.json, and reuses it across Python, CLI, and Dashboard.
sequenceDiagram
participant User
participant CLI as praisonai CLI
participant VAuth as Vercel OAuth 2.1
participant Store as mcp-auth.json
participant VMCP as Vercel MCP Server
participant Agent as PraisonAI Agent
User->>CLI: praisonai connectors add vercel --auth
CLI->>VAuth: Run OAuth 2.1 PKCE consent
VAuth-->>User: Approve Vercel team access in browser
VAuth-->>Store: Save OAuth token (0600)
User->>Agent: Check failed deployment logs
Agent->>Store: Load cached token
Agent->>VMCP: Fetch deployments and build logs
VMCP-->>Agent: Deployment status and error trace
Agent-->>User: Root-cause summaryStep-by-Step Setup
- Prerequisites
- A Vercel account with access to the team and projects you want to inspect
- Install PraisonAI with MCP support
bash pip install "praisonai[mcp]" - Add and authenticate Vercel
CLI (Interactive OAuth)
bash praisonai connectors add vercel --authHeadless / SSH (–manual)
bash praisonai connectors add vercel --auth --manualPraisonAI Dashboard
Enable catalog connectors in your PraisonAIUI
config.yaml:yaml mcp: enabled: true allow: catalog: trueRun
praisonai dashboard, open Connectors / MCP, and click Connect on Vercel. - Verify and inspect tools
bash praisonai mcp sync vercel - Run your deployment agent
python from praisonaiagents import Agent, MCP agent = Agent( name="Vercel Helper", instructions="Check deployment status and summarize build errors concisely.", tools=MCP("https://mcp.vercel.com", oauth=True, server_name="vercel"), ) agent.start("List my Vercel projects and show the latest production deployment URL for each")
Scope Tools for Safety
Keep monitoring agents read-only with --allow (inspect tool names first via praisonai mcp sync vercel), or set approval="always" on MCP(...) before allowing rollbacks or environment variable changes.
Common Workflows
- Build Failure Diagnosis:
"Fetch build logs for the most recent errored deployment on web-app and pinpoint the failing step." - Preview URL Lookup:
"Find the preview deployment URL for branch feat/new-pricing."
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
401 Unauthorized on praisonai connectors test vercel | connectors test does not attach stored OAuth tokens | Verify with praisonai mcp sync vercel |
| Team projects not visible | Authorized personal scope instead of team scope | Run praisonai connectors logout vercel --yes then praisonai connectors auth vercel and grant team access |
| Remote SSH timeout during sign-in | Loopback redirect unreachable | Use praisonai connectors auth vercel --manual |
Best Practices
Pair Vercel with GitHub and Sentry for release debugging
Combine Vercel build/runtime logs with GitHub commits and Sentry traces in a single multi-connector agent (tools=[vercel_mcp, github_mcp, sentry_mcp]).
Require approval before production promotions or env changes
Pass approval="always" to MCP(...) if an agent can promote deployments, trigger rollbacks, or edit environment variables.
Specify team slug and project name in prompts
Naming your team and project explicitly avoids extra discovery calls on large Vercel accounts.