pub struct ConnectorDraft {
pub id: String,
pub name: String,
pub servers: BTreeMap<String, McpServerConfig>,
pub secrets: BTreeMap<String, String>,
pub labels: BTreeMap<String, String>,
}Expand description
A connector the user added by pasting a link, a command line, or a Claude / Cursor /
VS Code style {"mcpServers": …} config. Turn it into a plugin with Self::manifest_json.
Fields§
§id: StringPlugin id (a slug of the name).
name: String§servers: BTreeMap<String, McpServerConfig>§secrets: BTreeMap<String, String>Keys and values typed alongside (headers, env); store them as secret settings, never in the plugin folder.
labels: BTreeMap<String, String>Labels for secrets keys that came from headers.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectorDraft
impl Clone for ConnectorDraft
Source§impl Debug for ConnectorDraft
impl Debug for ConnectorDraft
impl Eq for ConnectorDraft
Source§impl PartialEq for ConnectorDraft
impl PartialEq for ConnectorDraft
impl StructuralPartialEq for ConnectorDraft
Auto Trait Implementations§
impl Forget for ConnectorDraft
impl Freeze for ConnectorDraft
impl Move for ConnectorDraft
impl RefUnwindSafe for ConnectorDraft
impl Send for ConnectorDraft
impl Sync for ConnectorDraft
impl Unpin for ConnectorDraft
impl UnsafeUnpin for ConnectorDraft
impl UnwindSafe for ConnectorDraft
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.