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

Method format

src/mcp.rs:312–314  ·  view source on GitHub ↗
(&self, servers: &BTreeMap<&str, &McpServerConfig>)

Source from the content-addressed store, hash-verified

310
311impl McpFormatter for ClaudeCodeFormatter {
312 fn format(&self, servers: &BTreeMap<&str, &McpServerConfig>) -> Value {
313 format_standard_mcp(servers)
314 }
315
316 fn parse_existing(&self, content: &str) -> Result<BTreeMap<String, Value>> {
317 parse_standard_mcp(content, "Failed to parse existing MCP config as JSON")

Calls 3

format_standard_mcpFunction · 0.85
server_to_jsonFunction · 0.85