1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Configuration for the Arsenal tool system (MCP servers).
use serde::{Deserialize, Serialize};
/// Configuration for a single MCP server
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MCPServerConfig {
/// Name/identifier for the server
pub name: String,
/// Type of server: "stdio" or "sse"
pub server_type: String,
/// Command to execute (for STDIO servers)
pub command: Option<String>,
/// Arguments for the command (for STDIO servers)
pub args: Option<Vec<String>>,
/// HTTP endpoint URL (for SSE servers)
pub endpoint: Option<String>,
}
/// Configuration for Arsenal tool system
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ArsenalConfig {
/// Default timeout for tool execution in seconds
pub default_timeout_seconds: u64,
/// Maximum number of concurrent tool executions
pub max_concurrent_tools: usize,
/// List of MCP servers to connect to
pub mcp_servers: Vec<MCPServerConfig>,
}
impl Default for ArsenalConfig {
fn default() -> Self {
Self {
default_timeout_seconds: 30,
max_concurrent_tools: 5,
mcp_servers: Vec::new(),
}
}
}