Skip to main content

SkillServer

Trait SkillServer 

Source
pub trait SkillServer {
    // Required methods
    fn server_name(&self) -> String;
    fn supports_prompts(&self) -> bool;
    fn supports_resources(&self) -> bool;
    fn list_prompts(&self) -> Result<Vec<Prompt>, String>;
    fn get_prompt(
        &self,
        name: &str,
        arguments: Option<Value>,
    ) -> Result<Vec<Value>, String>;
    fn list_resources(&self) -> Result<Vec<Resource>, String>;
    fn read_resource(&self, uri: &str) -> Result<String, String>;
}
Expand description

The MCP surface skill discovery needs — implemented for the MCP client and by test fakes.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§