Skip to main content
Glama
README.md
# GoalOS MCP

[English](README.en.md)

GoalOS 把本地 Markdown 工作区接到 MCP 和浏览器。工位照常签收、交稿,主控照常验收。你在概览里看进度和异常,展开一项就能读到对应的原稿与回执。协作图按实际定向留言显示派单与回传。

## 启动

需要 Node.js 22.5 或更高版本,无外部 npm 依赖。下载或克隆仓库,在仓库根目录运行:

```sh
node --experimental-sqlite bin/goalos-mcp.mjs init-config
```

在用户目录的 `~/.goalos/config.json` 里把 `workspaceRoot` 改为自己的工作区。项目放在工作区第一层。每个项目下的 `docs/tasks/<任务名>/` 或 `文档/任务记录/<任务名>/` 会自动出现在侧栏。运行数据放在外部 `runtimeRoot`。任务原件通常包括任务书、过程、留言板和成果文件。[配置示例](templates/goalos.config.example.json)

在 MCP 客户端登记以下命令,把示例路径换成实际检出位置:

```json
{
  "mcpServers": {
    "goalos-mcp": {
      "command": "node",
      "args": ["--experimental-sqlite", "/absolute/path/to/goalos-mcp/bin/goalos-mcp.mjs", "--controller", "--ui", "--port", "0"]
    }
  }
}
```

让主控用 `handoff` 查任务,再调用 `workbench_url`,传入返回的 `scope` 即可直接打开该单。网页和 MCP 在同一进程,共用同一套文件和运行状态。端口 0 由系统分配;多会话可用同一仓外配置,各自获得本机地址。MCP 消息走 stdout,监听地址写到 stderr。

只读检查可使用无参数的 MCP;独立预览用 `npm run ui -- --read-only`。使用其他配置时传 `--config <文件>` 或设置 `GOALOS_CONFIG`。

## 派单与验收

默认配置可以发现原件。要启用投递,在仓外配置的 `boardRoutes` 中授权具体任务和工位,并在 `engines` 中登记本机已安装的引擎。例如:

```json
{"taskDirectory":"example/docs/tasks/review","seat":"校对","engine":"codex"}
```

启用写入的磁盘工作台启动本机监听器。主控通过 `board_post` 写一条以 `@校对` 开头的单行派单。工位在同一个留言板签收和交稿。过程用 `record_progress` 署名记入原任务的过程文件。监听器启动时把原有消息作为基线,同任务同岗位的相同派单会去重;投递不明须核对原回执。引擎在当前操作系统用户权限下运行,路由是派单许可,需另按引擎能力设置沙箱。

任务书可列出 `交付项|校对|核对结果.md|核验|片头字幕核对`。署名的 `主控验收|通过|《核对结果.md》` 和可读原件共同确定验收状态。概览支持成员筛选;协作图的「同步看概览」可同时看消息与进度。记录不清时可点回原件。

旧式配置项目仍支持文件编辑、画廊、学习与清理工具;`npm run demo-ui` 在临时目录演示这一模式。项目发现、留言和交接的日常入口是磁盘工作区。[主控技能](skills/goalos-controller/SKILL.md) · [工作台技能](skills/goalos-workbench/SKILL.md)

## 验证

```sh
npm test
npm run demo-ui -- --smoke
```

[MIT 许可证](LICENSE)

TDQS

B3.3/5.0

Scored across 7 tools

Disambiguation4/5

Each tool has a mostly distinct job: URL helper, task/scope lookup, board read, blocking wait, worker inspection, lessons lookup, and cleanup scanning. The only real overlap is board_read vs board_wait, both operating on board messages with a `since` cursor, but the descriptions make the read-vs-block distinction clear. handoff and workbench_url both touch task targeting, though one locates files and the other returns/browser-opens a URL.

Naming Consistency3/5

Five tools follow a domain_action shape (board_read, board_wait, learning_query, cleanup_scan) while worker_status uses a noun-noun form and workbench_url/handoff break the pattern entirely as a noun phrase and a bare noun. The convention is readable but mixes object-verb ordering (learning_query) with verb-object and pure-noun styles. It's not chaotic, but not a predictable single pattern.

Tool Count5/5

Seven tools is a tight, well-scoped set for an agent coordination/observability server, with each tool covering a distinct facet (locate, read, wait, inspect, learn, clean). Nothing appears redundant or padded at this count.

Completeness4/5

The surface covers the read/observe side of the coordination workflow well: locating tasks, reading and waiting on the board, inspecting workers, querying lessons, and scanning for cleanup. The main gap is no write-side operations — nothing to post a board message, execute a cleanup, or dispatch/stop a worker (dispatch is merely referenced in learning_query), which limits full lifecycle coverage.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues