pub struct TillerServer { /* private fields */ }Expand description
The tiller MCP server.
This server exposes tiller sync functionality as MCP tools.
Implementations§
Source§impl TillerServer
impl TillerServer
Sourcepub fn initialize_service_tool_attr() -> Tool
pub fn initialize_service_tool_attr() -> Tool
Generated tool metadata function for initialize_service
Sourcepub fn sync_down_tool_attr() -> Tool
pub fn sync_down_tool_attr() -> Tool
Generated tool metadata function for sync_down
Sourcepub fn sync_up_tool_attr() -> Tool
pub fn sync_up_tool_attr() -> Tool
Generated tool metadata function for sync_up
Sourcepub fn update_transactions_tool_attr() -> Tool
pub fn update_transactions_tool_attr() -> Tool
Generated tool metadata function for update_transactions
Sourcepub fn update_categories_tool_attr() -> Tool
pub fn update_categories_tool_attr() -> Tool
Generated tool metadata function for update_categories
Sourcepub fn update_autocats_tool_attr() -> Tool
pub fn update_autocats_tool_attr() -> Tool
Generated tool metadata function for update_autocats
Sourcepub fn delete_transactions_tool_attr() -> Tool
pub fn delete_transactions_tool_attr() -> Tool
Generated tool metadata function for delete_transactions
Sourcepub fn delete_categories_tool_attr() -> Tool
pub fn delete_categories_tool_attr() -> Tool
Generated tool metadata function for delete_categories
Sourcepub fn delete_autocats_tool_attr() -> Tool
pub fn delete_autocats_tool_attr() -> Tool
Generated tool metadata function for delete_autocats
Sourcepub fn insert_transaction_tool_attr() -> Tool
pub fn insert_transaction_tool_attr() -> Tool
Generated tool metadata function for insert_transaction
Sourcepub fn insert_category_tool_attr() -> Tool
pub fn insert_category_tool_attr() -> Tool
Generated tool metadata function for insert_category
Sourcepub fn insert_autocat_tool_attr() -> Tool
pub fn insert_autocat_tool_attr() -> Tool
Generated tool metadata function for insert_autocat
Sourcepub fn query_tool_attr() -> Tool
pub fn query_tool_attr() -> Tool
Generated tool metadata function for query
Sourcepub fn schema_tool_attr() -> Tool
pub fn schema_tool_attr() -> Tool
Generated tool metadata function for schema
Trait Implementations§
Source§impl Clone for TillerServer
impl Clone for TillerServer
Source§fn clone(&self) -> TillerServer
fn clone(&self) -> TillerServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TillerServer
impl Debug for TillerServer
Source§impl ServerHandler for TillerServer
impl ServerHandler for TillerServer
Source§fn get_info(&self) -> ServerInfo
fn get_info(&self) -> ServerInfo
Returns server information sent to the MCP client during initialization.
The instructions field is intended by the specification to be the primary way to
communicate the server’s purpose and usage to AI agents like Claude Code. This text is shown
to the AI to help it understand when and how to use this server’s tools. However, it has
been noted that agents tend to consider this reading as optional. We have solved this
problem by requiring agents to call an __initialize_service__ tool before anything else.
async fn call_tool( &self, request: CallToolRequestParam, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>
async fn list_tools( &self, _request: Option<PaginatedRequestParam>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>
fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn initialize( &self, request: InitializeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + Send
fn complete( &self, request: CompleteRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + Send
fn set_level( &self, request: SetLevelRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn get_prompt( &self, request: GetPromptRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetPromptResult, ErrorData>> + Send
fn list_prompts( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListPromptsResult, ErrorData>> + Send
fn list_resources( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourcesResult, ErrorData>> + Send
fn list_resource_templates( &self, request: Option<PaginatedRequestParam>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourceTemplatesResult, ErrorData>> + Send
fn read_resource( &self, request: ReadResourceRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ReadResourceResult, ErrorData>> + Send
fn subscribe( &self, request: SubscribeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn unsubscribe( &self, request: UnsubscribeRequestParam, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + Send
fn on_custom_request( &self, request: CustomRequest, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CustomResult, ErrorData>> + Send
fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
fn on_custom_notification( &self, notification: CustomNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + Send
Auto Trait Implementations§
impl Freeze for TillerServer
impl !RefUnwindSafe for TillerServer
impl Send for TillerServer
impl Sync for TillerServer
impl Unpin for TillerServer
impl !UnwindSafe for TillerServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
impl<R, S> DynService<R> for Swhere
R: ServiceRole,
S: Service<R>,
fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>
fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>
fn get_info(&self) -> <R as ServiceRole>::Info
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more