use thiserror::Error;
#[derive(Debug, Error)]
pub enum ConnectorError {
#[error("http: {0}")]
Http(String),
#[error("mcp error {code}: {message}")]
Rpc { code: i64, message: String },
#[error("protocol: {0}")]
Protocol(String),
#[error("connector not found: {0}")]
NotFound(String),
#[error("io: {0}")]
Io(String),
#[error("secret store: {0}")]
Secret(String),
}