Skip to main content

Overview

The Interactive Playground provides a real-time testing environment for exploring AI agents built with MCP Server and LangGraph. It offers:
  • Real-time streaming - See agent responses as they’re generated
  • Session persistence - Maintain conversation context across interactions
  • In-context observability - View traces and metrics alongside chat
  • Tool visualization - Watch tool calls and responses in real-time

Quick Start

Get started in 5 minutes

API Reference

Explore the Playground API

Architecture

Quick Start

Prerequisites

  • Docker and Docker Compose
  • Running MCP Server instance
  • Valid authentication credentials

Starting the Playground

Your First Chat Session

1

Create a Session

Click “New Session” to create a conversation session. Sessions persist your conversation history.
2

Send a Message

Type your message and press Enter. The agent will stream its response in real-time.
3

View Observability

Click the “Traces” tab to see OpenTelemetry traces for your conversation.
4

Manage Sessions

Use the sidebar to switch between sessions or delete old ones.

Features

Real-Time Streaming

The playground uses WebSocket connections for real-time streaming of agent responses. This provides:
  • Immediate feedback - See each token as it’s generated
  • Tool call visualization - Watch tool invocations in real-time
  • Cancellation support - Stop long-running responses mid-stream

Session Management

Sessions provide persistent conversation context stored in Redis:
CreateActiveIdleExpired
  • Sessions are created on first message
  • Active sessions have a sliding TTL (default: 1 hour)
  • Idle sessions expire after inactivity
  • Expired sessions are cleaned up automatically
Sessions are stored in Redis with the following structure:
Sessions are scoped to authenticated users:
  • Each user sees only their own sessions
  • Session IDs include user-specific prefixes
  • Admin users can view all sessions (with proper authorization)

In-Context Observability

View traces and metrics directly in the playground interface:

Configuration

Environment Variables

Session Configuration

Security

Authentication

The playground requires JWT authentication for all API endpoints except health checks:

Authorization

Session access is controlled by OpenFGA:
Sessions contain sensitive conversation data. Ensure proper access controls are configured before deploying to production.

API Endpoints

Sessions API

Create, list, and delete chat sessions

Chat API

Send messages and receive streaming responses

Observability API

Retrieve traces, logs, and metrics

WebSocket API

Real-time bidirectional communication
See Playground API Reference for complete endpoint documentation.

Troubleshooting

Symptoms: Unable to establish WebSocket connectionSolutions:
  1. Check that the playground server is running
  2. Verify the WebSocket URL uses ws:// or wss://
  3. Ensure authentication token is valid
  4. Check for proxy/firewall issues blocking WebSocket
Symptoms: Messages disappear after refreshSolutions:
  1. Verify Redis is running and accessible
  2. Check session TTL configuration
  3. Ensure you’re using the same session ID
  4. Check Redis connection in logs
Symptoms: Observability panel shows no dataSolutions:
  1. Verify OpenTelemetry is configured
  2. Check OTEL exporter endpoint is reachable
  3. Ensure trace sampling is enabled
  4. Check for trace filtering by session ID

Visual Workflow Builder

Design agents visually

MCP Protocol

Understand MCP messaging

Authentication

Configure authentication

Observability

Set up monitoring

Ready to test! Start the playground and begin exploring your AI agents in real-time.