
scala ai
Scala 3 for AI-Driven Coding & Agentic Systems
Repository Info
About This Server
Scala 3 for AI-Driven Coding & Agentic Systems
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
wvlet/scala-ai: Scala 3 for AI-Driven Coding & Agentic Systems
wvlet/scala-ai empowers Scala 3 for modern AI coding and building AI agent applications. It provides robust core utilities and tools for seamless LLM integration and agent orchestration.
This is achieved through two primary modules:
-
ai-core: Foundational utilities adapted fromwvlet/airframefor Scala 3, providing:- Logging: Performant, structured logging.
- Object Design: Well-managed object lifecycle and configuration (using type introspection and DI concepts from
airframe). - SerDe: Efficient serialization/deserialization of Scala case classes between common data exchange formats, JSON, MessagePack, etc.
- RPC/HTTP Framework: For quickly building RPC/HTTP server and clients without boilerplate.
- Testing Framework: A lightweight testing framework for Scala 3, inspired by
airspec. - We also have a collection of prompts so that LLM can produce quality code.
-
ai-agent: Tools for building AI agents, offering:- Unified LLM APIs: A consistent
LLMAgentinterface for AWS Bedrock, Google Vertex AI, and future LLM services. - Agent Orchestration: Components for advanced agent control flows.
- Dynamic Tool Usage: Enabling agents to use external tools, including MCP (Model Context Protcotol) or other RCP servers built with
ai-core. - Common Agent Patterns: Support for RAG (Retrieval Augmented Generation), vector search, and other common agent patterns.
- Unified LLM APIs: A consistent
Leveraging Scala 3's powerful type system and airframe's battle-tested components, scala-ai enables the development of efficient, type-safe, and reliable applications.
Note: This library is under active development. APIs may change.
Getting Started
Add the dependencies to your build.sbt:
// build.sbt
val scalaAIVersion = "LATEST_VERSION" // TODO: Replace with the actual latest version
libraryDependencies ++= Seq(
// Core utilities for Scala 3 development
"org.wvlet.ai" %% "ai-core" % scalaAIVersion,
// High-level AI-agent interfaces (includes ai-core)
"org.wvlet.ai" %% "ai-agent" % scalaAIVersion,
// Optional: Choose AI service integrations
"org.wvlet.ai" %% "ai-agent-bedrock" % scalaAIVersion,
// "org.wvlet.ai" %% "ai-agent-vertexai" % scalaAIVersion,
)
Quick Start
Clone the repository
git clone https://github.com/wvlet/scala-aiInstall dependencies
cd scala-ai
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.