Skip to main content
Glama

goalslot-mcp

一个用于 GoalSlot 的 MCP 服务器。它为 AI 助手提供针对目标、任务、每周日程模板、时间跟踪、共享计时器、报告、笔记和日志的工具,作用于你自己的 GoalSlot 账户。

它通过 stdio 运行,因此任何 MCP 主机都可以启动它。它附带四个技能,教模型如何很好地使用这些工具。

安装

你需要先登录 goalslot CLI,因为此服务器读取 CLI 写入的凭据。它本身从不运行登录流程。

npm install -g goalslot-cli
goalslot login

然后将 MCP 服务器添加到 Claude Code:

claude mcp add goalslot -- npx -y goalslot-mcp

对于 Claude Desktop,或任何接受 JSON 配置的主机:

{
  "mcpServers": {
    "goalslot": {
      "command": "npx",
      "args": ["-y", "goalslot-mcp"]
    }
  }
}

检查它是否正常工作:

npx -y goalslot-mcp --list-tools

此包尚未发布到 npm。在发布之前,请从源码安装:克隆仓库,运行 npm install && npm run build,然后将主机指向 node /path/to/goalslot-mcp/dist/cli.js。

Related MCP server: Chisel Planner

认证方式

此服务器中没有登录流程。stdio 是协议通道,因此服务器无法提示任何内容,而让模型处理令牌会更糟。它读取机器上已存在的凭据。

解析顺序:

  1. 环境变量 GOALSLOT_ACCESS_TOKEN(如果已设置且非空)。

  2. $GOALSLOT_CONFIG_DIR/credentials.json。

  3. Windows 上的 %APPDATA%\goalslot\credentials.json。

  4. $XDG_CONFIG_HOME/goalslot/credentials.json,否则为 ~/.config/goalslot/credentials.json。

该文件由 goalslot login 写入,并与 CLI 共享。其结构:

{
  "version": 1,
  "apiBaseUrl": "https://api.goalslot.io/api",
  "apiUrl": "https://api.goalslot.io/api",
  "accessToken": "<jwt>",
  "refreshToken": "gsl_rt_...",
  "accessTokenExpiresAt": "2026-08-25T12:00:00.000Z",
  "refreshTokenExpiresAt": "2026-11-23T00:00:00.000Z",
  "tokenId": "<uuid>",
  "scopes": ["full"],
  "user": { "id": "...", "email": "..." },
  "defaultTimezone": "Asia/Karachi",
  "weekStartsOn": 1
}

apiBaseUrl 和 apiUrl 都会被读取并以相同的值写入,因此 CLI 和此服务器不会互相覆盖。未知键在重写时保留。

CLI 令牌是普通的 Bearer JWT,带有 typ: "cli" 和命名可撤销令牌行的 cid 声明,所有常规 API 路由都接受它们。访问令牌有效期为 1 小时。在收到 401 时,此服务器会针对 POST /api/auth/cli/token/refresh 轮换刷新令牌,将新的一对原子地写入磁盘然后使用它,并重放原始请求一次。轮换是单飞的:刷新令牌是一次性的,重放已轮换的令牌会撤销整个凭据,因此两个并发刷新将导致永久注销。

任何令牌、标头或 Authorization 行都不会写入任何日志,无论级别如何。

如果凭据缺失或失效,每个工具都会返回结构化的 NOT_AUTHENTICATED 或 SESSION_EXPIRED,告诉模型让你运行 goalslot login。它不会要求你粘贴令牌。

无头与 CI

GOALSLOT_ACCESS_TOKEN 完全覆盖文件。如果你希望刷新正常工作,请将其与 GOALSLOT_REFRESH_TOKEN 配对;如果没有,刷新将被禁用,会话将在 1 小时访问令牌过期时结束。对于任何长期运行的任务,请改为设置 GOALSLOT_CONFIG_DIR,让服务器管理文件。

工具

九个读取工具和九个写入工具。读取工具可以自由调用,并带有 readOnlyHint 注释。每个写入工具的描述都以 WRITES. 开头,此处暴露的任何内容都不会删除用户数据。

读取

工具

功能

goalslot_get_context

方向性调用,无参数。用户、计划限制和当前使用情况、类别值字符串、标签、时区、今天的日期、当前周以及任何正在运行的计时器。每个技能都首先调用此工具。

goalslot_list_goals

目标及其目标小时数、已记录小时数、进度、截止日期和标签。可选状态、类别和标签过滤器。

goalslot_get_goal

完整获取一个目标,可选地包含用户对其的书面反思。

goalslot_list_tasks

按状态、目标、日程块或星期几过滤的任务,限制数量,以免大型积压工作淹没上下文。

goalslot_get_schedule

每周日程模板,按天分组并按开始时间排序,包含每天的计划分钟数。

goalslot_list_time_entries

一段时间窗口或预设内的单个时间条目,并带有总计。可选目标过滤器和文本搜索。

goalslot_get_report

九个报告端点,通过一个 view 枚举:dashboard、weekly、monthly、detailed、summary、day_by_task、day_total、schedule、goals_progress。

goalslot_search_notes

按标题或正文子字符串查找笔记,或按 id 获取一个。返回树路径并将 HTML 正文转换为 markdown。

goalslot_get_journal

按日期合并的日志条目和每日签到:情绪、精力、专注度、有效方法、阻碍因素。

写入

工具

功能

goalslot_create_goal

创建目标。targetHours 是以小时计量的唯一字段。

goalslot_update_goal

更新目标,包括其状态。故意不能设置 loggedHours。

goalslot_create_task

创建任务,可选地链接到目标和日程块。

goalslot_update_task

通过 action 实现整个任务生命周期:update、complete(同时记录时间)、restore。

goalslot_log_time

记录已花费的时间。支持 dryRun。计入关联的目标。

goalslot_start_timer

启动共享服务器计时器。返回 TIMER_ALREADY_RUNNING 而不是静默接管。

goalslot_stop_timer

将计时器停止为时间条目,或丢弃它。

goalslot_manage_schedule_block

在每周模板中创建、更新或删除一个块。支持 dryRun 和 updateScope。

goalslot_write_journal

为某个日期 upsert 日志条目和每日签到。输入 Markdown,输出 TipTap HTML。

刻意不提供的工具

删除目标、任务和时间条目;清除整个日程;公开或与他人共享任何内容;AI 教练聊天端点;计费和账户设置;模板导入。具有级联效应的破坏性操作以及任何发布个人数据的操作,都属于人类输入的地方,而不是代理可以循环调用的地方。请使用 GoalSlot 应用或 CLI。

工具强制执行的约定

  • 时长是整数分钟,始终命名为 durationMinutes,绝不是裸的 duration。读取也返回 durationHours 作为浮点数,仅用于显示。目标的 targetHours 是唯一的例外。

  • 日期为 YYYY-MM-DD,如果带有时间,则在边界处被拒绝。“今天”根据你的时区计算,而不是从 UTC ISO 切片中获取。

  • 日程是重复的每周模板,不是带日期的活动。每个相关工具描述都如此说明。

  • dayOfWeek 是周日优先(0 = 周日),这与每周报告使用的周一优先顺序不同。两者都在内联中标注,每个响应都带有 dayName。

  • 每周桶是根据条目日期重新计算的,而不是从 API 存储的 dayOfWeek 列读取,该列在 API 服务器的时区中派生,可能相差一天。

错误

失败以 isError: true 返回,并带有一个 JSON 对象:

{
  "error": {
    "code": "PLAN_LIMIT",
    "message": "You've reached your FREE plan limit for goals.",
    "httpStatus": 403,
    "retryable": false,
    "remedy": "The account is at its goal limit. Ask the user to pause a goal with update_goal (status PAUSED), delete one from the CLI, or upgrade. Do not retry.",
    "details": { "plan": "FREE", "limitType": "goals" }
  }
}

remedy 以祈使句编写,供模型使用。代码:NOT_AUTHENTICATED、SESSION_EXPIRED、PLAN_LIMIT、FORBIDDEN、SCHEDULE_CONFLICT、INVALID_INPUT、NOT_FOUND、RATE_LIMITED、UPSTREAM_ERROR、WRITE_BUDGET_EXCEEDED、READ_ONLY_MODE、TIMER_ALREADY_RUNNING、NO_TIMER_RUNNING。

技能

skills/ 中附带四个技能。它们承载了工具描述无法承载的判断:调用顺序、写入前要确认什么、以及不该说什么。

技能

适用场景

goalslot-plan-my-week

规划一周、为目标预留时间、重新平衡日程。

goalslot-log-time

补记未跟踪的时间、更正条目、驱动计时器。

goalslot-weekly-review

周末,“我这一周过得怎么样”,写反思。

goalslot-goal-checkup

“我是否在 X 的轨道上”,决定是削减目标还是推迟截止日期。

通过将目录复制到你的技能文件夹中,将它们安装到 Claude Code:

# macOS and Linux
cp -r "$(npm root -g)/goalslot-mcp/skills/"* ~/.claude/skills/

# Windows PowerShell
Copy-Item "$(npm root -g)\goalslot-mcp\skills\*" "$env:USERPROFILE\.claude\skills\" -Recurse

从克隆中,改为从仓库复制 skills/*。项目级作用域也可以:将它们放在仓库内的 .claude/skills/ 中。

配置

变量

效果

GOALSLOT_CONFIG_DIR

存放 credentials.json 的目录。首先检查。

GOALSLOT_ACCESS_TOKEN

完全覆盖凭据文件。CI 逃生舱口。

GOALSLOT_REFRESH_TOKEN

与上述配对的刷新令牌。轮换仅保存在内存中。

GOALSLOT_API_URL

API 基础 URL。默认为 https://api.goalslot.io/api。

GOALSLOT_TZ

覆盖登录时设置的 IANA 时区。

GOALSLOT_MCP_READONLY=1

每个写入工具都返回 READ_ONLY_MODE。当你将不完全信任的代理指向实时账户时,设置此项。

GOALSLOT_MCP_MAX_WRITES

每个进程允许的写入调用次数。默认为 25。失控循环在此处停止,而不是在计划限制处,后者仅作为免费账户的后备。

HTTP 传输

可选,通过标志启用:

npx -y goalslot-mcp --http --port 7801

它在 http://127.0.0.1:7801/mcp 上通过流式 HTTP 传输提供相同的工具注册表,无状态。

这是仅限单用户和本地使用。每个请求都使用此机器的 GoalSlot 凭据提供服务。没有按调用方进行身份验证,没有 OAuth,也没有令牌托管,因此任何能够访问该端口的人都可以读写该账户。它绑定到 loopback,并且应保持如此。它不是 goal-slot-api#55 中跟踪的托管多租户 MCP 服务器;那需要真正的 OAuth 流程和按用户令牌存储,这是另一项工作。

stdio 是受支持的路径。

开发

npm install
npm run typecheck
npm test
npm run build
node dist/cli.js --list-tools

TypeScript strict、ESM、Node 20 或更高版本。测试使用 vitest 并带有模拟的 fetch;套件中的任何内容都不会接触实时 API。CI 在 Ubuntu 和 Windows 上的 Node 20 和 22 上运行类型检查、测试和构建。

许可证

MIT

Available Tools

18 tools
goalslot_create_goalCreate a goalA

WRITES. Creates a new goal on the user's account. category must be a value string from get_context.categories[].value, not a display name. targetHours is the one field measured in HOURS; everything else in this server is minutes. Creating a goal counts against the plan limit reported by get_context. If the account is at its limit this returns PLAN_LIMIT, so check the limit before calling rather than after. Confirm the title, category and target with the user before calling. Do not invent goals from an offhand remark.

Inputs: title (required), category (required), targetHours (required), color, +3 more.

goalslot_create_taskCreate a taskA

WRITES. Creates a task, optionally attached to a goal and to a weekly schedule block. estimatedMinutes is in MINUTES. Creating a task does not log any time; completing it with update_task does. Prefer attaching a goalId when the task clearly serves one, because that is what makes reports and goal progress meaningful later.

Inputs: title (required), notes, goalId, status, +5 more.

goalslot_get_contextGet GoalSlot account contextA
Read-only

READ ONLY. Call this first, before any other GoalSlot tool, in every session. It returns the facts the other tools require and that you must not guess: the signed-in user, the plan limits and how much of each is already used, the category VALUE strings that create_goal and manage_schedule_block require, the labels, the timezone, today's date in that timezone, the current Monday-first week window, and any timer already running. Do not assume today's date from your own sense of time, and do not invent a category value. Both come from here. Cheap and side-effect free. Call it again after a long conversation rather than relying on a stale copy.

Inputs: no named parameters.

goalslot_get_goalGet one goalA
Read-only

READ ONLY. Full detail for a single goal, optionally with the user's own written reflections on it. Use this when the conversation is about one specific goal. For "how are all my goals doing", call list_goals instead, which is one request rather than many.

Inputs: goalId (required), includeReflections.

goalslot_get_journalGet journal entries and check-insA
Read-only

READ ONLY. Returns the user's written journal and their daily check-ins over a window, merged by date. A journal entry is free-written prose plus optional mood and energy. A check-in is the structured version: mood, energy and focus each 1 to 5, plus short "what worked" and "what blocked me" notes. This is what answers "how did my week feel", as opposed to get_report which answers "where did my hours go". Read both when the user asks how a week went. Journal bodies are stored as HTML and converted to markdown here. Quote the user's own words rather than paraphrasing them.

Inputs: date, preset, endDate, include, +1 more.

goalslot_get_reportGet a time reportA
Read-only

READ ONLY. The single reporting tool. Pick a view; the tool routes to the right report and normalizes the answer. Views: "day_total" is minutes per day, the best default for "how did my week go". "summary" with groupBy goal or category is the per-goal rollup. "detailed" lists every entry grouped by day. "day_by_task" is per day broken down by task. "schedule" compares hours PLANNED in the weekly template against hours actually LOGGED, which is the only way to tell "I never allocated time" apart from "I allocated it and did not honour it". "goals_progress" and "dashboard" are account-wide snapshots that ignore the date range. "weekly" and "monthly" are convenience windows. The response always echoes the resolved date range. Quote that range to the user rather than saying "this week", and never state a number that did not come back from a tool. All durations are minutes. Percentages are already computed; do not recompute them.

Inputs: view (required), preset, endDate, goalIds, +6 more.

goalslot_get_scheduleGet the weekly scheduleA
Read-only

READ ONLY. Returns the user's weekly schedule template, grouped by day and sorted by start time. The GoalSlot schedule is a REPEATING WEEKLY TEMPLATE, not a calendar of dated events. A block on Tuesday 09:00-12:00 happens every Tuesday. There is no way to schedule something for one specific date. Times are wall-clock HH:mm with no date and no timezone. dayOfWeek is Sunday-first: 0 = Sunday through 6 = Saturday. Call this before proposing any new block, so you can see which windows are already taken.

Inputs: dayOfWeek.

goalslot_list_goalsList goalsA
Read-only

READ ONLY. Lists the user's goals with target hours, hours already logged, progress and deadline. This is the tool that answers "what am I working on" and "am I behind". loggedHours is accumulated by time entries, so it moves whenever log_time is called with a goalId. Returns ids you must reuse verbatim when calling create_task, log_time or manage_schedule_block.

Inputs: status, labelIds, categories, includeStats.

goalslot_list_tasksList tasksA
Read-only

READ ONLY. Lists tasks, optionally filtered by status, goal, schedule block or day of week. Statuses are BACKLOG, TODO, DOING, DONE. Results are capped by limit (default 50) so a large backlog cannot flood the conversation; the response says whether it was truncated. dayOfWeek here is Sunday-first (0 = Sunday), which is not the Monday-first ordering that weekly reports use.

Inputs: limit, goalId, status, statuses, +2 more.

goalslot_list_time_entriesList time entriesA
Read-only

READ ONLY. Returns the individual time entries the user logged over a window, with a total. This is the raw record of what was tracked. For aggregates, comparisons and per-goal rollups use get_report instead, which is one call rather than summing these yourself. Every duration is returned as durationMinutes (whole minutes, authoritative) and durationHours (a float for display only, never send it back). The response always echoes the resolved date range, so check it matches what the user meant before quoting numbers.

Inputs: limit, goalId, preset, search, +2 more.

goalslot_log_timeLog a time entryA

WRITES. Records time the user already spent. This is the workhorse tool for catching up on untracked work. durationMinutes is in whole MINUTES: an hour and a half is 90. date is a calendar date in the user's timezone, taken from get_context.today, never guessed. When goalId is set this ALSO increases that goal's logged hours. That is usually what the user wants, but it means a wrong goalId quietly corrupts goal progress, so confirm the goal before logging. Never invent a duration. If the user did not say how long something took, ask. Restate the minutes back in hours when you confirm, so a units mistake is visible. Entries count against the per-day task limit on free plans. Use dryRun true to show a batch to the user before committing it.

Inputs: date (required), taskName (required), durationMinutes (required), notes, +5 more.

goalslot_manage_schedule_blockCreate, update or delete a schedule blockA

WRITES. Creates, updates or deletes one block in the weekly schedule template. The GoalSlot schedule is a REPEATING WEEKLY TEMPLATE, not a calendar of dated events. A block on Tuesday 09:00-12:00 happens every Tuesday. There is no way to schedule something for one specific date. Adding a block therefore changes every future week, not one date. Say that back to the user before you commit a plan. Overlapping an existing block is rejected with SCHEDULE_CONFLICT. On a conflict, re-read that day with get_schedule and shift your proposal. Never delete the incumbent block to make room without asking. Use dryRun true to validate a whole proposed week and show it to the user before writing anything. Blocks count against the plan limit in get_context, so stop one short of it rather than erroring into it. action "delete" removes a single block. There is no way to clear the whole schedule from this server, deliberately.

Inputs: action (required), color, title, dryRun, +8 more.

goalslot_search_notesSearch notesA
Read-only

READ ONLY. Finds notes by a substring of their title or body, or fetches one note by id. Notes are a tree, so every result carries its full path such as "Work / Meetings / Standup". Bodies are stored as HTML and are converted to markdown here, then truncated to maxChars, so long notes come back readable rather than as a wall of tags. With no query this lists the user's notes without their bodies, which is the cheap way to see what exists before pulling one. This server cannot create, edit, delete or share notes. Say so rather than looking for another tool.

Inputs: limit, query, noteId, maxChars, +1 more.

goalslot_start_timerStart the timerA

WRITES. Starts the shared GoalSlot timer for this account. The same timer the user sees in the web and mobile apps, not a private one. Only one timer can run at a time. If one is already running this returns TIMER_ALREADY_RUNNING with what it is tracking and how long it has been going. Do not pass takeOver to get past that on your own: takeOver DISCARDS the running session and its elapsed time is lost with no time entry written. Show the user what is running and let them choose to stop it or replace it. Attach goalId when the work belongs to a goal, so stopping the timer credits that goal.

Inputs: notes, goalId, taskId, takeOver, +2 more.

goalslot_stop_timerStop or discard the timerA

WRITES. Stops the running timer and converts it into a time entry, or discards it. Stopping is atomic and credits the linked goal, so the goal's logged hours go up by the elapsed minutes. Duration is floored at 1 minute and capped at 12 hours: a session left open overnight writes 12 hours, not the real elapsed time, and the response says so via "capped". discard true writes nothing at all and the elapsed time is lost. Only use it when the user says the timer was started by mistake. Attribution fields sent here override whatever the timer was started with.

Inputs: notes, goalId, taskId, discard, +2 more.

goalslot_update_goalUpdate a goalA
Idempotent

WRITES. Updates fields on an existing goal, including its status. There is deliberately no way to set loggedHours here. Logged hours are accumulated from time entries; to change them, add or correct a time entry with log_time. There is no archived status. PAUSED is how the user shelves a goal without deleting it. Deleting a goal is not available as a tool at all; tell the user to run the CLI if they want one gone. Only send the fields that should change.

Inputs: goalId (required), color, title, status, +4 more.

goalslot_update_taskUpdate, complete or restore a taskA
Idempotent

WRITES. One tool for the whole task lifecycle, selected by action. action "update" edits fields. action "complete" marks the task done AND creates a time entry for actualMinutes, which also increases the linked goal's logged hours; it counts against the per-day task limit. action "restore" reopens a completed task. actualMinutes is required for complete and is in whole MINUTES. Never guess it: ask the user how long the task actually took.

Inputs: action (required), taskId (required), date, notes, +9 more.

goalslot_write_journalWrite a journal entry or check-inA
Idempotent

WRITES. Saves the user's journal entry and daily check-in for one date. Both are upserts keyed by date. IMPORTANT: mode "replace" (the default) REPLACES that day's whole journal body. Use mode "append" to add to what is already there. If the day may already have content and the user did not ask you to overwrite it, append. content is markdown and is converted to the HTML the GoalSlot editor stores. Write in the user's voice, using their words, not a summary of them. focus, worked and blocked are part of the check-in, and the check-in requires mood, energy and focus together. Supplying only some of the three is rejected rather than guessed at. Never invent a mood, an energy level or a reflection the user did not express.

Inputs: date (required), mode, mood, focus, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 18 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action (e.g., log_time vs. stop_timer, get_report vs. list_time_entries, get_schedule vs. manage_schedule_block). The overlapping cases are clearly differentiated by descriptions, such as manual logging vs. timer-driven logging, and raw entries vs. aggregated reports. No two tools appear to do the same thing.

    Naming Consistency5/5

    All tools follow the 'goalslot_' prefix plus a consistent snake_case verb_noun pattern (e.g., get_goal, create_task, stop_timer). The verb choice is uniform across read (get/list/search) and write (create/update/start/stop/manage/log/write) operations. There are no stylistic deviations or mixed conventions.

    Tool Count4/5

    18 tools cover a broad domain (goals, tasks, schedule, time tracking, reporting, journal, timer, notes). While this falls slightly above the typical 3–15 'well-scoped' range, the count is justified by the variety of features; each tool has a clear purpose and none are redundant. It feels comprehensive without being bloated.

    Completeness3/5

    The core workflows are covered: goal lifecycle (create/update, though delete is deliberately absent), task lifecycle (create/update/complete/restore, but no delete), schedule management (create/update/delete), time logging (manual and timer), reporting (multiple views), and journaling. However, there are no tools to delete or edit time entries, and goals/tasks cannot be fully removed, which are notable gaps for a productivity domain. The server explicitly documents these limitations, but they still create dead ends for agents.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables authenticated MCP clients to manage projects, tasks, habits, and daily capacity through tool calls.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to connect to the OnTime personal workbench via MCP to manage tasks, projects, and goals through natural language, including creating sprint projects, logging progress, and querying workbench state in real time.
      1
      -