oak-yaml 0.0.11

High-performance incremental YAML parser for the oak ecosystem with flexible configuration, optimized for configuration files and data serialization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![doc = include_str!("readme.md")]
use crate::lsp::YamlLanguageService;
use oak_mcp::McpServer;
use oak_vfs::MemoryVfs;

/// Start an MCP server for YAML semantics (Stdio).
#[cfg(feature = "mcp")]
pub async fn serve_yaml_mcp(vfs: MemoryVfs) {
    let service = YamlLanguageService::new(vfs);
    let server = 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()
}