terminal-mcp 0.1.6

Model Context Protocol (MCP) server for long-lived shell execution.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// src/config.rs
//! 集中管理各工具的默认参数常量。

/// `exec` 单次执行的默认超时(毫秒)
pub const EXEC_TIMEOUT_MS: u64 = 3000;

/// `shell_output` 判定“已安静”的默认 idle 时间(毫秒)
pub const OUTPUT_IDLE_MS: u64 = 200;

/// `shell_wait_for` 的默认超时(毫秒)
pub const WAIT_FOR_TIMEOUT_MS: u64 = 5000;

/// `shell_snapshot`前默认等待时间
pub const SNAPSHOT_WAIT_MS: u64 = 1000;