Overview

The Coral Server is an implementation of the Coral Protocol. It provides core tools that let agents:

  • Register themselves
  • Create and manage threads
  • Send and receive messages
  • Mention and discover other agents

This system is still in early development. While the current version runs in local mode only, remote-mode support is in progress to support distributed agent communication across servers.

Requirements

  • JDK 17+
  • Git
  • Gradle (optional → included in wrapper)
  • IntelliJ IDEA (recommended for development)

Clone the Repository

git clone <https://github.com/Coral-Protocol/coral-server.git>
cd coral-server

Run the Server (Local Mode)

Run Modes

  • -stdio: Runs using standard input/output
  • -sse-server: Runs SSE server with plain configuration
  • -sse-server-ktor: SSE server using Ktor plugin (default)

Development in IntelliJ

You can run the server from IntelliJ:

  1. Open the project via Git clone
  2. Navigate to Main.kt
  3. Click the play ▶️ icon to start

Tools Provided

Example Use Case

You can run the search + math + interface agent example via PyCharm or terminal.

Agents:

  • Search Agent: Finds information
  • Math Agent: Performs calculations
  • Interface Agent: Handles user input/output

Interaction: Ask the system a question like:

“What is six times the area of Norway?”

The system will use Coral to:

  • Search for Norway’s area
  • Delegate calculation to Math Agent
  • Return the final response via Interface Agent

Connecting via Inspector

If using SSE mode, connect to the Coral Server:

<http://localhost>:<port>/sse

This guide covered the basics of running the Coral Server in local mode.