Skip to main content

ExcelMcpServer

Struct ExcelMcpServer 

Source
pub struct ExcelMcpServer { /* private fields */ }

Implementations§

Source§

impl ExcelMcpServer

Source

pub fn new(store: Arc<RwLock<WorkbookStore>>) -> Self

Source§

impl ExcelMcpServer

Source

pub fn create_workbook_tool_attr() -> Tool

Generated tool metadata function for create_workbook

Source

pub fn open_workbook_tool_attr() -> Tool

Generated tool metadata function for open_workbook

Source

pub fn save_workbook_tool_attr() -> Tool

Generated tool metadata function for save_workbook

Source

pub fn close_workbook_tool_attr() -> Tool

Generated tool metadata function for close_workbook

Source

pub fn configure_workbook_tool_attr() -> Tool

Generated tool metadata function for configure_workbook

Source

pub fn list_sheets_tool_attr() -> Tool

Generated tool metadata function for list_sheets

Source

pub fn get_sheet_dimensions_tool_attr() -> Tool

Generated tool metadata function for get_sheet_dimensions

Source

pub fn describe_workbook_tool_attr() -> Tool

Generated tool metadata function for describe_workbook

Source

pub fn add_sheet_tool_attr() -> Tool

Generated tool metadata function for add_sheet

Source

pub fn rename_sheet_tool_attr() -> Tool

Generated tool metadata function for rename_sheet

Source

pub fn delete_sheet_tool_attr() -> Tool

Generated tool metadata function for delete_sheet

Source

pub fn move_worksheet_tool_attr() -> Tool

Generated tool metadata function for move_worksheet

Source

pub fn read_sheet_tool_attr() -> Tool

Generated tool metadata function for read_sheet

Source

pub fn read_cell_tool_attr() -> Tool

Generated tool metadata function for read_cell

Source

pub fn search_cells_tool_attr() -> Tool

Generated tool metadata function for search_cells

Source

pub fn sheet_to_csv_tool_attr() -> Tool

Generated tool metadata function for sheet_to_csv

Source

pub fn write_cells_tool_attr() -> Tool

Generated tool metadata function for write_cells

Source

pub fn write_row_tool_attr() -> Tool

Generated tool metadata function for write_row

Source

pub fn write_column_tool_attr() -> Tool

Generated tool metadata function for write_column

Source

pub fn write_rich_text_tool_attr() -> Tool

Generated tool metadata function for write_rich_text

Source

pub fn write_formula_tool_attr() -> Tool

Generated tool metadata function for write_formula

Source

pub fn manage_cell_tool_attr() -> Tool

Generated tool metadata function for manage_cell

Source

pub fn set_cell_format_tool_attr() -> Tool

Generated tool metadata function for set_cell_format

Source

pub fn merge_cells_tool_attr() -> Tool

Generated tool metadata function for merge_cells

Source

pub fn set_row_column_format_tool_attr() -> Tool

Generated tool metadata function for set_row_column_format

Source

pub fn set_dimensions_tool_attr() -> Tool

Generated tool metadata function for set_dimensions

Source

pub fn freeze_panes_tool_attr() -> Tool

Generated tool metadata function for freeze_panes

Source

pub fn autofit_columns_tool_attr() -> Tool

Generated tool metadata function for autofit_columns

Source

pub fn set_selection_tool_attr() -> Tool

Generated tool metadata function for set_selection

Source

pub fn set_visibility_tool_attr() -> Tool

Generated tool metadata function for set_visibility

Source

pub fn set_sheet_settings_tool_attr() -> Tool

Generated tool metadata function for set_sheet_settings

Source

pub fn add_chart_tool_attr() -> Tool

Generated tool metadata function for add_chart

Source

pub fn add_table_tool_attr() -> Tool

Generated tool metadata function for add_table

Source

pub fn add_conditional_format_tool_attr() -> Tool

Generated tool metadata function for add_conditional_format

Source

pub fn add_data_validation_tool_attr() -> Tool

Generated tool metadata function for add_data_validation

Source

pub fn add_sparkline_tool_attr() -> Tool

Generated tool metadata function for add_sparkline

Source

pub fn add_image_tool_attr() -> Tool

Generated tool metadata function for add_image

Source

pub fn add_pivot_table_tool_attr() -> Tool

Generated tool metadata function for add_pivot_table

Source

pub fn set_page_setup_tool_attr() -> Tool

Generated tool metadata function for set_page_setup

Source

pub fn manage_comments_tool_attr() -> Tool

Generated tool metadata function for manage_comments

Generated tool metadata function for add_link

Source

pub fn manage_defined_names_tool_attr() -> Tool

Generated tool metadata function for manage_defined_names

Source

pub fn modify_rows_tool_attr() -> Tool

Generated tool metadata function for modify_rows

Source

pub fn modify_columns_tool_attr() -> Tool

Generated tool metadata function for modify_columns

Source

pub fn group_tool_attr() -> Tool

Generated tool metadata function for group

Source

pub fn protect_tool_attr() -> Tool

Generated tool metadata function for protect

Source

pub fn manage_autofilter_tool_attr() -> Tool

Generated tool metadata function for manage_autofilter

Source

pub fn ignore_error_tool_attr() -> Tool

Generated tool metadata function for ignore_error

Source

pub fn add_waterfall_chart_tool_attr() -> Tool

Generated tool metadata function for add_waterfall_chart

Source

pub fn add_funnel_chart_tool_attr() -> Tool

Generated tool metadata function for add_funnel_chart

Source

pub fn add_treemap_chart_tool_attr() -> Tool

Generated tool metadata function for add_treemap_chart

Source

pub fn add_shape_tool_attr() -> Tool

Generated tool metadata function for add_shape

Source

pub fn set_doc_properties_tool_attr() -> Tool

Generated tool metadata function for set_doc_properties

Source

pub fn add_sunburst_chart_tool_attr() -> Tool

Generated tool metadata function for add_sunburst_chart

Source

pub fn add_histogram_chart_tool_attr() -> Tool

Generated tool metadata function for add_histogram_chart

Source

pub fn add_box_whisker_chart_tool_attr() -> Tool

Generated tool metadata function for add_box_whisker_chart

Source

pub fn add_map_chart_tool_attr() -> Tool

Generated tool metadata function for add_map_chart

Source

pub fn add_slicer_tool_attr() -> Tool

Generated tool metadata function for add_slicer

Source

pub fn add_timeline_tool_attr() -> Tool

Generated tool metadata function for add_timeline

Source

pub fn add_form_control_tool_attr() -> Tool

Generated tool metadata function for add_form_control

Source

pub fn save_workbook_advanced_tool_attr() -> Tool

Generated tool metadata function for save_workbook_advanced

Source

pub fn open_workbook_encrypted_tool_attr() -> Tool

Generated tool metadata function for open_workbook_encrypted

Source

pub fn manage_named_ranges_tool_attr() -> Tool

Generated tool metadata function for manage_named_ranges

Source

pub fn read_sheet_metadata_tool_attr() -> Tool

Generated tool metadata function for read_sheet_metadata

Source

pub fn add_chart_sheet_tool_attr() -> Tool

Generated tool metadata function for add_chart_sheet

Source

pub fn add_threaded_comment_tool_attr() -> Tool

Generated tool metadata function for add_threaded_comment

Source

pub fn protect_sheet_advanced_tool_attr() -> Tool

Generated tool metadata function for protect_sheet_advanced

Source

pub fn set_custom_property_tool_attr() -> Tool

Generated tool metadata function for set_custom_property

Source

pub fn read_cell_comment_tool_attr() -> Tool

Generated tool metadata function for read_cell_comment

Source

pub fn read_cell_format_tool_attr() -> Tool

Generated tool metadata function for read_cell_format

Source

pub fn manage_custom_xml_tool_attr() -> Tool

Generated tool metadata function for manage_custom_xml

Source

pub fn add_connection_tool_attr() -> Tool

Generated tool metadata function for add_connection

Source

pub fn set_sst_threshold_tool_attr() -> Tool

Generated tool metadata function for set_sst_threshold

Source

pub fn write_json_rows_tool_attr() -> Tool

Generated tool metadata function for write_json_rows

Trait Implementations§

Source§

impl Clone for ExcelMcpServer

Source§

fn clone(&self) -> ExcelMcpServer

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExcelMcpServer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ServerHandler for ExcelMcpServer

Source§

fn get_info(&self) -> ServerInfo

Source§

async fn call_tool( &self, request: CallToolRequestParams, context: RequestContext<RoleServer>, ) -> Result<CallToolResult, ErrorData>

Source§

async fn list_tools( &self, _request: Option<PaginatedRequestParams>, _context: RequestContext<RoleServer>, ) -> Result<ListToolsResult, ErrorData>

Source§

fn get_tool(&self, name: &str) -> Option<Tool>

Get a tool definition by name. Read more
Source§

fn enqueue_task( &self, _request: CallToolRequestParams, _context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CreateTaskResult, ErrorData>> + MaybeSendFuture

Source§

fn ping( &self, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn initialize( &self, request: InitializeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<InitializeResult, ErrorData>> + MaybeSendFuture

Source§

fn complete( &self, request: CompleteRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CompleteResult, ErrorData>> + MaybeSendFuture

Source§

fn set_level( &self, request: SetLevelRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn get_prompt( &self, request: GetPromptRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetPromptResult, ErrorData>> + MaybeSendFuture

Source§

fn list_prompts( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListPromptsResult, ErrorData>> + MaybeSendFuture

Source§

fn list_resources( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourcesResult, ErrorData>> + MaybeSendFuture

Source§

fn list_resource_templates( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListResourceTemplatesResult, ErrorData>> + MaybeSendFuture

Source§

fn read_resource( &self, request: ReadResourceRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ReadResourceResult, ErrorData>> + MaybeSendFuture

Source§

fn subscribe( &self, request: SubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn unsubscribe( &self, request: UnsubscribeRequestParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<(), ErrorData>> + MaybeSendFuture

Source§

fn on_custom_request( &self, request: CustomRequest, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CustomResult, ErrorData>> + MaybeSendFuture

Source§

fn on_cancelled( &self, notification: CancelledNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_progress( &self, notification: ProgressNotificationParam, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_initialized( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_roots_list_changed( &self, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn on_custom_notification( &self, notification: CustomNotification, context: NotificationContext<RoleServer>, ) -> impl Future<Output = ()> + MaybeSendFuture

Source§

fn list_tasks( &self, request: Option<PaginatedRequestParams>, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<ListTasksResult, ErrorData>> + MaybeSendFuture

Source§

fn get_task_info( &self, request: GetTaskInfoParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskResult, ErrorData>> + MaybeSendFuture

Source§

fn get_task_result( &self, request: GetTaskResultParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<GetTaskPayloadResult, ErrorData>> + MaybeSendFuture

Source§

fn cancel_task( &self, request: CancelTaskParams, context: RequestContext<RoleServer>, ) -> impl Future<Output = Result<CancelTaskResult, ErrorData>> + MaybeSendFuture

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<R, S> DynService<R> for S
where R: ServiceRole, S: Service<R>,

Source§

fn handle_request( &self, request: <R as ServiceRole>::PeerReq, context: RequestContext<R>, ) -> Pin<Box<dyn Future<Output = Result<<R as ServiceRole>::Resp, ErrorData>> + Send + '_>>

Source§

fn handle_notification( &self, notification: <R as ServiceRole>::PeerNot, context: NotificationContext<R>, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorData>> + Send + '_>>

Source§

fn get_info(&self) -> <R as ServiceRole>::Info

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<H> Service<RoleServer> for H
where H: ServerHandler,

Source§

impl<S> ServiceExt<RoleServer> for S
where S: Service<RoleServer>,

Source§

fn serve_with_ct<T, E, A>( self, transport: T, ct: CancellationToken, ) -> impl Future<Output = Result<RunningService<RoleServer, S>, ServerInitializeError>> + MaybeSendFuture
where T: IntoTransport<RoleServer, E, A>, E: Error + Send + Sync + 'static,

Source§

fn into_dyn(self) -> Box<dyn DynService<R>>

Convert this service to a dynamic boxed service Read more
Source§

fn serve<T, E, A>( self, transport: T, ) -> impl Future<Output = Result<RunningService<R, Self>, <R as ServiceRole>::InitializeError>> + MaybeSendFuture
where T: IntoTransport<R, E, A>, E: Error + Send + Sync + 'static, Self: Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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