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

Function json_map_from_values

src/mcp.rs:236–238  ·  view source on GitHub ↗

Build a JSON object from existing JSON values.

(values: BTreeMap<String, Value>)

Source from the content-addressed store, hash-verified

234
235/// Build a JSON object from existing JSON values.
236fn json_map_from_values(values: BTreeMap<String, Value>) -> Map<String, Value> {
237 json_map_from_pairs(values)
238}
239
240/// Format servers into standard { "mcpServers": { ... } } structure
241fn format_standard_mcp(servers: &BTreeMap<&str, &McpServerConfig>) -> Value {

Callers 2

mergeMethod · 0.85

Calls 1

json_map_from_pairsFunction · 0.85

Tested by

no test coverage detected