pub struct McpPluginServer { /* private fields */ }Expand description
MCP server providing plugin extraction tools
Implementations§
Source§impl McpPluginServer
impl McpPluginServer
Sourcepub fn new_with_file_storage(templates_dir: PathBuf) -> Self
pub fn new_with_file_storage(templates_dir: PathBuf) -> Self
Create a new plugin MCP server with file-based storage (development)
Sourcepub fn with_adapters(
template_store: Arc<dyn PluginTemplateStore>,
extraction_engine: Arc<dyn PluginExtractionPort>,
idempotency_store: Arc<dyn IdempotencyKeyStore>,
) -> Self
pub fn with_adapters( template_store: Arc<dyn PluginTemplateStore>, extraction_engine: Arc<dyn PluginExtractionPort>, idempotency_store: Arc<dyn IdempotencyKeyStore>, ) -> Self
Create with custom adapters
Sourcepub fn tools_list(&self) -> Vec<Value>
pub fn tools_list(&self) -> Vec<Value>
Get the tool list for MCP protocol
Sourcepub async fn handle_tool_call(&self, name: &str, args: &Value) -> Value
pub async fn handle_tool_call(&self, name: &str, args: &Value) -> Value
Handle a tool call
Auto Trait Implementations§
impl Freeze for McpPluginServer
impl !RefUnwindSafe for McpPluginServer
impl Send for McpPluginServer
impl Sync for McpPluginServer
impl Unpin for McpPluginServer
impl UnsafeUnpin for McpPluginServer
impl !UnwindSafe for McpPluginServer
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
Mutably borrows from an owned value. Read more