aether-mcp-servers 0.4.8

Built-in MCP tool servers for the Aether AI agent framework
Documentation
1
2
3
4
5
6
7
8
9
10
use std::io::ErrorKind;

use crate::coding::error::FileError;

pub async fn read_text_file(path: &str) -> Result<String, FileError> {
    tokio::fs::read_to_string(path).await.map_err(|error| match error.kind() {
        ErrorKind::NotFound => FileError::NotFound { path: path.to_string() },
        _ => FileError::ReadFailed { path: path.to_string(), reason: error.to_string() },
    })
}