GeminiDesk MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GeminiDesk MCP check what's using port 3000 and show me the process details"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GeminiDesk MCP
专为 Gemini(网页端 / 桌面端)与通用 AI Agent 打造的跨平台本地系统管理 MCP 服务端与可视化控制台
核心亮点 · 架构概览 · 完整使用步骤 · 客户端接入 · Web 控制台 · 工具清单 · 配置与开发 · 常见问题
核心亮点
专为 Gemini 与现代 AI Agent 设计:原生兼容 stdio、Streamable HTTP (
/mcp) 与 Legacy SSE (/sse+/messages) 三种 MCP 传输协议,内置 Cloudflare HTTPS 公网隧道一键启动与双协议自检,让网页端 Gemini 安全、低延迟地直接操作本机项目与服务。54 个开箱即用的本地系统工具:涵盖 AI 代码大纲与精确行号编辑(21)、终端命令与环境探测(2)、系统服务/进程/端口控制(9)、Git 仓库操作(6)、MySQL 多档案查询与备份(6)、常用软件探测与自定义预设(4)、日志文件与安全审计(6)。
macOS / Windows 10+ / Linux 全平台原生适配:自动切换各平台底层实现(
launchctl/Get-Service/systemctl、lsof/netstat、zip/ PowerShellCompress-Archive、brew/winget),一套代码三端无缝运行。现代化 7 大工作区 Web 控制台:基于 React 19 + Vite 8 + Tailwind CSS 4 + xterm.js 6 构建,提供四字精简侧边栏、交互式面包屑导航、可搜索自定义下拉框、完整不截断的操作审计详情弹窗、可视化软件配置页、多标签流式终端、
Cmd+K全局命令面板与三态深浅主题。开源友好与隐私防泄漏:仓库内不含任何硬编码个人路径、账号密码或密钥;用户的 MySQL 档案、鉴权 Token 与目录白名单均在 Web 控制台可视化配置并保存在本地
mcp-config.json(默认已.gitignore),修改后约 1 秒跨进程热重载。
Related MCP server: AKIMCP
系统架构
flowchart LR
subgraph Clients["AI 客户端与浏览器"]
GWeb["网页端 Gemini / 云端 MCP"]
GDesk["Gemini Desktop / Claude / Cursor"]
Browser["本地浏览器 Web 控制台"]
end
subgraph Edge["接入与传输层"]
Tunnel["Cloudflare Tunnel (HTTPS / HTTP2)"]
HTTP["Streamable HTTP (/mcp) & Legacy SSE (/sse)"]
Stdio["Stdio Transport"]
RestAPI["Web Console REST & SSE API (/api/*)"]
end
subgraph Core["GeminiDesk MCP 核心服务 (Node.js + TypeScript)"]
Security["安全策略与鉴权 (Bearer / realpath / 黑白名单)"]
Registry["统一 ToolRegistry (54 个 MCP 工具)"]
Audit["分类审计与实时运行日志 (JSONL + SSE)"]
Config["ConfigStore 热更新与跨进程同步"]
end
subgraph System["本机系统层 (macOS / Windows / Linux)"]
FS["文件系统 & ripgrep 代码检索"]
Term["流式 Shell 终端 (zsh / bash / cmd / pwsh)"]
Svc["系统服务 / 进程 / 端口 / Docker"]
Dev["Git / MySQL / 常用软件预设"]
end
GWeb --> Tunnel --> HTTP
GDesk --> Stdio
Browser --> RestAPI
HTTP --> Security
Stdio --> Security
RestAPI --> Security
Security --> Registry
Registry --> Audit
Config -.-> Security
Registry --> FS
Registry --> Term
Registry --> Svc
Registry --> Dev跨平台能力对比
能力模块 | macOS | Windows 10 / 11 | Linux |
文件与代码行号编辑 | 完整支持(支持 | 完整支持(兼容盘符与 | 完整支持(支持 |
终端执行与流式中止 |
|
|
|
系统守护服务查询 |
| PowerShell |
|
进程与监听端口 |
|
|
|
文件打包与解压 |
| PowerShell |
|
公网隧道一键安装 |
|
| 手动安装 |
开机后台自启守护 | 内置 | 推荐使用任务计划程序 (Task Scheduler) / PM2 | 推荐使用 |
完整使用步骤
第 1 步:准备环境与构建项目
确保本机已安装 Node.js >= 20.0.0(推荐 LTS 或更高版本)。
git clone https://github.com/LZ7TOP/geminidesk-mcp.git
cd geminidesk-mcp
npm install
npm run build可选推荐安装:
ripgrep(加速全文代码检索)、git、mysql/mysqldump、cloudflared(云端 HTTPS 公网隧道)。
第 2 步:启动服务端与 Web 控制台
# 推荐:同时启动 Streamable HTTP + Legacy SSE + Web 控制台
npm run start:ui启动成功后打开浏览器访问:
Web 控制台:
http://127.0.0.1:3000/Streamable HTTP 端点:
http://127.0.0.1:3000/mcpLegacy SSE 端点:
http://127.0.0.1:3000/sse(消息端点/messages)服务健康检查:
GET http://127.0.0.1:3000/health
第 3 步:在控制台完成个性化配置(零手写 JSON)
打开 http://127.0.0.1:3000/ 后,点击左侧栏 「软件配置」:
MySQL 数据库:点击「新增连接档案」,填写本地或远程数据库的 Host、Port、用户名、密码与默认库,支持多套环境切换与密码脱敏保护。
Git 与本机工具:设置默认仓库目录,点击「立即探测本机工具」自动确认 Git / Node / Python / Docker / ripgrep / cloudflared 状态。
软件快捷预设:按需增删 Redis、Docker、Nginx、构建脚本等一键命令预设,控制台与 AI 均可直接调用。
终端 / 文件 / 审计:调整默认工作目录、命令超时、文件系统读写/删除权限开关与审计日志保留天数。
所有保存的配置会自动写入本机
mcp-config.json(已被.gitignore忽略),并在约 1 秒内热重载同步至所有运行中的进程。
第 4 步:接入你的 AI 客户端
根据使用场景选择下方的 网页端 Gemini 或 桌面端客户端 接入方式即可开始协作。
第 5 步:配置后台常驻(可选)
macOS:内置
launchd开机自启守护管理(也可在 Web 控制台「接入设置」中一键操作):npm run daemon:install # 安装并立即启动后台守护 npm run daemon:status # 查看运行状态与 PID npm run daemon:rebuild # 重新构建代码并重启守护 npm run daemon:logs # 查看 stdout / stderr 日志 npm run daemon:uninstall # 停止并卸载守护Windows / Linux:可使用
pm2 start dist/index.js --name geminidesk-mcp -- --transport http --mode full或系统任务计划程序 /systemd托管。
客户端接入指南
1. 网页端 Gemini / 云端 MCP 客户端(一键公网 HTTPS 隧道)
在 Web 控制台右上角点击 「一键启动」。
系统将自动串联执行 4 个步骤并实时回显结果:
自动生成并保存高强度安全鉴权 Token(若尚未设置);
校验本地 HTTP / 守护服务在线状态;
启动 Cloudflare Tunnel(HTTP/2 over IPv4 TCP,兼容代理与 VPN 环境,未安装
cloudflared时可自动安装);运行 Streamable HTTP (
/mcp) 与 Legacy SSE (/sse) 双协议连通性自检。
复制生成的公网
https://<domain>/mcp地址与鉴权信息(支持Authorization: Bearer <token>、X-API-Key或?token=查询参数),填入网页端 Gemini 的自定义 MCP 连接配置即可。使用完毕后点击右上角 「一键关闭」,即时停用公网隧道、中止运行中的终端并断开外部会话。
2. Gemini Desktop / 本地命令型客户端(stdio)
在客户端的「本地 MCP -> 命令」中填入单行启动命令(使用 nvm / fnm 时请填写 which node 或 where node 的绝对路径):
/path/to/node /path/to/geminidesk-mcp/dist/index.js --transport stdio --mode full提示:在 Web 控制台 「接入设置」 中可直接一键复制当前机器真实绝对路径的配置。
3. Claude Desktop / Cursor / Antigravity(JSON 配置)
完全模式(full,适合本机个人开发):
{
"mcpServers": {
"geminidesk-mcp": {
"command": "/path/to/node",
"args": ["/path/to/geminidesk-mcp/dist/index.js", "--transport", "stdio", "--mode", "full"]
}
}
}受限白名单模式(restricted,仅允许访问指定目录并开启危险命令拦截):
{
"mcpServers": {
"geminidesk-mcp": {
"command": "/path/to/node",
"args": [
"/path/to/geminidesk-mcp/dist/index.js",
"--transport",
"stdio",
"--mode",
"restricted",
"--allow-root",
"/path/to/workspace"
]
}
}
}4. 本地 / 局域网 Streamable HTTP 连接
MCP_HTTP_AUTH_TOKEN=your-secret-token node dist/index.js --transport http --port 3000{
"mcpServers": {
"geminidesk-mcp": {
"url": "http://127.0.0.1:3000/mcp",
"headers": {
"Authorization": "Bearer your-secret-token"
}
}
}
}Web 控制台 7 大工作区
工作区 | 核心功能 |
系统总览 | 主机 CPU / 内存 / 磁盘指标、守护与公网隧道状态、一键启动/关闭步骤回显、模块热开关、项目概览与可点击查看详情的近期审计 |
文件管理 | 跨平台目录树与面包屑导航、文件名/代码全文行号检索、在线代码编辑器与符号大纲、文件上传(单文件 18 MB)与下载、多选流式 Zip 打包、压缩/解压与磁盘占用分析 |
流式终端 | 基于 |
运维服务 | 系统守护服务与监听端口面板、Git 仓库状态/Diff/提交/同步、MySQL 多档案 SQL 查询与结果导出、自定义软件预设一键执行 |
日志审计 | 实时运行日志 SSE 流(级别筛选、暂停与清空)、操作审计统计表格与完整不截断审计详情弹窗(支持上下翻页与一键复制 JSON)、本地系统/项目 |
软件配置 | 可视化管理 MySQL 多连接档案、Git 路径与本机工具探测、软件快捷预设增删改、终端/文件/审计运行参数及配置文件热更新说明 |
接入设置 | 守护服务与 Cloudflare 隧道管理、双协议连通性自检、 |
全局体验细节:支持 Cmd+K / Ctrl+K 全局命令面板、浅色 / 深色 / 跟随系统三态外观切换、可点击头部面包屑、全站自定义细滚动条与统一风格的可搜索下拉选择器。
全部 54 个 MCP 工具一览
文件系统与 AI 代码导航(21 个)
工具 | 说明 |
| 生成项目目录树(默认自动跳过 |
| 提取代码类、函数、接口、类型、Markdown 标题及精确 |
| 按精确 1-based 行号区间读取代码片段(附带总行数与行号) |
| 单次并发读取最多 30 个文件或指定行区间 |
| 读取文件内容(支持起止行、 |
| 读取文件末尾 N 行(适合查看大日志文件) |
| 按精确 1-based 起止行号替换或删除代码行 |
| 单次原子调用对同一文件应用多处字符串替换(最多 50 处) |
| 创建新文件,或覆盖/追加写入已有文件 |
| 对已有文本文件执行精确字符串替换(支持单次或全部替换) |
| 列出目录内容、文件大小、修改时间与八进制/符号权限 |
| 获取文件/目录元数据、权限、 |
| 递归创建文件夹,可选指定权限模式 |
| 复制文件或递归复制整个目录 |
| 移动或重命名文件及文件夹 |
| 删除文件或递归删除文件夹(内置根目录防误删保护) |
| 修改八进制系统权限(如 |
| 修改文件所有者 |
| 高速并发按名称关键字、通配符或扩展名搜索文件与目录 |
| 高速代码与文本内容搜索(优先 |
| 查看所在分区磁盘容量与目标目录占用统计 |
终端与系统环境(2 个)
工具 | 说明 |
| 执行 Shell 命令(支持 |
| 获取操作系统、CPU/内存、当前用户、默认 Shell、工作目录与当前策略摘要 |
服务与进程控制(9 个)
工具 | 说明 |
| 查看本机系统守护服务(macOS |
| 查看指定 macOS |
| 查看运行中的全部进程,支持关键字过滤及按 CPU / 内存 / PID 排序 |
| 查看当前开放监听的网络端口与占用进程( |
| 查看本机 Homebrew Services 与 Docker 容器运行状态 |
| 一键聚合系统守护服务、监听端口、高占用进程与开发服务概览 |
| 向指定 PID 发送信号或中止进程(禁止 |
| 启动、停止或重启 Homebrew Services 或 Docker 容器(需开启 |
| 控制 macOS |
日志管理与策略审计(6 个)
工具 | 说明 |
| 扫描指定目录或系统默认日志目录中的 |
| 批量删除、截断清空( |
| 查看操作审计分类统计与完整记录(支持来源、分类、状态与关键字过滤) |
| 按保留天数、分类、状态或保留最新 N 条清理审计日志 |
| 查看当前权限模式、允许/禁止路径列表及各模块开关 |
| 动态热更新运行时权限与安全策略,可选持久化保存到 |
Git 快捷操作(6 个)
工具 | 说明 |
| 查看当前分支、远端同步状态与暂存/未暂存/未跟踪文件列表 |
| 查看近期提交历史(哈希、作者、时间、提交信息) |
| 查看工作区或暂存区( |
| 列出、创建、切换或删除 Git 分支 |
| 暂存指定文件或全部改动并提交 Commit |
| 执行远端同步操作( |
MySQL 快捷操作(6 个)
工具 | 说明 |
| 列出已配置的 MySQL 连接档案(自动脱敏密码) |
| 查询 MySQL 实例中的全部数据库名称 |
| 查询指定数据库的表名、存储引擎、行数估算与占用空间 |
| 查看数据表字段结构( |
| 执行 SQL 查询或变更语句并返回结构化 JSON 结果与执行耗时 |
| 使用 |
常用软件探测与快捷预设(4 个)
工具 | 说明 |
| 探测本机已安装的常用开发工具(Git/MySQL/Redis/Docker/Node/Python/ripgrep/cloudflared 等)与桌面应用 |
| 查看全部或指定分类的软件快捷操作预设 |
| 按预设 ID 或名称一键运行快捷操作命令 |
| 新增、修改或删除自定义软件快捷操作预设,可选同步保存至 |
配置、CLI 参数与环境变量
配置加载遵循四层优先级:CLI 参数 > 环境变量 > 配置文件 (mcp-config.json) > 默认值。
配置文件查找顺序:--config → MCP_CONFIG_PATH → ./mcp-config.json → ~/.local-system-mcp/mcp-config.json。完整中性配置模板见 mcp-config.example.json。
常用 CLI 参数
参数 | 说明 |
| 传输协议(默认 |
| 权限模式(默认 |
| 添加允许访问的根目录白名单(可多次传入) |
| HTTP 监听端口(默认 |
| 显式指定配置文件路径 |
| 显式开启或关闭系统服务/进程控制权限 |
| 管理 macOS |
常用环境变量
分类 | 环境变量 |
基础与安全 |
|
HTTP 与鉴权 |
|
隧道与控制台 |
|
模块开关 |
|
MySQL 与审计 |
|
开发与提交规范
项目内置完整的工程化工具链(Prettier + Husky + lint-staged + Commitlint + TypeScript 双端校验):
npm run dev:ui:watch # 后端热重启(监听 src/)
npm run dev:web # 前端 Vite 热更新(http://127.0.0.1:5173,自动代理至 3000)
npm run typecheck # 同时校验后端与 web/ 的 TypeScript 类型
npm run format # 全项目 Prettier 代码格式化
npm run build # 构建后端 dist/ 与前端 dist/public/每次执行 git commit 时将自动触发:
pre-commit:通过lint-staged对暂存文件自动执行prettier --write并重新暂存,随后运行npm run typecheck。commit-msg:通过commitlint校验 Conventional Commits 格式(如feat(web): ...、fix(tunnel): ...、docs: ...)。
目录结构
├── src/
│ ├── config.ts # 配置加载、跨平台可执行文件探测、ConfigStore 热更新与监听
│ ├── index.ts # stdio / Streamable HTTP / Legacy SSE 入口、REST API 与 Daemon CLI
│ ├── server.ts # McpServer 与 ToolRegistry 装配工厂
│ ├── tools/ # 8 个工具模块,共注册 54 个 MCP 工具
│ │ ├── filesystem.ts # 文件读写、代码大纲、行号编辑、高速搜索与磁盘统计(21)
│ │ ├── terminal.ts # 终端执行与系统环境探测(2)
│ │ ├── services.ts # 跨平台系统服务、进程、端口与开发服务控制(9)
│ │ ├── git.ts # Git 状态、日志、Diff、分支、提交与同步(6)
│ │ ├── mysql.ts # MySQL 多档案查询、表结构查看与备份(6)
│ │ ├── apps.ts # 本机工具/应用探测与自定义快捷预设(4)
│ │ ├── logs.ts # 本地日志文件扫描与批量清理(2)
│ │ └── system.ts # 运行时策略热更新与操作审计日志(4)
│ └── utils/ # 审计持久化、代码大纲、守护服务、流式执行、实时日志、安全校验与隧道管理
├── web/
│ ├── index.html # Web 控制台入口
│ ├── public/favicon.svg # 品牌 SVG Logo
│ └── src/
│ ├── App.tsx # 四字侧边栏、头部面包屑、全局一键总控、Cmd+K 与实时日志订阅
│ ├── components/ # ui.tsx (BrandLogo / Button / ModalDialog) · Select.tsx · AuditDetailModal.tsx
│ ├── lib/ # API 封装、SSE 流消费、防抖 Hook
│ ├── styles/app.css # Tailwind CSS 4 主题变量与全站自定义细滚动条
│ └── views/ # 7 大工作区视图(Overview / Files / Terminal / Ops / Logs / Config / Settings)
├── .husky/ # pre-commit (lint-staged + typecheck) & commit-msg (commitlint)
├── .prettierrc.json # 代码格式化规范
├── commitlint.config.mjs # Conventional Commits 校验配置
├── mcp-config.example.json # 零敏感信息的中性配置文件模板
├── vite.config.ts
├── tsconfig.json
├── package.json
└── LICENSE常见问题 (FAQ)
公网隧道连接出现
HTTP 530或429?530通常表示本地服务未运行或 Quick Tunnel 重启后分配了新的随机*.trycloudflare.com域名,需将新地址更新到客户端;频繁重启 Quick Tunnel 触发429时等待 1-2 分钟重试,或配置 Cloudflare Zero Trust 固定隧道 Token。
使用
nvm/fnm时桌面端stdio启动报node: command not found?桌面端 GUI 进程不会加载 shell profile,请在配置中使用
which node(macOS/Linux)或where node(Windows)输出的绝对路径,或直接从控制台「接入设置」一键复制。
开启公网访问如何保障安全?
务必启用强随机
MCP_HTTP_AUTH_TOKEN(一键启动会自动生成);按需切换为
--mode restricted,配置allowedRoots白名单并将~/.ssh、凭据目录加入blockedPaths;用完临时隧道后点击「一键关闭」及时停用公网入口并清理外部会话。
License
Available Tools
54 toolsapps_detect_installedDetect Installed CLI Tools & Desktop AppsA
自动探测本机已安装的常用开发工具(Git/MySQL/Redis/Docker/Homebrew/Node/Python 等)及其路径和版本,以及 macOS 桌面软件列表。
Inputs: includeMacApps.
apps_list_presetsList Software Shortcut PresetsC
查看当前配置的所有软件快捷操作预设(Redis/Docker/Homebrew/Node/Python/macOS/自定义)。
Inputs: category.
apps_run_presetRun Software Shortcut PresetC
按预设 ID 或名称一键运行已配置的软件快捷操作命令。
Inputs: id (required), cwd.
apps_save_presetCreate, Update, or Delete App Shortcut PresetB
新增、修改或删除软件快捷操作预设,可选保存到 mcp-config.json。
Inputs: id (required), cwd, name, action, +4 more.
fs_batch_readBatch Read Multiple Files or Line RangesB
在单次调用中并发读取多个文件或指定行区间,显著减少 AI 多次读写往返开销。
Inputs: items (required).
fs_chmodChange File or Directory PermissionsB
修改文件或文件夹的系统权限(如 755、644),可选递归修改目录内容权限。
Inputs: mode (required), path (required), recursive.
fs_chownChange File or Directory Owner (uid/gid)C
修改文件或文件夹的所有者 UID 和所属组 GID(需系统权限允许)。
Inputs: gid (required), uid (required), path (required), recursive.
fs_copyCopy File or DirectoryC
复制文件或递归复制整个文件夹到目标路径。
Inputs: source (required), destination (required), overwrite.
fs_create_directoryCreate DirectoryB
创建文件夹,默认支持递归创建多级父目录,可选指定权限。
Inputs: path (required), mode, recursive.
fs_deleteDelete File or DirectoryB
删除指定文件或文件夹(删除非空文件夹需设置 recursive=true)。
Inputs: path (required), force, recursive.
fs_disk_usageGet Disk & Directory UsageB
查看指定路径所在分区的磁盘容量与目录占用统计(文件数、文件夹数、总字节数)。
Inputs: path (required), maxFiles.
fs_edit_fileEdit FileC
对已有文本文件执行精确字符串替换修改。
Inputs: path (required), target (required), replacement (required), replaceAll.
fs_get_infoGet File or Directory Info & PermissionsA
获取文件或文件夹的详细元数据、系统权限(八进制/符号权限)、uid/gid 以及当前进程的可读/可写/可执行权限状态。
Inputs: path (required).
fs_list_directoryList DirectoryB
读取并列出指定目录中的文件夹与文件列表,包含大小、类型和权限信息。
Inputs: path (required), maxDepth, recursive, maxEntries, +1 more.
fs_move_or_renameMove or Rename File/DirectoryC
移动或重命名文件及文件夹。
Inputs: source (required), destination (required), overwrite.
fs_multi_editApply Multiple Edits to FileA
单次原子调用对同一个文件应用多处字符串替换修改,减少工具调用次数。
Inputs: path (required), edits (required).
fs_outlineExtract Code Symbols & Line RangesA
快速提取代码文件的类、函数、接口、类型、Markdown 标题等符号骨架及精确 [startLine, endLine] 行号范围,省去盲读全文。
Inputs: path (required), filter.
fs_patch_linesPatch File by Exact Line RangeB
按精确 1-based 起止行号替换或删除代码行(可配合 fs_read_lines / fs_outline 使用)。
Inputs: path (required), endLine (required), startLine (required), newContent (required).
fs_read_fileRead FileC
读取文件内容,支持按行分段读取、附加精确行号(withLineNumbers=true)或 base64 读取。
Inputs: path (required), endLine, encoding, startLine, +1 more.
fs_read_linesRead Code Lines with Exact Line NumbersA
专为 AI 设计的精确代码行读取工具:始终返回总行数、起止行号及带行号的代码内容,支持超大文件按行切片。
Inputs: path (required), endLine, startLine.
fs_read_tailRead File Tail LinesB
读取文件末尾指定行数(适合查看大日志文件,避免超过读取上限)。
Inputs: path (required), lines.
fs_searchSearch Files and Directories by NameC
高速并发按名称关键字或通配符(* 和 ?)搜索文件与文件夹,默认自动忽略 node_modules/dist/.git 等构建目录。
Inputs: pattern (required), directory (required), extensions, maxResults, +2 more.
fs_search_contentFast Code & Content SearchB
高速搜索目录内代码与文本内容(优先使用 ripgrep 加速,自动回退并发遍历),返回精确文件、行号、列号与上下文行。
Inputs: query (required), directory (required), isRegex, extensions, +5 more.
fs_treeGet Directory TreeB
快速生成项目目录树视图(自动跳过 node_modules、.git、dist 等构建目录),方便 AI 一键把握代码结构。
Inputs: path (required), maxDepth, maxNodes, excludeDirs, +1 more.
fs_write_fileWrite or Create FileB
创建新文件,或覆盖/追加修改已有文件内容。
Inputs: path (required), content (required), mode, append, +2 more.
git_branchGit Branch OperationsC
列出、创建、切换或删除 Git 分支。
Inputs: name, action, repoPath.
git_commitGit Stage & CommitC
暂存指定文件或全部更改并提交 Git Commit。
Inputs: message (required), files, addAll, repoPath.
git_diffGit Diff ViewerB
查看 Git 工作区或暂存区的代码变更内容。
Inputs: file, staged, repoPath.
git_logGit Commit HistoryB
查看 Git 仓库近期提交日志(哈希、作者、时间、提交信息)。
Inputs: limit, repoPath.
git_statusGit Repository StatusB
查看 Git 仓库当前分支、远端同步状态以及暂存/未暂存/未跟踪文件列表。
Inputs: repoPath.
git_syncGit Pull / Push / FetchC
执行 Git 远端同步操作(pull、push 或 fetch)。
Inputs: action (required), branch, remote, repoPath.
logs_cleanupClean Up or Truncate Log FilesB
批量删除或截断清空指定的日志文件,或清理指定目录中超过 retentionDays 天的过期日志。
Inputs: paths, directory, truncateOnly, olderThanDays.
logs_list_filesScan & List Log FilesB
扫描指定目录或默认日志目录(含 MCP 审计日志目录与 ~/Library/Logs)中的日志文件,按大小降序展示以便清理。
Inputs: maxDepth, maxFiles, directory, minSizeBytes.
mysql_backupBackup MySQL Database (mysqldump)B
使用 mysqldump 将指定数据库导出备份为本地 .sql 文件。
Inputs: database (required), outputPath (required), profile.
mysql_describe_tableDescribe MySQL Table SchemaA
查看指定数据表的字段结构(DESCRIBE)与建表语句(SHOW CREATE TABLE)。
Inputs: table (required), profile, database.
mysql_list_databasesList MySQL DatabasesC
查询 MySQL 实例中的全部数据库名称。
Inputs: host, port, user, profile, +1 more.
mysql_list_profilesList Configured MySQL ProfilesA
列出当前已配置的 MySQL 连接配置档案(自动脱敏密码)。
Inputs: no named parameters.
mysql_list_tablesList MySQL Tables & StatusB
查询指定 MySQL 数据库中的全部表名、引擎、行数估算与占用空间。
Inputs: profile, database.
mysql_queryExecute MySQL SQL StatementC
执行 SQL 查询或变更语句,返回结构化 JSON 结果集与执行耗时。
Inputs: sql (required), host, port, user, +3 more.
services_control_devControl Homebrew / Docker ServiceA
启动、停止或重启 Homebrew Services 或 Docker 容器,需开启 services.manage。
Inputs: action (required), target (required), provider (required).
services_control_launchdControl macOS launchd ServiceB
控制 macOS launchd 服务(kickstart 重启拉起、enable、disable),需开启 services.manage。
Inputs: label (required), action (required), domain.
services_inspect_launchdInspect macOS launchd Service DetailB
查看指定 macOS launchd 服务的详细配置与运行状态(launchctl print)。
Inputs: label (required), domain.
services_list_devList Local Dev Services (Homebrew & Docker)A
查看本机 Homebrew Services 与 Docker 容器服务的运行状态。
Inputs: no named parameters.
services_list_portsList Listening Ports & Network ConnectionsB
查看电脑当前开放监听的网络端口与占用进程(基于 lsof)。
Inputs: limit, filter, listeningOnly.
services_list_processesList Running ProcessesC
查看电脑当前正在运行的全部进程,支持按关键字过滤及按 CPU/内存/PID 排序。
Inputs: limit, filter, sortBy.
services_list_systemList System Services (launchctl / systemd)B
读取和查看本机全部系统及用户级守护服务列表(macOS 下使用 launchctl list,Linux 下使用 systemctl)。
Inputs: limit, filter, status.
services_overviewSystem Services Full OverviewB
一键总览本机全部服务:系统守护服务、监听端口、高占用进程以及 Homebrew/Docker 开发服务。
Inputs: filter.
services_signal_processSend Signal to Process (Stop/Kill)A
向指定 PID 进程发送信号(SIGTERM 优雅停止、SIGKILL 强制结束、SIGHUP 重载),需开启 services.manage。
Inputs: pid (required), signal.
system_cleanup_audit_logsClean Up Audit LogsA
按保留天数、分类、状态或保留最近条数清理 MCP 审计日志(传空参数则保留最近 0 条即全部清空)。
Inputs: status, category, keepLatest, olderThanDays.
system_get_audit_logsGet Operation Audit Logs & StatsC
查看分类统计及近期通过 MCP 或 Web 控制台执行的操作审计日志。
Inputs: limit, filter, source, status, +1 more.
system_get_policyGet MCP Server Access PolicyA
查看当前 MCP 服务的权限模式、允许访问目录白名单、敏感路径黑名单及各模块功能开关。
Inputs: no named parameters.
system_update_policyUpdate MCP Server Access PolicyC
动态更新 MCP 运行时权限与安全设置,可选持久化保存到 mcp-config.json。
Inputs: git, apps, audit, mysql, +7 more.
terminal_env_infoGet Terminal & System EnvironmentA
获取本机操作系统、CPU/内存、当前用户、默认 Shell、工作目录及当前 MCP 权限策略信息。
Inputs: no named parameters.
terminal_execExecute Terminal CommandC
在本地电脑终端中执行 Shell 命令,返回标准输出、标准错误、退出码与执行耗时。
Inputs: command (required), cwd, env, shell, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 54 tools
The category prefixes (fs_, git_, mysql_, services_) create clear macro-boundaries, but several read tools overlap heavily (fs_read_file, fs_read_lines, fs_read_tail, fs_batch_read) and so do the write tools (fs_write_file vs fs_edit_file vs fs_multi_edit vs fs_patch_lines). Aggregate tools like services_overview also duplicate the individual list_* tools, leaving genuine misselection risk despite detailed descriptions.
Almost all tools follow a consistent snake_case prefix_verb_noun pattern with clean module prefixes, which makes the surface predictable. Minor deviations exist where verbs are dropped or compounded (logs_cleanup, fs_tree, services_overview, fs_move_or_rename).
At 54 tools this is far beyond a well-scoped set, spanning six distinct domains (filesystem, terminal, services, git, mysql, apps, system). Many of the fs read/edit variants could be collapsed, and the volume increases the chance of wrong-tool selection.
Coverage across each domain is broad: full filesystem CRUD plus search/permissions, git status/log/diff/branch/commit/sync, mysql inspect/query/backup, service and process control. Gaps are minor (git lacks blame/stash/merge/reset, mysql lacks schema create/drop and import), and can mostly be worked around via terminal_exec or mysql_query.
Maintenance
Related MCP Connectors
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 tools over a single OAuth-gated MCP endpoint, letting web-based AI clients such as Claude, ChatGPT, and Grok read and edit files, run whitelisted shell commands, search, query SQLite, use Git, automate browsers and DevTools, manage background tasks, reach localhost services, and control the clipboard, notifications, ports, and Postman. This turns remote AI chats into secure operators of a local machine without granting unrestricted shell access.-
- FlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 tools over a single OAuth-gated MCP endpoint, letting web AI chat clients such as Claude, ChatGPT, and Grok operate on a local machine — reading and editing files, running whitelisted shell commands, searching, querying SQLite, driving browsers and DevTools, managing background jobs, ports, and clipboard. Local IDEs and Postman can also connect directly over localhost for offline, low-latency access.-
- AlicenseNot gradedqualityAmaintenanceEnables web-based AI clients like Claude, ChatGPT, and Grok to securely operate a local machine through OAuth-gated MCP tools covering files, shell, Git, databases, browser automation, and background tasks.MIT
- AlicenseNot gradedqualityAmaintenanceEnables web-based AI clients like Claude, ChatGPT, and Grok to securely operate a local machine through an OAuth-gated MCP endpoint, covering files, shell commands, search, Git, SQLite, browser automation, DevTools, background tasks, ports, clipboard, notifications, and Postman. Exposes 38 governed tools with a strict command whitelist, folder allowlisting, and rate limiting so browser chats can build projects, inspect databases and local APIs, and manage long-running jobs without granting unrestricted shell access.MIT