oak-solidity 0.0.11

High-performance incremental Solidity parser for the oak ecosystem with flexible configuration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![doc = include_str!("readme.md")]
use crate::lsp::SolidityLanguageService;
use oak_vfs::MemoryVfs;

/// Starts the Solidity MCP service.
pub async fn serve_solidity_mcp(vfs: MemoryVfs) {
    let service = SolidityLanguageService::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()
}