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

Function server_to_json

src/mcp.rs:993–995  ·  view source on GitHub ↗

Convert McpServerConfig to JSON Value. Efficiently converts the config using Serde, leveraging BTreeMap for order.

(config: &McpServerConfig)

Source from the content-addressed store, hash-verified

991/// Convert McpServerConfig to JSON Value.
992/// Efficiently converts the config using Serde, leveraging BTreeMap for order.
993fn server_to_json(config: &McpServerConfig) -> Value {
994 serde_json::to_value(config).unwrap_or_else(|_| json!({}))
995}
996
997/// Parse Codex CLI config TOML into a document table
998fn parse_codex_doc(content: &str) -> Result<TomlTable> {

Callers 8

merge_standard_mcpFunction · 0.85
formatMethod · 0.85
mergeMethod · 0.85
test_server_to_json_httpFunction · 0.85

Calls

no outgoing calls