提交qiming-mcp-proxy

This commit is contained in:
Codex
2026-06-01 13:03:20 +08:00
parent 9e9486b7c2
commit afb3d9f4e6
394 changed files with 124494 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//! Configuration types for SSE proxy
use serde::{Deserialize, Serialize};
/// SSE server configuration
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct SseConfig {
/// Bind address for the HTTP server
#[serde(default = "default_bind_addr")]
pub bind_addr: String,
/// Quiet mode (suppress startup messages)
#[serde(default)]
pub quiet: bool,
}
impl Default for SseConfig {
fn default() -> Self {
Self {
bind_addr: default_bind_addr(),
quiet: false,
}
}
}
fn default_bind_addr() -> String {
"127.0.0.1:3001".to_string()
}