Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Vercel template for building a Claude Managed Agents knowledge assistant that searches GitHub, Notion, and Slack via MCP.
The Claude Managed Agents Template is a Vercel-deployable boilerplate from Vercel Labs for building an internal knowledge agent that lets users query GitHub, Notion, and Slack through a single chat interface powered by Claude Managed Agents.
This open-source starter implements a full-stack chat application on Next.js 16 with the App Router and React 19. It takes MCP-connected data sources — GitHub, Notion, and Slack — as inputs and produces a web UI where authenticated users can ask questions across all of them. The template is built by Vercel Labs, is deployed to Vercel, and communicates with Anthropic's Claude Managed Agents API through the official @anthropic-ai/sdk.
lib/managed-agents.ts creates sessions and sends messages via the Anthropic SDK, backed by ANTHROPIC_AGENT_ID and ANTHROPIC_ENVIRONMENT_ID.lib/schema.ts defines Better Auth tables plus managed agent tables, persisted to Neon Postgres.app/workflows/tail-session.ts is a durable workflow that polls Anthropic events and stores them in Postgres.app/api/managed-agents/ for session, message, and transcript handling.The quickstart walks through cloning the repo, installing the claude-api and vercel/workflow skills via npx, linking a Vercel project, and adding Neon. After deployment, the proxy.ts auth guard redirects unauthenticated users on protected routes. When a user sends a message, the REST API routes create a managed agent session and send it through the Anthropic SDK, while the durable Workflow SDK task polls events and persists the conversation to Postgres.
Yes. You must set ANTHROPIC_API_KEY (from console.anthropic.com), ANTHROPIC_AGENT_ID, and ANTHROPIC_ENVIRONMENT_ID (from a Managed Agents environment) before the agent can respond.
Create a GitHub OAuth app and set GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET as optional environment variables. This enables the GitHub data source via MCP.
It uses Neon Postgres with Drizzle ORM. The Drizzle schema in lib/schema.ts includes both Better Auth authentication tables and the tables needed for managed agent sessions and messages.
The template is designed for Vercel: the Deploy button preconfigures environment variables, and the quickstart uses vercel link and vercel integration add neon. You would need to supply the Vercel OAuth credentials (VERCEL_CLIENT_ID and VERCEL_CLIENT_SECRET) to run it elsewhere.
