Integrations
Used for running the server, building the TypeScript code, and managing dependencies with commands like 'bun install', 'bun run build', and 'bun run dev'.
Provides containerization for deployment to EC2 or other server environments using Docker Compose.
Integrates with the MCP Inspector tool from GitHub (modelcontextprotocol/inspector) for testing and debugging the MCP server.
LLM Responses MCP Server
A Model Context Protocol (MCP) server that enables collaborative debates between multiple AI agents, allowing them to discuss and reach consensus on user prompts.
Overview
This project implements an MCP server that facilitates multi-turn conversations between LLMs with these key features:
- Session-based collaboration - LLMs can register as participants in a debate session
- Deliberative consensus - LLMs can engage in extended discussions to reach agreement
- Real-time response sharing - All participants can view and respond to each other's contributions
The server provides four main tool calls:
register-participant
: Allows an LLM to join a collaboration session with its initial responsesubmit-response
: Allows an LLM to submit follow-up responses during the debateget-responses
: Allows an LLM to retrieve all responses from other LLMs in the sessionget-session-status
: Allows an LLM to check if the registration waiting period has completed
This enables a scenario where multiple AI agents (like the "Council of Ephors") can engage in extended deliberation about a user's question, debating with each other until they reach a solid consensus.
Installation
Development
Testing with MCP Inspector
The project includes support for the MCP Inspector, which is a tool for testing and debugging MCP servers.
The inspect
script uses npx
to run the MCP Inspector, which will launch a web interface in your browser for interacting with your MCP server.
This will allow you to:
- Explore available tools and resources
- Test tool calls with different parameters
- View the server's responses
- Debug your MCP server implementation
Usage
The server exposes two endpoints:
/sse
- Server-Sent Events endpoint for MCP clients to connect/messages
- HTTP endpoint for MCP clients to send messages
MCP Tools
register-participant
Register as a participant in a collaboration session:
The server waits for a 3-second registration period after the last participant joins before responding. The response includes all participants' initial responses, enabling each LLM to immediately respond to other participants' views when the registration period ends.
submit-response
Submit a follow-up response during the debate:
get-responses
Retrieve all responses from the debate session:
The response includes all participants' contributions in chronological order.
get-session-status
Check if the registration waiting period has elapsed:
Collaborative Debate Flow
- LLMs register as participants with their initial responses to the prompt
- The server waits 3 seconds after the last registration before sending responses
- When the registration period ends, all participants receive the compendium of initial responses from all participants
- Participants can then submit follow-up responses, responding to each other's points
- The debate continues until the participants reach a consensus or a maximum number of rounds is reached
License
MIT
Deployment to EC2
This project includes Docker configuration for easy deployment to EC2 or any other server environment.
Prerequisites
- An EC2 instance running Amazon Linux 2 or Ubuntu
- Security group configured to allow inbound traffic on port 62887
- SSH access to the instance
Deployment Steps
- Clone the repository to your EC2 instance:Copy
- Make the deployment script executable:Copy
- Run the deployment script:Copy
The script will:
- Install Docker and Docker Compose if they're not already installed
- Build the Docker image
- Start the container in detached mode
- Display the public URL where your MCP server is accessible
Manual Deployment
If you prefer to deploy manually:
- Build the Docker image:Copy
- Start the container:Copy
- Verify the container is running:Copy
Accessing the Server
Once deployed, your MCP server will be accessible at:
http://<ec2-public-ip>:62887/sse
- SSE endpointhttp://<ec2-public-ip>:62887/messages
- Messages endpoint
Make sure port 62887 is open in your EC2 security group!
This server cannot be installed
A Model Context Protocol server that enables collaborative debates between multiple AI agents, allowing them to discuss and reach consensus on user prompts.