2026-07-12 11:28:39 +07:00
|
|
|
//! MCP mode: overlay for connecting to a configured MCP server.
|
2026-07-11 18:23:01 +07:00
|
|
|
use crate::app::state::rest::AppStateRest;
|
|
|
|
|
|
2026-07-12 11:28:39 +07:00
|
|
|
/// Placeholder entry point for connecting to an MCP server by name.
|
|
|
|
|
///
|
|
|
|
|
/// Why: not yet wired to `McpManager::connect_stdio` — currently just
|
|
|
|
|
/// marks state dirty so the overlay re-renders.
|
2026-07-11 18:23:01 +07:00
|
|
|
pub fn connect_mcp(state: &mut AppStateRest, server_name: &str) {
|
|
|
|
|
let _ = server_name;
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|