iterminal
v2.1.0MCP Server for iTerminal SSH Connection Manager - Control SSH servers through Claude.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
iter_status
检查 iTerminal API 服务状态
iter_connect
创建 SSH 连接。参数: id(唯一标识), host(主机地址), port(端口,默认22), username(用户名), password(密码)
| Parameter | Type | Description |
|---|---|---|
host * | string | 服务器地址 |
id * | string | 连接唯一标识符 |
password * | string | 密码 |
username * | string | 用户名 |
port | number | SSH端口,默认22 |
iter_disconnect
断开 SSH 连接。参数: id(连接标识)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
iter_test_connection
测试 SSH 连接是否可用(不保持连接)。参数: host, port, username, password
| Parameter | Type | Description |
|---|---|---|
host * | string | 服务器地址 |
password * | string | 密码 |
username * | string | 用户名 |
port | number | SSH端口,默认22 |
iter_list_connections
列出当前所有活跃的 SSH 连接
iter_exec
在远程服务器执行命令。参数: id(连接标识), command(要执行的命令)
| Parameter | Type | Description |
|---|---|---|
command * | string | 要执行的命令 |
id * | string | 连接标识符 |
iter_monitor
获取远程服务器系统监控数据(CPU/内存/磁盘)。参数: id(连接标识)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
iter_list_dir
列出远程目录内容。参数: id(连接标识), path(目录路径,默认/)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path | string | 目录路径 |
iter_mkdir
在远程服务器创建目录。参数: id(连接标识), path(目录路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 要创建的目录路径 |
iter_rm
删除远程文件。参数: id(连接标识), path(文件路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 要删除的文件路径 |
iter_rename
重命名远程文件或目录。参数: id(连接标识), old_path(原路径), new_path(新路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
new_path * | string | 新路径 |
old_path * | string | 原路径 |
iter_read_file
读取远程文件内容。参数: id(连接标识), path(文件路径), max_size(最大字节数,默认1MB)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 文件路径 |
max_size | number | 最大读取字节数,默认1048576(1MB) |
iter_write_file
写入远程文件内容。参数: id(连接标识), path(文件路径), content(文件内容)
| Parameter | Type | Description |
|---|---|---|
content * | string | 文件内容 |
id * | string | 连接标识符 |
path * | string | 文件路径 |
iter_upload_file
上传本地文件到远程服务器。参数: id(连接标识), local_path(本地文件路径), remote_path(远程目标路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
local_path * | string | 本地文件路径 |
remote_path * | string | 远程目标路径 |
iter_download_file
从远程服务器下载文件到本地。参数: id(连接标识), remote_path(远程文件路径), local_path(本地保存路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
local_path * | string | 本地保存路径 |
remote_path * | string | 远程文件路径 |
iter_list_saved_connections
列出数据库中保存的所有 SSH 连接配置(不包含密码)
iter_quick_connect
使用保存的连接配置快速建立 SSH 连接。参数: id(保存的连接ID)
| Parameter | Type | Description |
|---|---|---|
id * | string | 保存的连接ID |
iter_save_connection
新建并保存一个 SSH 连接,可选自动连接。保存后可通过 iter_list_saved_connections 查看。参数: name(名称), host(主机), port(端口,默认22), username(用户名), password(密码), keyFile(私钥路径), autoConnect(是否立即连接,默认false)
| Parameter | Type | Description |
|---|---|---|
host * | string | 主机地址 |
name * | string | 连接名称(如 web-server) |
username * | string | 登录用户名 |
autoConnect | boolean | 是否保存后自动连接,默认 false |
keyFile | string | 私钥文件路径(与 password 二选一) |
password | string | 密码(与 keyFile 二选一) |
port | number | SSH 端口,默认 22 |
iter_network_stats
获取远程服务器网络接口统计信息。参数: id(连接标识)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
iter_list_processes
获取远程服务器进程列表(按内存排序)。参数: id(连接标识)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
iter_kill_process
终止远程服务器上的进程。参数: id(连接标识), pid(进程ID)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
pid * | number | 要终止的进程ID |
iter_compress
压缩远程服务器上的文件或目录。参数: id(连接标识), source_path(源路径), target_path(目标压缩文件路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
source_path * | string | 要压缩的文件或目录路径 |
target_path * | string | 压缩后的目标文件路径(.tar.gz) |
iter_extract
解压远程服务器上的压缩文件。参数: id(连接标识), file_path(压缩文件路径), target_dir(目标目录)
| Parameter | Type | Description |
|---|---|---|
file_path * | string | 压缩文件路径 |
id * | string | 连接标识符 |
target_dir * | string | 解压目标目录 |
iter_search_files
在远程服务器上搜索文件。参数: id(连接标识), path(搜索起始路径), pattern(搜索模式), max_results(最大结果数,默认100)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 搜索起始路径 |
pattern * | string | 搜索模式(支持通配符) |
max_results | number | 最大返回结果数,默认100 |
iter_upload_folder
上传本地文件夹到远程服务器。参数: id(连接标识), local_path(本地文件夹路径), remote_path(远程目标路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
local_path * | string | 本地文件夹路径 |
remote_path * | string | 远程目标路径 |
iter_create_file
在远程服务器创建空文件。参数: id(连接标识), path(文件路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 要创建的文件路径 |
iter_delete_directory
删除远程服务器上的目录。参数: id(连接标识), path(目录路径)
| Parameter | Type | Description |
|---|---|---|
id * | string | 连接标识符 |
path * | string | 要删除的目录路径 |