Repository navigation
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 MCP2025-11-25Streamable HTTP (gtasks-mcp --httpwith localhost DNS-rebindingHost/Origin403guards), and a local CLI (gtasks auth|lists|taskswith 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(@defaultguarded 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/duevia""ornull),webViewLink, andassignmentInfo.
- Task Lists (5):
- O(1) MCP Task Resources:
gtasks:///lists/<taskListId>/tasks/<taskId>with Resource Templategtasks:///lists/{taskListId}/tasks/{taskId}and opaque composite-cursor pagination omittingnextCursoron the final page (never returningnextCursor: null). - Defense-in-depth Read-Only Mode: pass
--read-only, setGTASKS_READ_ONLY=true, or log in withgtasks auth login --read-only(https://www.googleapis.com/auth/tasks.readonly) to hide mutating tools fromtools/listand refuse all 8 mutations locally before calling Google Tasks API. - Cross-vendor MCP
2025-11-25conformance: flatadditionalProperties: falseJSON Schemas and accuratereadOnlyHint/destructiveHint/idempotentHint/openWorldHintannotations verified across Claude, Gemini, and OpenAI constraints. - Security & minimal footprint: replaced
googleapisand@google-cloud/local-authwithgoogle-auth-library+ lightweight REST client, upgraded@modelcontextprotocol/sdk, cleared legacy Dependabot CVEs, enforced0600credential file permissions, non-clobbering token refresh persistence, and secret redaction across all outputs. - Slim multi-stage Node 22
Dockerfilefor container & Glama deployments (replacing legacysmithery.yaml).
Breaking Changes from v0.0.1
- Package & binaries: npm package name is now
gtasks(replacing@modelcontextprotocol/server-gtasks), exposinggtasks(CLI, plusgtasks mcpalias sonpx -y gtasks mcpworks directly) andgtasks-mcp(standalone MCP server binary). - Tool names & schemas: legacy
list/search/create/update/delete/clearare replaced by 13 namespacedtasklists_*/tasks_*tools; unused legacyuriparameter on updates is removed. - Scoped defaults:
tasks_listandtasks_searchdefault to@default, hide completed tasks (includeCompleted: false), and default tomaxResults: 20(passallLists: trueto 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>togtasks:///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) orGTASKS_OAUTH_KEYS_PATH/GTASKS_CREDENTIALS_PATH/ inlineGTASKS_CLIENT_ID+GTASKS_CLIENT_SECRET, with explicitgtasks auth login(--no-browser,--read-only),gtasks auth status, andgtasks auth logout(headless MCP servers never auto-launch a browser). - Runtime floor: requires Node.js
>= 22LTS 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.