Skip to main content

save

Function save 

Source
pub async fn save(
    registry: &Arc<McpRegistry>,
    manager: Option<&Arc<SettingsManager>>,
    name: String,
    server: StoredMcpServer,
) -> Result<SaveResult, String>
Expand description

Persist a server, then apply it to the live registry when that is safe.

Safety here is the B-mode contract: a server that is NOT currently connected is applied immediately (adds and removals take effect live), while an edit to a CONNECTED server is stored and deferred to the next session.