Getting Started with Agent77
Agent77 lets you add an AI-powered chat agent to any website with a single script tag. Your agent connects to your own MCP server, uses your own auth, and runs in your infrastructure.
How It Works
- A visitor loads your page. The Agent77 snippet injects a chat widget.
- When the user starts a conversation, the widget calls your token endpoint to exchange their session cookie for a short-lived JWT.
- The JWT is sent to the Agent77 runtime, which validates it via your OIDC discovery endpoints, then opens a session to your MCP server.
- The agent can now call tools on your MCP server on behalf of the authenticated user.
Quick Start (3 Steps)
1. Configure Auth
Set up two things on your backend: a token endpoint that issues JWTs and OIDC discovery endpoints so Agent77 can verify them.
2. Provision Your MCP Server
Build or adapt an MCP-compatible server that exposes tools the agent can call. Agent77 forwards the user's JWT so your server can authorize each request.
3. Embed the Snippet
Add the Agent77 script tag to your HTML. Point it at your token endpoint and you're live.
Documentation
- Token Endpoint Setup — Issue JWTs from your backend
- OIDC Discovery Setup — Expose public keys for JWT verification
- MCP Server Requirements — Build tools the agent can call
- JS Snippet Guide — Embed the chat widget on your site