MCPcopy Create free account
hub / github.com/dallay/agentsync / cleanup_removed_servers

Method cleanup_removed_servers

src/mcp.rs:185–191  ·  view source on GitHub ↗

Remove servers that are no longer in the configuration Default implementation just calls merge, but specific formatters can override

(
        &self,
        existing_content: &str,
        new_servers: &BTreeMap<&str, &McpServerConfig>,
    )

Source from the content-addressed store, hash-verified

183 /// Remove servers that are no longer in the configuration
184 /// Default implementation just calls merge, but specific formatters can override
185 fn cleanup_removed_servers(
186 &self,
187 existing_content: &str,
188 new_servers: &BTreeMap<&str, &McpServerConfig>,
189 ) -> Result<String> {
190 self.merge(existing_content, new_servers)
191 }
192
193 /// Whether this formatter wraps mcpServers in another key
194 fn wrapper_key(&self) -> Option<&'static str> {

Callers

nothing calls this directly

Implementers 1

mcp.rssrc/mcp.rs

Calls 1

mergeMethod · 0.80

Tested by

no test coverage detected