Examples
Complete working examples demonstrating Constellations features.
Calculator
A simple calculator with addition, multiplication, and division:
trait Calculator[F[_]]:
def add(a: Int, b: Int): F[Int]
def multiply(a: Int, b: Int): F[Int]
def divide(a: Double, b: Double): F[Double]
Weather Bot
An AI assistant that can check the weather:
- Uses OpenRouter for AI responses
- Makes real weather API calls
- Maintains conversation context
MCP Server
A complete MCP server with multiple tools:
- Calculator tools
- Greeting functions
- Can be used with Claude Desktop
Run it:
sbt "examples/runMain io.github.serhiip.constellations.examples.mcp.McpServerExample"
More Examples
Check the examples directory for more complete projects.