Skip to main content

McpServer

Struct McpServer 

Source
pub struct McpServer {
    session: Arc<Session>,
    tool_router: ToolRouter<Self>,
    prompt_router: PromptRouter<Self>,
}
Expand description

MCP server bound to a single Session.

One instance is constructed per MCP client connection by the StreamableHttpService factory wired in main.rs. The tool_router and prompt_router fields are built once at construction time from the #[tool_router] / #[prompt_router] attribute macros applied further down in this module.

Cheap to clone — only Arc and small router structs.

Fields§

§session: Arc<Session>

The session this MCP client is bound to.

§tool_router: ToolRouter<Self>

The router auto-generated from #[tool_router] annotations.

§prompt_router: PromptRouter<Self>

The router auto-generated from #[prompt_router] annotations.

Implementations§

Source§

impl McpServer

Source

pub fn new(session: Arc<Session>) -> Self

Source

pub fn call_command_tool_attr() -> Tool

Generated tool metadata function for call_command

Source

pub fn call_command( &self, params: Parameters<CallCommandArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn new_pack_tool_attr() -> Tool

Generated tool metadata function for new_pack

Source

pub fn new_pack( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn open_packfiles_tool_attr() -> Tool

Generated tool metadata function for open_packfiles

Source

pub fn open_packfiles( &self, params: Parameters<OpenPackfilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_packfile_tool_attr() -> Tool

Generated tool metadata function for save_packfile

Source

pub fn save_packfile( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn close_pack_tool_attr() -> Tool

Generated tool metadata function for close_pack

Source

pub fn close_pack( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_pack_as_tool_attr() -> Tool

Generated tool metadata function for save_pack_as

Source

pub fn save_pack_as( &self, params: Parameters<PackKeyPathArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn clean_and_save_pack_as_tool_attr() -> Tool

Generated tool metadata function for clean_and_save_pack_as

Source

pub fn clean_and_save_pack_as( &self, params: Parameters<PackKeyPathArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn trigger_backup_autosave_tool_attr() -> Tool

Generated tool metadata function for trigger_backup_autosave

Source

pub fn trigger_backup_autosave( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn load_all_ca_pack_files_tool_attr() -> Tool

Generated tool metadata function for load_all_ca_pack_files

Source

pub fn load_all_ca_pack_files( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn set_pack_file_type_tool_attr() -> Tool

Generated tool metadata function for set_pack_file_type

Source

pub fn set_pack_file_type( &self, params: Parameters<SetPackFileTypeArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn change_compression_format_tool_attr() -> Tool

Generated tool metadata function for change_compression_format

Source

pub fn change_compression_format( &self, params: Parameters<ChangeCompressionFormatArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn change_index_includes_timestamp_tool_attr() -> Tool

Generated tool metadata function for change_index_includes_timestamp

Source

pub fn change_index_includes_timestamp( &self, params: Parameters<PackKeyBoolArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_pack_file_path_tool_attr() -> Tool

Generated tool metadata function for get_pack_file_path

Source

pub fn get_pack_file_path( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_pack_file_name_tool_attr() -> Tool

Generated tool metadata function for get_pack_file_name

Source

pub fn get_pack_file_name( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_pack_settings_tool_attr() -> Tool

Generated tool metadata function for get_pack_settings

Source

pub fn get_pack_settings( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn set_pack_settings_tool_attr() -> Tool

Generated tool metadata function for set_pack_settings

Source

pub fn set_pack_settings( &self, params: Parameters<SetPackSettingsArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_dependency_pack_files_list_tool_attr() -> Tool

Generated tool metadata function for get_dependency_pack_files_list

Source

pub fn get_dependency_pack_files_list( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn set_dependency_pack_files_list_tool_attr() -> Tool

Generated tool metadata function for set_dependency_pack_files_list

Source

pub fn set_dependency_pack_files_list( &self, params: Parameters<SetDependencyPackFilesListArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn decode_packed_file_tool_attr() -> Tool

Generated tool metadata function for decode_packed_file

Source

pub fn decode_packed_file( &self, params: Parameters<DecodePackedFileArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn new_packed_file_tool_attr() -> Tool

Generated tool metadata function for new_packed_file

Source

pub fn new_packed_file( &self, params: Parameters<NewPackedFileArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_packed_files_tool_attr() -> Tool

Generated tool metadata function for add_packed_files

Source

pub fn add_packed_files( &self, params: Parameters<AddPackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_packed_files_from_pack_file_tool_attr() -> Tool

Generated tool metadata function for add_packed_files_from_pack_file

Source

pub fn add_packed_files_from_pack_file( &self, params: Parameters<AddPackedFilesFromPackFileArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_packed_files_from_pack_file_to_animpack_tool_attr() -> Tool

Generated tool metadata function for add_packed_files_from_pack_file_to_animpack

Source

pub fn add_packed_files_from_pack_file_to_animpack( &self, params: Parameters<AddPackedFilesFromPackFileToAnimpackArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_packed_files_from_animpack_tool_attr() -> Tool

Generated tool metadata function for add_packed_files_from_animpack

Source

pub fn add_packed_files_from_animpack( &self, params: Parameters<AddPackedFilesFromAnimpackArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn delete_packed_files_tool_attr() -> Tool

Generated tool metadata function for delete_packed_files

Source

pub fn delete_packed_files( &self, params: Parameters<ContainerPathsArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn delete_from_animpack_tool_attr() -> Tool

Generated tool metadata function for delete_from_animpack

Source

pub fn delete_from_animpack( &self, params: Parameters<DeleteFromAnimpackArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn extract_packed_files_tool_attr() -> Tool

Generated tool metadata function for extract_packed_files

Source

pub fn extract_packed_files( &self, params: Parameters<ExtractPackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn rename_packed_files_tool_attr() -> Tool

Generated tool metadata function for rename_packed_files

Source

pub fn rename_packed_files( &self, params: Parameters<RenamePackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn copy_packed_files_tool_attr() -> Tool

Generated tool metadata function for copy_packed_files

Source

pub fn copy_packed_files( &self, params: Parameters<CopyOrCutPackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn cut_packed_files_tool_attr() -> Tool

Generated tool metadata function for cut_packed_files

Source

pub fn cut_packed_files( &self, params: Parameters<CopyOrCutPackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn paste_packed_files_tool_attr() -> Tool

Generated tool metadata function for paste_packed_files

Source

pub fn paste_packed_files( &self, params: Parameters<PastePackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn duplicate_packed_files_tool_attr() -> Tool

Generated tool metadata function for duplicate_packed_files

Source

pub fn duplicate_packed_files( &self, params: Parameters<DuplicatePackedFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_packed_file_from_view_tool_attr() -> Tool

Generated tool metadata function for save_packed_file_from_view

Source

pub fn save_packed_file_from_view( &self, params: Parameters<SavePackedFileFromViewArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_packed_file_from_external_view_tool_attr() -> Tool

Generated tool metadata function for save_packed_file_from_external_view

Source

pub fn save_packed_file_from_external_view( &self, params: Parameters<SavePackedFileFromExternalViewArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_packed_files_to_pack_file_and_clean_tool_attr() -> Tool

Generated tool metadata function for save_packed_files_to_pack_file_and_clean

Source

pub fn save_packed_files_to_pack_file_and_clean( &self, params: Parameters<SavePackedFilesToPackFileAndCleanArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_packed_file_raw_data_tool_attr() -> Tool

Generated tool metadata function for get_packed_file_raw_data

Source

pub fn get_packed_file_raw_data( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn open_packed_file_in_external_program_tool_attr() -> Tool

Generated tool metadata function for open_packed_file_in_external_program

Source

pub fn open_packed_file_in_external_program( &self, params: Parameters<OpenPackedFileInExternalProgramArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn open_containing_folder_tool_attr() -> Tool

Generated tool metadata function for open_containing_folder

Source

pub fn open_containing_folder( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn clean_cache_tool_attr() -> Tool

Generated tool metadata function for clean_cache

Source

pub fn clean_cache( &self, params: Parameters<ContainerPathsArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn folder_exists_tool_attr() -> Tool

Generated tool metadata function for folder_exists

Source

pub fn folder_exists( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn packed_file_exists_tool_attr() -> Tool

Generated tool metadata function for packed_file_exists

Source

pub fn packed_file_exists( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_packed_files_info_tool_attr() -> Tool

Generated tool metadata function for get_packed_files_info

Source

pub fn get_packed_files_info( &self, params: Parameters<PackKeyStringsArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_rfile_info_tool_attr() -> Tool

Generated tool metadata function for get_rfile_info

Source

pub fn get_rfile_info( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_game_selected_tool_attr() -> Tool

Generated tool metadata function for get_game_selected

Source

pub fn get_game_selected( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn set_game_selected_tool_attr() -> Tool

Generated tool metadata function for set_game_selected

Source

pub fn set_game_selected( &self, params: Parameters<SetGameSelectedArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn generate_dependencies_cache_tool_attr() -> Tool

Generated tool metadata function for generate_dependencies_cache

Source

pub fn generate_dependencies_cache( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn rebuild_dependencies_tool_attr() -> Tool

Generated tool metadata function for rebuild_dependencies

Source

pub fn rebuild_dependencies( &self, params: Parameters<BoolArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn is_there_a_dependency_database_tool_attr() -> Tool

Generated tool metadata function for is_there_a_dependency_database

Source

pub fn is_there_a_dependency_database( &self, params: Parameters<BoolArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_table_list_from_dependency_pack_file_tool_attr() -> Tool

Generated tool metadata function for get_table_list_from_dependency_pack_file

Source

pub fn get_table_list_from_dependency_pack_file( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_custom_table_list_tool_attr() -> Tool

Generated tool metadata function for get_custom_table_list

Source

pub fn get_custom_table_list( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_table_version_from_dependency_pack_file_tool_attr() -> Tool

Generated tool metadata function for get_table_version_from_dependency_pack_file

Source

pub fn get_table_version_from_dependency_pack_file( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_table_definition_from_dependency_pack_file_tool_attr() -> Tool

Generated tool metadata function for get_table_definition_from_dependency_pack_file

Source

pub fn get_table_definition_from_dependency_pack_file( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_tables_from_dependencies_tool_attr() -> Tool

Generated tool metadata function for get_tables_from_dependencies

Source

pub fn get_tables_from_dependencies( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn import_dependencies_to_open_pack_file_tool_attr() -> Tool

Generated tool metadata function for import_dependencies_to_open_pack_file

Source

pub fn import_dependencies_to_open_pack_file( &self, params: Parameters<ImportDependenciesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_rfiles_from_all_sources_tool_attr() -> Tool

Generated tool metadata function for get_rfiles_from_all_sources

Source

pub fn get_rfiles_from_all_sources( &self, params: Parameters<GetRFilesFromAllSourcesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_packed_files_names_starting_with_path_from_all_sources_tool_attr() -> Tool

Generated tool metadata function for get_packed_files_names_starting_with_path_from_all_sources

Source

pub fn get_packed_files_names_starting_with_path_from_all_sources( &self, params: Parameters<ContainerPathArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn local_art_set_ids_tool_attr() -> Tool

Generated tool metadata function for local_art_set_ids

Source

pub fn local_art_set_ids( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn dependencies_art_set_ids_tool_attr() -> Tool

Generated tool metadata function for dependencies_art_set_ids

Source

pub fn dependencies_art_set_ids( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn global_search_tool_attr() -> Tool

Generated tool metadata function for global_search

Source

pub fn global_search_replace_matches_tool_attr() -> Tool

Generated tool metadata function for global_search_replace_matches

Source

pub fn global_search_replace_matches( &self, params: Parameters<GlobalSearchReplaceMatchesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn global_search_replace_all_tool_attr() -> Tool

Generated tool metadata function for global_search_replace_all

Source

pub fn global_search_replace_all( &self, params: Parameters<GlobalSearchArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn search_references_tool_attr() -> Tool

Generated tool metadata function for search_references

Source

pub fn search_references( &self, params: Parameters<SearchReferencesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_reference_data_from_definition_tool_attr() -> Tool

Generated tool metadata function for get_reference_data_from_definition

Source

pub fn get_reference_data_from_definition( &self, params: Parameters<GetReferenceDataFromDefinitionArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn go_to_definition_tool_attr() -> Tool

Generated tool metadata function for go_to_definition

Source

pub fn go_to_definition( &self, params: Parameters<GoToDefinitionArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn go_to_loc_tool_attr() -> Tool

Generated tool metadata function for go_to_loc

Source

pub fn go_to_loc( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_source_data_from_loc_key_tool_attr() -> Tool

Generated tool metadata function for get_source_data_from_loc_key

Source

pub fn get_source_data_from_loc_key( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_schema_tool_attr() -> Tool

Generated tool metadata function for save_schema

Source

pub fn save_schema( &self, params: Parameters<SaveSchemaArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_current_schema_from_asskit_tool_attr() -> Tool

Generated tool metadata function for update_current_schema_from_asskit

Source

pub fn update_current_schema_from_asskit( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_schemas_tool_attr() -> Tool

Generated tool metadata function for update_schemas

Source

pub fn update_schemas( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn is_schema_loaded_tool_attr() -> Tool

Generated tool metadata function for is_schema_loaded

Source

pub fn is_schema_loaded( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_schema_tool_attr() -> Tool

Generated tool metadata function for get_schema

Source

pub fn get_schema( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn definitions_by_table_name_tool_attr() -> Tool

Generated tool metadata function for definitions_by_table_name

Source

pub fn definitions_by_table_name( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn definition_by_table_name_and_version_tool_attr() -> Tool

Generated tool metadata function for definition_by_table_name_and_version

Source

pub fn definition_by_table_name_and_version( &self, params: Parameters<StringI32Args>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn delete_definition_tool_attr() -> Tool

Generated tool metadata function for delete_definition

Source

pub fn delete_definition( &self, params: Parameters<StringI32Args>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn referencing_columns_for_definition_tool_attr() -> Tool

Generated tool metadata function for referencing_columns_for_definition

Source

pub fn referencing_columns_for_definition( &self, params: Parameters<ReferencingColumnsForDefinitionArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn fields_processed_tool_attr() -> Tool

Generated tool metadata function for fields_processed

Source

pub fn fields_processed( &self, params: Parameters<DefinitionArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn save_local_schema_patch_tool_attr() -> Tool

Generated tool metadata function for save_local_schema_patch

Source

pub fn save_local_schema_patch( &self, params: Parameters<SchemaPatchArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn remove_local_schema_patches_for_table_tool_attr() -> Tool

Generated tool metadata function for remove_local_schema_patches_for_table

Source

pub fn remove_local_schema_patches_for_table( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn remove_local_schema_patches_for_table_and_field_tool_attr() -> Tool

Generated tool metadata function for remove_local_schema_patches_for_table_and_field

Source

pub fn remove_local_schema_patches_for_table_and_field( &self, params: Parameters<SettingsSetStringArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn import_schema_patch_tool_attr() -> Tool

Generated tool metadata function for import_schema_patch

Source

pub fn import_schema_patch( &self, params: Parameters<SchemaPatchArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn merge_files_tool_attr() -> Tool

Generated tool metadata function for merge_files

Source

pub fn merge_files( &self, params: Parameters<MergeFilesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_table_tool_attr() -> Tool

Generated tool metadata function for update_table

Source

pub fn update_table( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn cascade_edition_tool_attr() -> Tool

Generated tool metadata function for cascade_edition

Source

pub fn cascade_edition( &self, params: Parameters<CascadeEditionArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_tables_by_table_name_tool_attr() -> Tool

Generated tool metadata function for get_tables_by_table_name

Source

pub fn get_tables_by_table_name( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_keys_to_key_deletes_tool_attr() -> Tool

Generated tool metadata function for add_keys_to_key_deletes

Source

pub fn add_keys_to_key_deletes( &self, params: Parameters<AddKeysToKeyDeletesArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn export_tsv_tool_attr() -> Tool

Generated tool metadata function for export_tsv

Source

pub fn export_tsv( &self, params: Parameters<TsvExportArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn import_tsv_tool_attr() -> Tool

Generated tool metadata function for import_tsv

Source

pub fn import_tsv( &self, params: Parameters<TsvImportArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn diagnostics_check_tool_attr() -> Tool

Generated tool metadata function for diagnostics_check

Source

pub fn diagnostics_check( &self, params: Parameters<DiagnosticsCheckArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn diagnostics_update_tool_attr() -> Tool

Generated tool metadata function for diagnostics_update

Source

pub fn diagnostics_update( &self, params: Parameters<DiagnosticsUpdateArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_line_to_pack_ignored_diagnostics_tool_attr() -> Tool

Generated tool metadata function for add_line_to_pack_ignored_diagnostics

Source

pub fn add_line_to_pack_ignored_diagnostics( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_missing_definitions_tool_attr() -> Tool

Generated tool metadata function for get_missing_definitions

Source

pub fn get_missing_definitions( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn notes_for_path_tool_attr() -> Tool

Generated tool metadata function for notes_for_path

Source

pub fn notes_for_path( &self, params: Parameters<PackKeyStringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn add_note_tool_attr() -> Tool

Generated tool metadata function for add_note

Source

pub fn add_note( &self, params: Parameters<AddNoteArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn delete_note_tool_attr() -> Tool

Generated tool metadata function for delete_note

Source

pub fn delete_note( &self, params: Parameters<DeleteNoteArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn optimize_pack_file_tool_attr() -> Tool

Generated tool metadata function for optimize_pack_file

Source

pub fn optimize_pack_file( &self, params: Parameters<OptimizePackFileArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_optimizer_options_tool_attr() -> Tool

Generated tool metadata function for get_optimizer_options

Source

pub fn get_optimizer_options( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn check_updates_tool_attr() -> Tool

Generated tool metadata function for check_updates

Source

pub fn check_updates( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn check_schema_updates_tool_attr() -> Tool

Generated tool metadata function for check_schema_updates

Source

pub fn check_schema_updates( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn check_lua_autogen_updates_tool_attr() -> Tool

Generated tool metadata function for check_lua_autogen_updates

Source

pub fn check_lua_autogen_updates( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn check_empire_and_napoleon_ak_updates_tool_attr() -> Tool

Generated tool metadata function for check_empire_and_napoleon_ak_updates

Source

pub fn check_empire_and_napoleon_ak_updates( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn check_translations_updates_tool_attr() -> Tool

Generated tool metadata function for check_translations_updates

Source

pub fn check_translations_updates( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_lua_autogen_tool_attr() -> Tool

Generated tool metadata function for update_lua_autogen

Source

pub fn update_lua_autogen( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_main_program_tool_attr() -> Tool

Generated tool metadata function for update_main_program

Source

pub fn update_main_program( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_empire_and_napoleon_ak_tool_attr() -> Tool

Generated tool metadata function for update_empire_and_napoleon_ak

Source

pub fn update_empire_and_napoleon_ak( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_translations_tool_attr() -> Tool

Generated tool metadata function for update_translations

Source

pub fn update_translations( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_bool_tool_attr() -> Tool

Generated tool metadata function for settings_get_bool

Source

pub fn settings_get_bool( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_i32_tool_attr() -> Tool

Generated tool metadata function for settings_get_i32

Source

pub fn settings_get_i32( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_f32_tool_attr() -> Tool

Generated tool metadata function for settings_get_f32

Source

pub fn settings_get_f32( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_string_tool_attr() -> Tool

Generated tool metadata function for settings_get_string

Source

pub fn settings_get_string( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_path_buf_tool_attr() -> Tool

Generated tool metadata function for settings_get_path_buf

Source

pub fn settings_get_path_buf( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_vec_string_tool_attr() -> Tool

Generated tool metadata function for settings_get_vec_string

Source

pub fn settings_get_vec_string( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_vec_raw_tool_attr() -> Tool

Generated tool metadata function for settings_get_vec_raw

Source

pub fn settings_get_vec_raw( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_get_all_tool_attr() -> Tool

Generated tool metadata function for settings_get_all

Source

pub fn settings_get_all( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_bool_tool_attr() -> Tool

Generated tool metadata function for settings_set_bool

Source

pub fn settings_set_bool( &self, params: Parameters<SettingsSetBoolArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_i32_tool_attr() -> Tool

Generated tool metadata function for settings_set_i32

Source

pub fn settings_set_i32( &self, params: Parameters<SettingsSetI32Args>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_f32_tool_attr() -> Tool

Generated tool metadata function for settings_set_f32

Source

pub fn settings_set_f32( &self, params: Parameters<SettingsSetF32Args>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_string_tool_attr() -> Tool

Generated tool metadata function for settings_set_string

Source

pub fn settings_set_string( &self, params: Parameters<SettingsSetStringArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_path_buf_tool_attr() -> Tool

Generated tool metadata function for settings_set_path_buf

Source

pub fn settings_set_path_buf( &self, params: Parameters<SettingsSetPathBufArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_vec_string_tool_attr() -> Tool

Generated tool metadata function for settings_set_vec_string

Source

pub fn settings_set_vec_string( &self, params: Parameters<SettingsSetVecStringArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_set_vec_raw_tool_attr() -> Tool

Generated tool metadata function for settings_set_vec_raw

Source

pub fn settings_set_vec_raw( &self, params: Parameters<SettingsSetVecRawArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn backup_settings_tool_attr() -> Tool

Generated tool metadata function for backup_settings

Source

pub fn backup_settings( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn clear_settings_tool_attr() -> Tool

Generated tool metadata function for clear_settings

Source

pub fn clear_settings( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn restore_backup_settings_tool_attr() -> Tool

Generated tool metadata function for restore_backup_settings

Source

pub fn restore_backup_settings( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn config_path_tool_attr() -> Tool

Generated tool metadata function for config_path

Source

pub fn config_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn assembly_kit_path_tool_attr() -> Tool

Generated tool metadata function for assembly_kit_path

Source

pub fn assembly_kit_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn backup_autosave_path_tool_attr() -> Tool

Generated tool metadata function for backup_autosave_path

Source

pub fn backup_autosave_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn old_ak_data_path_tool_attr() -> Tool

Generated tool metadata function for old_ak_data_path

Source

pub fn old_ak_data_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn schemas_path_tool_attr() -> Tool

Generated tool metadata function for schemas_path

Source

pub fn schemas_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn table_profiles_path_tool_attr() -> Tool

Generated tool metadata function for table_profiles_path

Source

pub fn table_profiles_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn translations_local_path_tool_attr() -> Tool

Generated tool metadata function for translations_local_path

Source

pub fn translations_local_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn dependencies_cache_path_tool_attr() -> Tool

Generated tool metadata function for dependencies_cache_path

Source

pub fn dependencies_cache_path( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn settings_clear_path_tool_attr() -> Tool

Generated tool metadata function for settings_clear_path

Source

pub fn settings_clear_path( &self, params: Parameters<PathArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn open_pack_info_tool_attr() -> Tool

Generated tool metadata function for open_pack_info

Source

pub fn open_pack_info( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn initialize_my_mod_folder_tool_attr() -> Tool

Generated tool metadata function for initialize_my_mod_folder

Source

pub fn initialize_my_mod_folder( &self, params: Parameters<InitializeMyModFolderArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn live_export_tool_attr() -> Tool

Generated tool metadata function for live_export

Source

pub fn live_export( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn patch_siege_ai_tool_attr() -> Tool

Generated tool metadata function for patch_siege_ai

Source

pub fn patch_siege_ai( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn pack_map_tool_attr() -> Tool

Generated tool metadata function for pack_map

Source

pub fn pack_map( &self, params: Parameters<PackMapArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn generate_missing_loc_data_tool_attr() -> Tool

Generated tool metadata function for generate_missing_loc_data

Source

pub fn generate_missing_loc_data( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_pack_translation_tool_attr() -> Tool

Generated tool metadata function for get_pack_translation

Source

pub fn get_pack_translation( &self, params: Parameters<GetPackTranslationArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn build_starpos_get_campaign_ids_tool_attr() -> Tool

Generated tool metadata function for build_starpos_get_campaign_ids

Source

pub fn build_starpos_get_campaign_ids( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn build_starpos_check_victory_conditions_tool_attr() -> Tool

Generated tool metadata function for build_starpos_check_victory_conditions

Source

pub fn build_starpos_check_victory_conditions( &self, params: Parameters<PackKeyArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn build_starpos_tool_attr() -> Tool

Generated tool metadata function for build_starpos

Source

pub fn build_starpos( &self, params: Parameters<BuildStarposArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn build_starpos_post_tool_attr() -> Tool

Generated tool metadata function for build_starpos_post

Source

pub fn build_starpos_post( &self, params: Parameters<BuildStarposArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn build_starpos_cleanup_tool_attr() -> Tool

Generated tool metadata function for build_starpos_cleanup

Source

pub fn build_starpos_cleanup( &self, params: Parameters<BuildStarposArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn update_anim_ids_tool_attr() -> Tool

Generated tool metadata function for update_anim_ids

Source

pub fn update_anim_ids( &self, params: Parameters<UpdateAnimIdsArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn get_anim_paths_by_skeleton_name_tool_attr() -> Tool

Generated tool metadata function for get_anim_paths_by_skeleton_name

Source

pub fn get_anim_paths_by_skeleton_name( &self, params: Parameters<StringArg>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn export_rigid_to_gltf_tool_attr() -> Tool

Generated tool metadata function for export_rigid_to_gltf

Source

pub fn export_rigid_to_gltf( &self, params: Parameters<ExportRigidToGltfArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn set_video_format_tool_attr() -> Tool

Generated tool metadata function for set_video_format

Source

pub fn set_video_format( &self, params: Parameters<SetVideoFormatArgs>, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn list_open_packs_tool_attr() -> Tool

Generated tool metadata function for list_open_packs

Source

pub fn list_open_packs( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

pub fn close_all_packs_tool_attr() -> Tool

Generated tool metadata function for close_all_packs

Source

pub fn close_all_packs( &self, ) -> Pin<Box<dyn Future<Output = Result<CallToolResult, McpError>> + Send + '_>>

Source

fn tool_router() -> ToolRouter<Self>

Source§

impl McpServer

Source

pub fn open_and_inspect_pack_prompt_attr() -> Prompt

Source

pub fn open_and_inspect_pack( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn edit_db_table_prompt_attr() -> Prompt

Source

pub fn edit_db_table( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn create_new_mod_prompt_attr() -> Prompt

Source

pub fn create_new_mod( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn search_and_replace_prompt_attr() -> Prompt

Source

pub fn search_and_replace( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn manage_dependencies_prompt_attr() -> Prompt

Source

pub fn manage_dependencies( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn run_diagnostics_prompt_attr() -> Prompt

Source

pub fn run_diagnostics( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn schema_operations_prompt_attr() -> Prompt

Source

pub fn schema_operations( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn file_operations_prompt_attr() -> Prompt

Source

pub fn file_operations( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn troubleshooting_prompt_attr() -> Prompt

Source

pub fn troubleshooting( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn tsv_workflow_prompt_attr() -> Prompt

Source

pub fn tsv_workflow( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

pub fn translation_workflow_prompt_attr() -> Prompt

Source

pub fn translation_workflow( &self, ) -> Pin<Box<dyn Future<Output = Vec<PromptMessage>> + Send + '_>>

Source

fn prompt_router() -> PromptRouter<McpServer>

Trait Implementations§

Source§

impl Clone for McpServer

Source§

fn clone(&self) -> McpServer

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 ServerHandler for McpServer

Source§

fn get_info(&self) -> ServerInfo

Source§

async fn list_resources( &self, _request: Option<PaginatedRequestParam>, _context: RequestContext<RoleServer>, ) -> Result<ListResourcesResult, McpError>

Source§

async fn list_resource_templates( &self, _request: Option<PaginatedRequestParam>, _context: RequestContext<RoleServer>, ) -> Result<ListResourceTemplatesResult, McpError>

Source§

async fn read_resource( &self, request: ReadResourceRequestParam, _context: RequestContext<RoleServer>, ) -> Result<ReadResourceResult, McpError>

Source§

async fn complete( &self, request: CompleteRequestParam, _context: RequestContext<RoleServer>, ) -> Result<CompleteResult, McpError>

Source§

async fn set_level( &self, _request: SetLevelRequestParam, _context: RequestContext<RoleServer>, ) -> Result<(), McpError>

Source§

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

Source§

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

Source§

async fn get_prompt( &self, request: GetPromptRequestParam, context: RequestContext<RoleServer>, ) -> Result<GetPromptResult, ErrorData>

Source§

async fn list_prompts( &self, _request: Option<PaginatedRequestParam>, _context: RequestContext<RoleServer>, ) -> Result<ListPromptsResult, 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 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§

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,

§

impl<R, S> DynService<R> for S
where 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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

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

§

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
§

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> Same for T

Source§

type Output = T

Should always be Self
§

impl<H> Service<RoleServer> for H
where H: ServerHandler,

§

async fn handle_request( &self, request: <RoleServer as ServiceRole>::PeerReq, context: RequestContext<RoleServer>, ) -> Result<<RoleServer as ServiceRole>::Resp, ErrorData>

§

async fn handle_notification( &self, notification: <RoleServer as ServiceRole>::PeerNot, context: NotificationContext<RoleServer>, ) -> Result<(), ErrorData>

§

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

§

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

§

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

§

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

Convert this service to a dynamic boxed service Read more
§

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

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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