Skip to content

v2.0.0

Latest

Choose a tag to compare

@zcaceres zcaceres released this 03 Dec 04:45
· 1 commit to main since this release

Google Tasks MCP v2.0.0

A complete breaking v2.0.0 rewrite of Google Tasks MCP — shipping an agent-friendly MCP server (gtasks-mcp, supporting stdio and 2025-11-25 Streamable HTTP) and a full local CLI (gtasks) over one shared domain core, with minimal dependencies (google-auth-library, zod, @modelcontextprotocol/sdk, native fetch).

Docs: https://gtasks.zach.dev · LLM docs: https://gtasks.zach.dev/llms.txt

Highlights

  • Three form factors over one core: MCP stdio (gtasks-mcp), stateless MCP 2025-11-25 Streamable HTTP (gtasks-mcp --http with localhost DNS-rebinding Host/Origin 403 guards), and a local CLI (gtasks auth|lists|tasks with clean structured text or --json).
  • Full Google Tasks API v1 coverage (13 tools):
    • Task Lists (5): tasklists_list, tasklists_get, tasklists_create, tasklists_update, tasklists_delete (@default guarded locally).
    • Tasks (8): tasks_list, tasks_get, tasks_search, tasks_create, tasks_update, tasks_move (reordering, cross-list moves, 1-level subtasks), tasks_delete, tasks_clear.
    • Supports server-side filters (dueMin/dueMax, completedMin/completedMax, updatedMin, showAssigned, showDeleted), calendar due dates (YYYY-MM-DD, zero timezone drift), explicit field clearing (notes/due via "" or null), webViewLink, and assignmentInfo.
  • O(1) MCP Task Resources: gtasks:///lists/<taskListId>/tasks/<taskId> with Resource Template gtasks:///lists/{taskListId}/tasks/{taskId} and opaque composite-cursor pagination omitting nextCursor on the final page (never returning nextCursor: null).
  • Defense-in-depth Read-Only Mode: pass --read-only, set GTASKS_READ_ONLY=true, or log in with gtasks auth login --read-only (https://www.googleapis.com/auth/tasks.readonly) to hide mutating tools from tools/list and refuse all 8 mutations locally before calling Google Tasks API.
  • Cross-vendor MCP 2025-11-25 conformance: flat additionalProperties: false JSON Schemas and accurate readOnlyHint/destructiveHint/idempotentHint/openWorldHint annotations verified across Claude, Gemini, and OpenAI constraints.
  • Security & minimal footprint: replaced googleapis and @google-cloud/local-auth with google-auth-library + lightweight REST client, upgraded @modelcontextprotocol/sdk, cleared legacy Dependabot CVEs, enforced 0600 credential file permissions, non-clobbering token refresh persistence, and secret redaction across all outputs.
  • Slim multi-stage Node 22 Dockerfile for container & Glama deployments (replacing legacy smithery.yaml).

Breaking Changes from v0.0.1

  • Package & binaries: npm package name is now gtasks (replacing @modelcontextprotocol/server-gtasks), exposing gtasks (CLI, plus gtasks mcp alias so npx -y gtasks mcp works directly) and gtasks-mcp (standalone MCP server binary).
  • Tool names & schemas: legacy list/search/create/update/delete/clear are replaced by 13 namespaced tasklists_* / tasks_* tools; unused legacy uri parameter on updates is removed.
  • Scoped defaults: tasks_list and tasks_search default to @default, hide completed tasks (includeCompleted: false), and default to maxResults: 20 (pass allLists: true to scan every list; search caps per-list scans at 20 pages / 2,000 tasks with a truncation note).
  • MCP Resource URIs: changed from gtasks:///<taskId> to gtasks:///lists/<taskListId>/tasks/<taskId>.
  • OAuth storage & lifecycle: keys & tokens now default to the OS user config directory (~/.config/gtasks-mcp/ on macOS/Linux, %APPDATA%\gtasks-mcp\ on Windows) or GTASKS_OAUTH_KEYS_PATH / GTASKS_CREDENTIALS_PATH / inline GTASKS_CLIENT_ID + GTASKS_CLIENT_SECRET, with explicit gtasks auth login (--no-browser, --read-only), gtasks auth status, and gtasks auth logout (headless MCP servers never auto-launch a browser).
  • Runtime floor: requires Node.js >= 22 LTS or Bun.

Issues & PRs Resolved

Fixes #4, #6, #7, #8, #10, #11, #13, #18, #30 and incorporates/supersedes #5, #12, #21, #23, #27, #31, #33, #34, #36.