feat: add list-tasklists tool and fix OAuth token refresh#20
Open
pybe wants to merge 2 commits into
Open
Conversation
Adds two improvements: 1. New `list-tasklists` tool that returns all task lists with their IDs. This is useful for discovering which taskListId to use with other operations. 2. Fix OAuth token refresh by initializing OAuth2 client with client_id and client_secret from the OAuth keys file. Previously, tokens would expire and break because the client couldn't refresh them. Now tokens are automatically refreshed and saved to disk. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Additional fixes: 1. Support GOOGLE_OAUTH_CREDENTIALS env var (zcaceres#18) - Allows specifying a shared location for OAuth credentials - Falls back to default relative path if not set 2. Fix Windows path resolution (zcaceres#7, zcaceres#11) - Use fileURLToPath() instead of URL.pathname - Fixes C:\C:\... path issue on Windows 3. Fix due date format for create/update (zcaceres#2) - Normalize dates to RFC3339 format required by Google Tasks API - Supports: date-only (2026-01-15), datetime (2026-01-15T21:00:00), and already-formatted RFC3339 strings - Fixes "invalid argument" error when setting due dates Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds improvements and fixes to the gtasks MCP server:
1. New
list-taskliststool (Closes #3)taskListIdto use with other operations2. Fix OAuth token refresh
client_idandclient_secretto enable automatic token refresh3. Support
GOOGLE_OAUTH_CREDENTIALSenv var (Closes #18)4. Fix Windows path resolution (Closes #7, Closes #11)
fileURLToPath()instead ofURL.pathnameC:\C:\...path issue on Windows5. Fix due date format for create/update (Closes #2)
2026-01-15), datetime (2026-01-15T21:00:00), and pre-formatted RFC3339Test plan
list-tasklistsreturns all task lists with IDsGOOGLE_OAUTH_CREDENTIALSenv var works (tested with explicit path)fileURLToPathapproach)🤖 Generated with Claude Code