oak-ini 0.0.11

High-performance incremental INI parser for the oak ecosystem with flexible configuration, optimized for simple configuration file processing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![doc = include_str!("readme.md")]
use crate::lsp::IniLanguageService;
use oak_vfs::MemoryVfs;

/// Starts the INI MCP server.
///
/// This function initializes an `IniLanguageService` with the given VFS,
/// wraps it in an `McpServer`, and runs it using stdin/stdout.
/// Serves the INI language service via MCP.
pub async fn serve_ini_mcp(vfs: MemoryVfs) {
    let service = IniLanguageService::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()
}