nvim_mcp/
lib.rs

1mod neovim;
2mod server;
3
4#[cfg(test)]
5pub mod test_utils;
6
7pub use server::{
8    NeovimMcpServer,
9    core::{auto_connect_current_project_targets, auto_connect_single_target},
10};
11
12pub type Result<T> = std::result::Result<T, ServerError>;
13
14#[derive(Debug, thiserror::Error)]
15pub enum ServerError {
16    #[error("MCP protocol error: {0}")]
17    Mcp(#[from] rmcp::ErrorData),
18    #[error("IO error: {0}")]
19    Io(#[from] std::io::Error),
20    #[error("Server error: {0}")]
21    Server(String),
22}