Skip to main content
Glama
service_ext.rs527 B
use tower::Service; use crate::{ error_handling::HandleError, make_service::IntoMakeService, message::Message, }; pub trait ServiceExt<R>: Service<Message<R>> + Sized { fn into_make_service(self) -> IntoMakeService<Self>; fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T> { HandleError::new(self, f) } } impl<S, R> ServiceExt<R> for S where S: Service<Message<R>> + Sized, { fn into_make_service(self) -> IntoMakeService<Self> { IntoMakeService::new(self) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server