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.

SettingValue
Catalog IDvercel
Endpointhttps://mcp.vercel.com
TransportStreamable HTTP (Remote)
AuthenticationOAuth 2.1 (browser or --manual)
python
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.

Diagram

👤 User

🤖 PraisonAI Agent

🔐 Vercel OAuth 2.1

▲ Vercel Remote MCP
mcp.vercel.com

✅ Deployments & Logs


How 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.

Diagram
PraisonAI AgentVercel MCP Servermcp-auth.jsonVercel OAuth 2.1praisonai CLIUserPraisonAI AgentVercel MCP Servermcp-auth.jsonVercel OAuth 2.1praisonai CLIUserpraisonai connectors add vercel –authRun OAuth 2.1 PKCE consentApprove Vercel team access in browserSave OAuth token (0600)Check failed deployment logsLoad cached tokenFetch deployments and build logsDeployment status and error traceRoot-cause summary

Step-by-Step Setup

  1. Prerequisites
    • A Vercel account with access to the team and projects you want to inspect
  2. Install PraisonAI with MCP support
    bash
    pip install "praisonai[mcp]"
  3. Add and authenticate Vercel

    CLI (Interactive OAuth)

    bash
    praisonai connectors add vercel --auth

    Headless / SSH (–manual)

    bash
    praisonai connectors add vercel --auth --manual

    PraisonAI Dashboard

    Enable catalog connectors in your PraisonAIUI config.yaml:

    yaml
    mcp:
      enabled: true
      allow:
        catalog: true

    Run praisonai dashboard, open Connectors / MCP, and click Connect on Vercel.

  4. Verify and inspect tools
    bash
    praisonai mcp sync vercel
  5. 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

SymptomCauseFix
401 Unauthorized on praisonai connectors test vercelconnectors test does not attach stored OAuth tokensVerify with praisonai mcp sync vercel
Team projects not visibleAuthorized personal scope instead of team scopeRun praisonai connectors logout vercel --yes then praisonai connectors auth vercel and grant team access
Remote SSH timeout during sign-inLoopback redirect unreachableUse 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.


Related