mcp-vol 0.1.0

Zero-LLM, deterministic MCP tool linter (24 rules), static Rust/TS/Python scanner, multi-server composer, RFC 6902 patcher, and pre-indexed BM25 eval harness for rmcp and AI agents.
Documentation
use thiserror::Error;

/// Errors returned by `mcp-vol` parsing, serialization, and evaluation APIs.
#[derive(Debug, Error)]
pub enum Error {
    /// Failed to parse or serialize JSON payloads.
    #[error("JSON error: {0}")]
    Json(#[from] serde_json::Error),

    /// Input JSON did not match any supported MCP tool list shape.
    #[error("unsupported MCP tool catalog format: {0}")]
    InvalidCatalogFormat(String),

    /// Evaluation suite JSON was invalid or empty.
    #[error("invalid evaluation suite: {0}")]
    InvalidEvalSuite(String),

    /// Filesystem I/O error encountered while scanning source paths.
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),
}

/// Convenience result alias for `mcp-vol`.
pub type Result<T> = std::result::Result<T, Error>;