agentic_ssh 0.1.3

SSH connection pooling and MCP server for AI agents
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

pub type Result<T> = std::result::Result<T, AgenticSshError>;

#[derive(Debug)]
pub enum AgenticSshError {
    Config { message: String },
}

impl std::error::Error for AgenticSshError {}

impl fmt::Display for AgenticSshError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            AgenticSshError::Config { message } => write!(f, "Configuration error: {}", message),
        }
    }
}