Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoMySQL host.
MYSQL_PORTNoMySQL port.
MYSQL_USERNoMySQL user.
MCP_FS_READNoEnable filesystem read operations.
MCP_FS_CHMODNoEnable filesystem chmod operations.
MCP_FS_CHOWNNoEnable filesystem chown operations.
MCP_FS_WRITENoEnable filesystem write operations.
MCP_UI_TITLENoTitle for the Web console UI.
MCP_FS_DELETENoEnable filesystem delete operations.
MCP_HTTP_HOSTNoHTTP listen host. CLI equivalent: --host.127.0.0.1
MCP_HTTP_PATHNoHTTP endpoint path for Streamable HTTP (e.g. /mcp).
MCP_HTTP_PORTNoHTTP listen port. CLI equivalent: --port, -p.3000
MCP_TRANSPORTNoTransport protocol (stdio or http). CLI equivalent: --transport, -t.stdio
MCP_PUBLIC_URLNoPublic URL for the server.
MCP_UI_ENABLEDNoEnable the Web console UI.
MYSQL_DATABASENoMySQL database.
MYSQL_PASSWORDNoMySQL password.
MCP_ACCESS_MODENoPermission mode (full or restricted). CLI equivalent: --mode, -m.full
MCP_AUTO_TUNNELNoWhether to automatically start the public tunnel.
MCP_CONFIG_PATHNoExplicit path to the configuration file. CLI equivalent: --config, -c.
MCP_GIT_ENABLEDNoEnable the Git module.
MCP_APPS_ENABLEDNoEnable the apps module.
MCP_ALLOWED_ROOTSNoAllowed root directory whitelist. CLI equivalent: --allow-root (may be repeated).
MCP_AUDIT_ENABLEDNoEnable audit logging.
MCP_AUDIT_PERSISTNoWhether audit logs are persisted to disk.
MCP_BLOCKED_PATHSNoBlocked paths blacklist.
MCP_MYSQL_ENABLEDNoEnable the MySQL module.
MCP_AUDIT_LOG_FILENoPath to the audit log file.
MCP_HTTP_STATELESSNoEnable stateless HTTP mode.
MCP_HTTP_AUTH_TOKENNoBearer auth token for HTTP access.
MCP_SERVICES_MANAGENoAllow managing system services and processes. CLI equivalent: --manage-services / --no-manage-services.
MCP_CLOUDFLARE_TOKENNoCloudflare Zero Trust tunnel token for a fixed public tunnel.
MCP_SERVICES_ENABLEDNoEnable the services module.
MCP_TERMINAL_ENABLEDNoEnable terminal command execution.
MCP_AUDIT_MAX_ENTRIESNoMaximum number of audit entries to retain.
MCP_FS_MAX_READ_BYTESNoMaximum bytes allowed for filesystem reads.
MCP_AUDIT_RECORD_READSNoWhether read operations are recorded in the audit log.
MCP_FS_MAX_WRITE_BYTESNoMaximum bytes allowed for filesystem writes.
MCP_UI_REQUIRE_CONFIRMNoWhether the Web console requires confirmation for actions.
MCP_ALLOW_CONFIG_UPDATENoWhether configuration/policy updates are allowed at runtime.
MCP_TERMINAL_TIMEOUT_MSNoTerminal command timeout in milliseconds.
MCP_AUDIT_RETENTION_DAYSNoNumber of days to retain audit logs.
MCP_HTTP_ALLOW_QUERY_TOKENNoWhether the auth token is also accepted via the ?token= query parameter.
MCP_TERMINAL_MAX_OUTPUT_BYTESNoMaximum bytes of terminal output captured.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
system_get_policyA

查看当前 MCP 服务的权限模式、允许访问目录白名单、敏感路径黑名单及各模块功能开关。

system_update_policyC

动态更新 MCP 运行时权限与安全设置,可选持久化保存到 mcp-config.json。

system_get_audit_logsC

查看分类统计及近期通过 MCP 或 Web 控制台执行的操作审计日志。

system_cleanup_audit_logsA

按保留天数、分类、状态或保留最近条数清理 MCP 审计日志(传空参数则保留最近 0 条即全部清空)。

logs_list_filesB

扫描指定目录或默认日志目录(含 MCP 审计日志目录与 ~/Library/Logs)中的日志文件,按大小降序展示以便清理。

logs_cleanupB

批量删除或截断清空指定的日志文件,或清理指定目录中超过 retentionDays 天的过期日志。

fs_list_directoryB

读取并列出指定目录中的文件夹与文件列表,包含大小、类型和权限信息。

fs_treeB

快速生成项目目录树视图(自动跳过 node_modules、.git、dist 等构建目录),方便 AI 一键把握代码结构。

fs_get_infoA

获取文件或文件夹的详细元数据、系统权限(八进制/符号权限)、uid/gid 以及当前进程的可读/可写/可执行权限状态。

fs_read_fileC

读取文件内容,支持按行分段读取、附加精确行号(withLineNumbers=true)或 base64 读取。

fs_read_linesA

专为 AI 设计的精确代码行读取工具:始终返回总行数、起止行号及带行号的代码内容,支持超大文件按行切片。

fs_batch_readB

在单次调用中并发读取多个文件或指定行区间,显著减少 AI 多次读写往返开销。

fs_outlineA

快速提取代码文件的类、函数、接口、类型、Markdown 标题等符号骨架及精确 [startLine, endLine] 行号范围,省去盲读全文。

fs_read_tailB

读取文件末尾指定行数(适合查看大日志文件,避免超过读取上限)。

fs_write_fileB

创建新文件,或覆盖/追加修改已有文件内容。

fs_edit_fileC

对已有文本文件执行精确字符串替换修改。

fs_patch_linesB

按精确 1-based 起止行号替换或删除代码行(可配合 fs_read_lines / fs_outline 使用)。

fs_multi_editA

单次原子调用对同一个文件应用多处字符串替换修改,减少工具调用次数。

fs_create_directoryB

创建文件夹,默认支持递归创建多级父目录,可选指定权限。

fs_copyC

复制文件或递归复制整个文件夹到目标路径。

fs_move_or_renameC

移动或重命名文件及文件夹。

fs_deleteB

删除指定文件或文件夹(删除非空文件夹需设置 recursive=true)。

fs_chmodB

修改文件或文件夹的系统权限(如 755、644),可选递归修改目录内容权限。

fs_chownC

修改文件或文件夹的所有者 UID 和所属组 GID(需系统权限允许)。

fs_searchC

高速并发按名称关键字或通配符(* 和 ?)搜索文件与文件夹,默认自动忽略 node_modules/dist/.git 等构建目录。

fs_search_contentB

高速搜索目录内代码与文本内容(优先使用 ripgrep 加速,自动回退并发遍历),返回精确文件、行号、列号与上下文行。

fs_disk_usageB

查看指定路径所在分区的磁盘容量与目录占用统计(文件数、文件夹数、总字节数)。

terminal_execC

在本地电脑终端中执行 Shell 命令,返回标准输出、标准错误、退出码与执行耗时。

terminal_env_infoA

获取本机操作系统、CPU/内存、当前用户、默认 Shell、工作目录及当前 MCP 权限策略信息。

services_list_systemB

读取和查看本机全部系统及用户级守护服务列表(macOS 下使用 launchctl list,Linux 下使用 systemctl)。

services_inspect_launchdB

查看指定 macOS launchd 服务的详细配置与运行状态(launchctl print)。

services_list_processesC

查看电脑当前正在运行的全部进程,支持按关键字过滤及按 CPU/内存/PID 排序。

services_list_portsB

查看电脑当前开放监听的网络端口与占用进程(基于 lsof)。

services_list_devA

查看本机 Homebrew Services 与 Docker 容器服务的运行状态。

services_overviewB

一键总览本机全部服务:系统守护服务、监听端口、高占用进程以及 Homebrew/Docker 开发服务。

services_signal_processA

向指定 PID 进程发送信号(SIGTERM 优雅停止、SIGKILL 强制结束、SIGHUP 重载),需开启 services.manage。

services_control_devA

启动、停止或重启 Homebrew Services 或 Docker 容器,需开启 services.manage。

services_control_launchdB

控制 macOS launchd 服务(kickstart 重启拉起、enable、disable),需开启 services.manage。

git_statusB

查看 Git 仓库当前分支、远端同步状态以及暂存/未暂存/未跟踪文件列表。

git_logB

查看 Git 仓库近期提交日志(哈希、作者、时间、提交信息)。

git_diffB

查看 Git 工作区或暂存区的代码变更内容。

git_branchC

列出、创建、切换或删除 Git 分支。

git_commitC

暂存指定文件或全部更改并提交 Git Commit。

git_syncC

执行 Git 远端同步操作(pull、push 或 fetch)。

mysql_list_profilesA

列出当前已配置的 MySQL 连接配置档案(自动脱敏密码)。

mysql_list_databasesC

查询 MySQL 实例中的全部数据库名称。

mysql_list_tablesB

查询指定 MySQL 数据库中的全部表名、引擎、行数估算与占用空间。

mysql_describe_tableA

查看指定数据表的字段结构(DESCRIBE)与建表语句(SHOW CREATE TABLE)。

mysql_queryC

执行 SQL 查询或变更语句,返回结构化 JSON 结果集与执行耗时。

mysql_backupB

使用 mysqldump 将指定数据库导出备份为本地 .sql 文件。

apps_detect_installedA

自动探测本机已安装的常用开发工具(Git/MySQL/Redis/Docker/Homebrew/Node/Python 等)及其路径和版本,以及 macOS 桌面软件列表。

apps_list_presetsC

查看当前配置的所有软件快捷操作预设(Redis/Docker/Homebrew/Node/Python/macOS/自定义)。

apps_run_presetC

按预设 ID 或名称一键运行已配置的软件快捷操作命令。

apps_save_presetB

新增、修改或删除软件快捷操作预设,可选保存到 mcp-config.json。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 54 tools

Disambiguation3/5

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.

Naming Consistency4/5

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).

Tool Count2/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo recent community issues