XTxiaoting14332/gemini-agent-mcp
让 Gemini 通过远程 MCP 操作 NAT 后本地机器的文件与命令
解决什么问题
没有它,Gemini Web/CLI 无法访问本地工作区,也无法读写文件、跟踪差异或执行 shell 命令。它通过轻量网关和 Go 客户端打通这条链路。
- 远程 MCP 接入本地机器
- 读写文件并跟踪差异
- 执行 shell 命令
适用客户端
- cli
安装命令
npx wrangler secret put ADMIN_PASSWORD npx wrangler secret put CLIENT_TOKEN npx wrangler secret put SESSION_SECRET npx wrangler deploy 一键配置
{
"mcpServers": {
"workstation": {
"httpUrl": "https://your-gateway.example.com/mcp/<deviceId>",
"headers": {
"Authorization": "Bearer <DEVICE_GATEWAY_TOKEN>",
"X-Gateway-Token": "<DEVICE_GATEWAY_TOKEN>"
}
}
}
} 安全标记
- 需要 API Key: 未标注
- 本地运行: 是
- 访问网络: 是
- 需要 root: 是
维护状态
| 最近提交 | 2026-12-05(0d) |
|---|---|
| Star | 42 |
| 待处理 issue | 0 |
| 协议 | GPL-3.0 |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-05 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
A remote MCP (Model Context Protocol) agent harness that lets Gemini Web or CLI clients inspect workspaces, read and edit files, track diffs, and execute shell commands on local machines behind NAT via a lightweight gateway and Go client binary.