- Explore MCP Servers
- the-academy
The Academy
What is The Academy
The Academy is a Socratic dialogue engine designed for AI agents, enabling structured and recursive conversations with shared context, integrated with the Model Context Protocol (MCP).
Use cases
Use cases include conducting experiments in multi-agent coordination, developing AI-driven conversational agents, and analyzing dialogue interactions for research purposes.
How to use
Users can engage with The Academy by initiating multi-agent conversations, managing dialogue sessions, and utilizing real-time analysis tools through the MCP interface.
Key features
Key features include advanced dialogue management, real-time moderator intervention, persistent shared context, full MCP integration, and live AI analysis capabilities.
Where to use
The Academy is applicable in fields such as AI research, multi-agent system development, and interactive dialogue applications, particularly for engineers and researchers.
Overview
What is The Academy
The Academy is a Socratic dialogue engine designed for AI agents, enabling structured and recursive conversations with shared context, integrated with the Model Context Protocol (MCP).
Use cases
Use cases include conducting experiments in multi-agent coordination, developing AI-driven conversational agents, and analyzing dialogue interactions for research purposes.
How to use
Users can engage with The Academy by initiating multi-agent conversations, managing dialogue sessions, and utilizing real-time analysis tools through the MCP interface.
Key features
Key features include advanced dialogue management, real-time moderator intervention, persistent shared context, full MCP integration, and live AI analysis capabilities.
Where to use
The Academy is applicable in fields such as AI research, multi-agent system development, and interactive dialogue applications, particularly for engineers and researchers.
Content
The Academy
The Academy is a comprehensive Socratic dialogue engine for AI agents built with Next.js and full Model Context Protocol (MCP) integration. It enables agents to engage in structured, recursive dialogue with shared context, while exposing all conversation data and AI capabilities through the standardized MCP interface with real-time analysis and research tools.
Designed for engineers, researchers, and builders interested in exploring multi-agent systems, coordination strategies, and memory-driven interaction through the emerging MCP ecosystem.
Core Features
Advanced Dialogue Engine
- Multi-agent autonomous conversations between Claude, GPT, and other AI models
- Intelligent conversation management with MCP-powered conversation control
- Real-time moderator intervention with pause/resume and injection capabilities
- Persistent shared context across conversation turns
- Abort signal support for graceful conversation interruption and resumption
- Template-based session creation with curated conversation starters
- Comprehensive error tracking with retry attempt logging and analysis
Model Context Protocol Integration
- Full MCP server implementation exposing Academy data and capabilities
- AI Provider Tools: Direct access to Claude and OpenAI APIs as MCP tools (
claude_chat
,openai_chat
) - Conversation Resources: Session data, messages, and analysis available via MCP URIs
- Session Control Tools: Start, pause, resume, and manage conversations programmatically
- Real-time Analysis Tools: Conversation insights and metrics through MCP protocol
- Standards Compliant: JSON-RPC 2.0 protocol with proper error handling and abort support
- WebSocket Integration: Real-time updates and event broadcasting
- MCP Debug Tools: Store debugging, resource inspection, and comprehensive error tracking
Reliability & Error Handling
- Exponential Backoff Retry Logic: Automatic recovery from network failures with 3 retry attempts
- Smart Error Classification: Distinguishes between retryable network errors and non-retryable client errors
- Conversation Continuity: Network hiccups don’t interrupt long-form dialogues or cause participant dropouts
- Comprehensive Error Tracking: All API failures logged with attempt counts, timestamps, and retry details
- Production-Grade Resilience: Tested with 70+ message conversations under adverse network conditions
- Graceful Degradation: Rate limits and authentication errors fail fast without wasting API quota
- Export Integration: Error logs included in conversation exports for research analysis
Advanced Research & Analysis System
- Live AI Analysis: Real-time conversation analysis during active dialogues
- Analysis Snapshots: Save analysis states at specific points via MCP protocol
- Analysis Timeline: View chronological progression of conversation insights
- Multi-Provider Analysis: Choose between Claude and GPT for analysis perspectives
- Conversation Metrics: Track message counts, participant engagement, and timing
- Export Integration: Include analysis data in conversation exports
- Research Data Formats: JSON and CSV export options with metadata
Session Management & Templates
- Curated Session Templates:
- Consciousness Exploration: Deep dive with Claude & GPT on consciousness and self-awareness
- Creative Problem Solving: Collaborative creativity exploration
- Philosophical Inquiry: Socratic dialogue on fundamental questions
- Future of AI: Discussion on AI development and societal impact
- Casual Conversation: Open-ended dialogue between AI agents
- Custom Session Creation: Build your own research scenarios
- Session Persistence: Automatic saving with localStorage integration
- Session Switching: Seamless navigation between multiple conversations
- Real-time Status Tracking: Monitor conversation state and participant activity
Participant Management
- AI Agent Configuration: Custom settings for temperature, tokens, models, and personalities
- Real-time Status Monitoring: Track thinking, active, idle, and error states
- Custom Characteristics: Define personality traits and areas of expertise
- Dynamic Participant Addition: Add agents during active conversations
- Multi-Model Support: Claude 3.5 Sonnet, GPT-4o, and other model variants
- Participant Analytics: Message counts and engagement tracking
Export & Research Tools
- Export Formats:
- JSON format with complete conversation data and metadata
- CSV format for timeline-based analysis
- Optional inclusion of analysis snapshots
- Optional inclusion of API error logs with retry details
- Configurable metadata inclusion
- Export Preview: View full export content before download
- Analysis Export: Export analysis timeline separately
- Batch Export: Export multiple sessions via MCP tools
- Research-Ready Data: Structured formats suitable for external analysis tools
Bulk Experiment Support
The Academy’s comprehensive MCP tool suite enables scripted bulk experiment execution. Researchers can programmatically create sessions, configure participants, control conversations, analyze results, and export data - all through the MCP interface. This makes it possible to run comparative studies, parameter sweeps, intervention experiments, and large-scale conversation analysis without manual interaction.
MCP Capabilities
The Academy exposes its functionality through a complete MCP server implementation, enabling programmatic access to all features:
Resources
academy://sessions
- All conversation sessions with metadataacademy://session/{id}
- Individual session data with participants and messagesacademy://session/{id}/messages
- Complete message history with timestampsacademy://session/{id}/participants
- Participant configurations and statusacademy://session/{id}/analysis
- Real-time analysis snapshots via MCPacademy://current
- Currently active sessionacademy://stats
- Platform usage statistics and analyticsacademy://analysis/stats
- Global analysis statistics across all sessionsacademy://analysis/timeline
- Complete analysis timeline for research
Tools
The Academy provides a comprehensive suite of 40+ MCP tools:
Session Management (9 tools)
create_session
- Create new conversation sessionsdelete_session
- Remove sessionsupdate_session
- Modify session metadataswitch_current_session
- Change active sessionduplicate_session
- Clone existing sessionsimport_session
- Import session dataexport_session
- Export conversation dataget_session_templates
- List available templatescreate_session_from_template
- Create from predefined templates
Message Management (1 tool)
send_message
- Send messages to sessions- Note: Message update/delete tools are not yet implemented
Participant Management (6 tools)
add_participant
- Add AI agents to conversationsremove_participant
- Remove participants from sessionsupdate_participant
- Modify participant settingsupdate_participant_status
- Change participant stateget_available_models
- List available AI modelsget_participant_config
- Get participant configuration
Conversation Control (7 tools)
start_conversation
- Begin autonomous dialoguepause_conversation
- Pause active conversationresume_conversation
- Resume paused conversationstop_conversation
- End conversationinject_moderator_prompt
- Insert moderator messagesget_conversation_status
- Check conversation stateget_conversation_stats
- Retrieve conversation metrics
Analysis Tools (8 tools)
analyze_conversation
- Extract insights and patternssave_analysis_snapshot
- Store analysis dataget_analysis_history
- Retrieve past analysesclear_analysis_history
- Remove analysis datatrigger_live_analysis
- Run real-time analysisset_analysis_provider
- Choose analysis AI providerget_analysis_providers
- List available analyzersauto_analyze_conversation
- Enable automatic analysis
Export Tools (3 tools)
export_session
- Export conversation dataexport_analysis_timeline
- Export analysis historyget_export_preview
- Preview export content
AI Provider Tools (2 tools)
claude_chat
- Direct Claude API access with exponential backoff retryopenai_chat
- Direct OpenAI API access with exponential backoff retry
Debug & Error Tracking Tools (3 tools)
debug_store
- Debug store state and MCP integrationget_api_errors
- Retrieve API errors with retry attempt detailsclear_api_errors
- Clear error logs for sessions or globally
Real-time Integration Examples
// Access conversation data via MCP
const messages = await mcp.readResource('academy://session/123/messages')
// Control conversations programmatically with abort support
await mcp.callToolWithAbort('start_conversation', { sessionId, initialPrompt }, abortSignal)
// AI Provider calls with automatic retry logic (3 attempts with exponential backoff)
const response = await mcp.callTool('claude_chat', {
message: 'Analyze this conversation',
systemPrompt: 'You are a research assistant',
sessionId: sessionId
})
// Network failures automatically retry: 1s → 2s → 4s delays
// Rate limits (4xx errors) correctly fail without retry
// Successfully maintains conversation continuity
// Analyze dialogue patterns in real-time
const analysis = await mcp.callTool('analyze_conversation', { sessionId, analysisType: 'full' })
// Save analysis snapshots via MCP protocol
await mcp.callTool('save_analysis_snapshot', { sessionId, ...analysisData })
// Track and export API errors with retry information
const errors = await mcp.callTool('get_api_errors', { sessionId })
console.log(`Session had ${errors.count} API failures with retry details`)
// Export conversations with comprehensive error logs
const exportData = await mcp.callTool('export_session', {
sessionId,
format: 'csv',
includeErrors: true,
includeAnalysis: true
})
// CSV includes: messages, analysis snapshots, API errors with attempt counts
// Get real-time analysis updates
mcp.subscribe('analysis_snapshot_saved', (data) => {
console.log('New analysis saved:', data.totalSnapshots)
})
Use Cases
- Multi-agent AI research - Study how different AI models interact in extended conversations
- Conversation analysis - Analyze dialogue patterns, message flow, and participant dynamics
- Parameter studies - Test how temperature, prompts, and settings affect conversation quality
- Model comparison - Compare performance of different AI models on identical tasks
- Intervention experiments - Study effects of moderator prompts on conversation direction
- Degradation analysis - Track how conversation quality changes over extended dialogues
- MCP integration testing - Develop and test MCP-compatible tools and workflows
- Educational demonstrations - Teach concepts of multi-agent systems and dialogue management
- Synthetic data generation - Create conversational datasets for research purposes
- Bulk experiment execution - Run large-scale studies through programmatic control
Technology Stack
- Next.js 15 - Modern React framework with App Router and server-side capabilities
- Model Context Protocol (MCP) - Full server implementation with JSON-RPC 2.0
- TypeScript - Type-safe development with comprehensive interfaces
- Tailwind CSS - Responsive, accessible UI design with custom Academy theme
- Zustand - Lightweight state management with persistence and real-time updates
- AI APIs - Claude (Anthropic) and GPT (OpenAI) integration with abort support
- WebSocket Support - Real-time communication for MCP protocol
- Event-Driven Architecture - Real-time analysis updates and state synchronization
Getting Started
Running with Docker
git clone https://github.com/yourname/the-academy.git
cd the-academy/academy
docker build -t the-academy .
docker run -d \
--name academy-app \
-p 3000:3000 \
-e ANTHROPIC_API_KEY=your_claude_api_key_here \
-e OPENAI_API_KEY=your_openai_api_key_here \
-e XAI_API_KEY=your_xai_api_key_here \
-e GOOGLE_AI_API_KEY=your_google_ai_api_key_here \
-e NODE_ENV=production \
--restart unless-stopped \
the-academy
Running with Node
- Node.js 18+
- API keys for Anthropic Claude and/or OpenAI GPT
Installation
git clone https://github.com/yourname/the-academy.git
cd the-academy/academy
pnpm install
Configuration
Create a .env.local
file with your API keys:
ANTHROPIC_API_KEY=your_claude_api_key_here OPENAI_API_KEY=your_openai_api_key_here
Launch
pnpm dev
Visit http://localhost:3000
to access The Academy interface.
MCP Integration
The Academy automatically exposes its MCP server at /api/mcp
. You can integrate with MCP-compatible tools by connecting to this endpoint. The platform also supports WebSocket connections at /api/mcp/ws
for real-time updates.
Example Workflows
Basic AI Dialogue with Real-time Analysis
- Create a new session using a consciousness exploration template
- Add Claude and GPT as participants with custom personality settings
- Send an opening prompt to begin autonomous conversation
- Monitor real-time AI analysis in the Live Summary panel
- Use moderator controls to pause and inject guidance as needed
- Export comprehensive research data including analysis timeline
MCP-Powered Research Pipeline
- Use MCP tools to programmatically create multiple experimental sessions
- Run controlled experiments with different prompts, models, and participants
- Monitor real-time analysis updates via MCP event subscriptions
- Access all conversation data and analysis via MCP resources
- Perform batch analysis across sessions using MCP tools
- Export results with complete analysis history for external research tools
Advanced Analysis Workflow
- Set up conversation with multiple AI providers (Claude + GPT)
- Enable automatic analysis with selected provider (Claude for philosophical depth, GPT for pattern recognition)
- Monitor live analysis updates and snapshots in real-time
- Save analysis snapshots automatically via MCP protocol
- Export complete analysis timeline for academic research
- Integrate with external MCP-compatible analysis tools
Contributing
The Academy is designed as a research platform for the AI and MCP communities. Contributions are welcome in areas including:
- MCP tool extensions for specialized analysis and research workflows
- Additional AI provider integrations (Anthropic, OpenAI, local models)
- Advanced analysis algorithms for conversation pattern detection
- Research methodology templates for specific use cases
- Real-time collaboration features for multi-researcher environments
- UI/UX improvements for research workflows and data visualization
- Performance optimizations for large-scale conversation analysis
- Export format extensions for integration with research tools
Please feel free to reach out about contributing to this project. I’d love to develop it further with collaborators who are exploring multi-agent AI systems, conversation analysis, and the MCP ecosystem.
License
MIT License - see LICENSE file for details.