pub enum ToolSetConfig {
ToolsetServer {
server_url: String,
id: Option<String>,
},
ToolsetCommand {
command: String,
id: Option<String>,
crate_name: Option<String>,
git: Option<String>,
path: Option<String>,
},
McpServer {
name: String,
command: Vec<String>,
env: HashMap<String, String>,
id: Option<String>,
},
HttpMcpServer {
name: String,
url: String,
headers: HashMap<String, String>,
id: Option<String>,
},
}Expand description
Configuration for a single toolset server entry.
Variants§
ToolsetServer
RAP toolset server — tools are loaded via .well-known/rap-toolset.
ToolsetCommand
RAP toolset server launched via a CLI command.
The command is spawned with RAP_EMBEDDED=1 and must emit a JSON
object on stdout containing { "port": <u16> } once it is ready.
Fields
McpServer
MCP server proxied behind RAP. The CLI spawns the command as a stdio subprocess and runs an in-process RAP server that translates between the two protocols.
HttpMcpServer
Remote MCP server over HTTP, proxied behind RAP.
Implementations§
Trait Implementations§
Source§impl Clone for ToolSetConfig
impl Clone for ToolSetConfig
Source§fn clone(&self) -> ToolSetConfig
fn clone(&self) -> ToolSetConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolSetConfig
impl Debug for ToolSetConfig
Source§impl<'de> Deserialize<'de> for ToolSetConfig
impl<'de> Deserialize<'de> for ToolSetConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ToolSetConfig
impl RefUnwindSafe for ToolSetConfig
impl Send for ToolSetConfig
impl Sync for ToolSetConfig
impl Unpin for ToolSetConfig
impl UnsafeUnpin for ToolSetConfig
impl UnwindSafe for ToolSetConfig
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