oak-scala 0.0.11

High-performance incremental Scala parser for the oak ecosystem with flexible configuration, supporting functional programming and JVM ecosystem integration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![doc = include_str!("readme.md")]
use crate::lsp::ScalaLanguageService;
use oak_vfs::MemoryVfs;

/// Start an MCP server for Scala semantics (Stdio).
pub async fn serve_scala_mcp(vfs: MemoryVfs) {
    let service = ScalaLanguageService::new(vfs);
    let server = oak_mcp::McpServer::new(service);

    let reader = tokio::io::BufReader::new(tokio::io::stdin());
    let writer = tokio::io::BufWriter::new(tokio::io::stdout());
    server.run(reader, writer).await.unwrap()
}