synaptic_config/mcp.rs
1use serde::Deserialize;
2use std::collections::HashMap;
3
4/// Configuration for an MCP server connection.
5#[derive(Debug, Clone, Deserialize)]
6pub struct McpServerConfig {
7 /// Server name identifier.
8 pub name: String,
9 /// Transport type: "stdio", "sse", or "http".
10 pub transport: String,
11 /// Command to launch (for stdio transport).
12 pub command: Option<String>,
13 /// Command arguments (for stdio transport).
14 pub args: Option<Vec<String>>,
15 /// URL endpoint (for sse/http transport).
16 pub url: Option<String>,
17 /// Additional headers (for sse/http transport).
18 pub headers: Option<HashMap<String, String>>,
19}