ProjectManagerHandler

Struct ProjectManagerHandler 

Source
pub struct ProjectManagerHandler { /* private fields */ }
Expand description

Main MCP server handler for Project Manager

Implementations§

Source§

impl ProjectManagerHandler

Source

pub fn new() -> Result<Self>

Create a new ProjectManagerHandler instance

Trait Implementations§

Source§

impl ServerHandler for ProjectManagerHandler

Source§

fn handle_list_tools_request<'life0, 'life1, 'async_trait>( &'life0 self, _request: ListToolsRequest, _runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<ListToolsResult, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handles requests to list available tools. Read more
Source§

fn handle_call_tool_request<'life0, 'life1, 'async_trait>( &'life0 self, request: CallToolRequest, _runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, CallToolError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handles requests to call a specific tool. Read more
Source§

fn handle_list_prompts_request<'life0, 'life1, 'async_trait>( &'life0 self, _request: ListPromptsRequest, _runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<ListPromptsResult, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handles requests to list available prompts. Read more
Source§

fn handle_get_prompt_request<'life0, 'life1, 'async_trait>( &'life0 self, request: GetPromptRequest, _runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<GetPromptResult, RpcError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Handles requests to get a specific prompt. Read more
Source§

fn on_initialized<'life0, 'life1, 'async_trait>( &'life0 self, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Invoked when the server finishes initialization and receives an initialized_notification from the client. Read more
Source§

fn handle_initialize_request<'life0, 'life1, 'async_trait>( &'life0 self, initialize_request: InitializeRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<InitializeResult, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles the InitializeRequest from a client. Read more
Source§

fn handle_ping_request<'life0, 'life1, 'async_trait>( &'life0 self, __arg1: PingRequest, _: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<Result, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles ping requests from clients. Read more
Source§

fn handle_list_resources_request<'life0, 'life1, 'async_trait>( &'life0 self, request: ListResourcesRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<ListResourcesResult, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles requests to list available resources. Read more
Source§

fn handle_list_resource_templates_request<'life0, 'life1, 'async_trait>( &'life0 self, request: ListResourceTemplatesRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<ListResourceTemplatesResult, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles requests to list resource templates. Read more
Source§

fn handle_read_resource_request<'life0, 'life1, 'async_trait>( &'life0 self, request: ReadResourceRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<ReadResourceResult, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles requests to read a specific resource. Read more
Source§

fn handle_subscribe_request<'life0, 'life1, 'async_trait>( &'life0 self, request: SubscribeRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<Result, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles subscription requests from clients. Read more
Source§

fn handle_unsubscribe_request<'life0, 'life1, 'async_trait>( &'life0 self, request: UnsubscribeRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<Result, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles unsubscribe requests from clients. Read more
Source§

fn handle_set_level_request<'life0, 'life1, 'async_trait>( &'life0 self, request: SetLevelRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<Result, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles requests to enable or adjust logging level. Read more
Source§

fn handle_complete_request<'life0, 'life1, 'async_trait>( &'life0 self, request: CompleteRequest, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<CompleteResult, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles completion requests from clients. Read more
Source§

fn handle_custom_request<'life0, 'life1, 'async_trait>( &'life0 self, request: Value, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles custom requests not defined in the standard protocol. Read more
Source§

fn handle_initialized_notification<'life0, 'life1, 'async_trait>( &'life0 self, notification: InitializedNotification, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles initialized notifications from clients. Customize this function in your specific handler to implement behavior tailored to your MCP server’s capabilities and requirements.
Source§

fn handle_cancelled_notification<'life0, 'life1, 'async_trait>( &'life0 self, notification: CancelledNotification, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles cancelled operation notifications. Customize this function in your specific handler to implement behavior tailored to your MCP server’s capabilities and requirements.
Source§

fn handle_progress_notification<'life0, 'life1, 'async_trait>( &'life0 self, notification: ProgressNotification, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles progress update notifications. Customize this function in your specific handler to implement behavior tailored to your MCP server’s capabilities and requirements.
Source§

fn handle_roots_list_changed_notification<'life0, 'life1, 'async_trait>( &'life0 self, notification: RootsListChangedNotification, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles notifications received from the client indicating that the list of roots has changed Customize this function in your specific handler to implement behavior tailored to your MCP server’s capabilities and requirements.
Source§

fn handle_custom_notification<'life0, 'async_trait>( &'life0 self, notification: Value, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Handles custom notifications not defined in the standard protocol. Customize this function in your specific handler to implement behavior tailored to your MCP server’s capabilities and requirements.
Source§

fn handle_error<'life0, 'life1, 'async_trait>( &'life0 self, error: RpcError, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = Result<(), RpcError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Handles server errors that occur during operation. Read more
Source§

fn on_server_started<'life0, 'life1, 'async_trait>( &'life0 self, runtime: &'life1 dyn McpServer, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Called when the server has successfully started. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,