gsd-mcp-server
v2.0.0MCP server for GSD Task Manager: 20 tools for task CRUD, analytics, and diagnostics over PocketBase.
Backend requirement: updates and deletes require the atomic task-write hooks in docker/pb_hooks/task_conditional_writes.pb.js and task-write-contract.js. Install them and restart PocketBase before releasing this client. A missing route fails closed. See ADR 0021. Model Context Protocol (MCP) server for GSD Task Manager. Provides full task management capabilities including create, read, update, and delete operations through Claude Desktop and other MCP-compatible AI assistants.
Summary extracted from the README.
GSD Task Manager MCP Server
Backend requirement: updates and deletes require the atomic task-write hooks in
docker/pb_hooks/task_conditional_writes.pb.js and task-write-contract.js.
Install them and restart PocketBase before releasing this client. A missing
route fails closed. See ADR 0021.
Model Context Protocol (MCP) server for GSD Task Manager. Provides full task management capabilities including create, read, update, and delete operations through Claude Desktop and other MCP-compatible AI assistants. Communicates with a PocketBase backend: the hosted service at https://api.vinny.io, or a server you run yourself from the Docker image (self-hosted).
Quick Start
Install a reviewed, exact release and run its interactive setup wizard:
npm install --global gsd-mcp-server@2.0.0
gsd-mcp-server --setup
This README uses 2.0.0. The npm badge above shows the latest release. Install an exact version with the command above.
The wizard validates a normal user account and writes an owner-only configuration
artifact for Claude Desktop: ~/.gsd-mcp-setup.json, which only your user account
can read. That generated configuration launches the exact local Node executable and
package entrypoint used by the wizard. It doesn't use npx, so npm can't pick
different code to receive your auth token. Open the artifact only in a trusted
editor and merge it into Claude Desktop. The server deletes the artifact the first
time it starts with a valid configuration, so merge it before you restart Claude
Desktop. To update, explicitly install another exact
reviewed version and rerun the wizard.
See Installation section below for detailed setup instructions.
Features
Reliability & Performance
- ✅ Rate-limit handling - Single-task writes retry once after a 429, honoring Retry-After. See Pacing and the cache for bulk writes.
- ✅ Token Monitoring -
get_token_statusreports when the token expires (healthy/warning/critical/expired/invalid). Nothing warns you unless you ask - ✅ Caching - In-memory TTL cache (30s), cleared after this server's writes and dependency cleanup.
- ✅ Dry-Run Mode - Preview all write operations before committing
- ✅ Dependency Validation - Circular dependency detection using BFS algorithm
- ✅ Cache Stats Tool - Monitor cache hit rates and performance
Write Operations (v0.4.0)
- ✅ Create Tasks - Create tasks from a plain-English request; Claude fills in the fields (supports dryRun)
- ✅ Update Tasks - Modify any task property (supports dryRun)
- ✅ Complete Tasks - Mark tasks as done or incomplete (supports dryRun)
- ✅ Delete Tasks - Permanently remove tasks (supports dryRun)
- ✅ Bulk Operations - Update up to 50 tasks at once, or delete up to 10 (supports dryRun)
- 🔒 Safety Features - Bulk limits (50 tasks, 10 deletes), validation, dry-run preview
Quick Start Helpers (v0.3.2)
- ✅ 6 Built-in Prompts - One-click workflows (daily standup, weekly review, focus mode, etc.)
- ✅ Comprehensive Help Tool - In-Claude documentation with topic filtering
- ✅ Zero learning curve - Discover features as you use them
Interactive Setup & Validation (v0.3.0)
- ✅ Interactive setup wizard (
--setup) - ✅ Configuration validator (
--validate) - ✅ Automatic connectivity and auth testing
- ✅ Enhanced error messages with actionable guidance
Analytics & Insights (v0.3.0)
- ✅ Comprehensive productivity metrics
- ✅ Quadrant distribution analysis
- ✅ Tag-based analytics with completion rates
- ✅ Upcoming deadline tracking (overdue, today, this week)
- ✅ AI-friendly task insights summaries
- ✅ Streak tracking (current and longest)
Metadata Access (v0.1.0)
- ✅ Sync backend health check (
get_sync_status) and token expiry (get_token_status) - ✅ Task statistics (metadata only)
Task Access (v0.2.0+)
- ✅ List all tasks with full content (cached)
- ✅ Search tasks by title, description, tags, subtasks
- ✅ Filter by quadrant, completion status, tags
- ✅ Get individual task details
- ✅ Today's top three picks and suggestions (
get_top_three) - ✅ Full CRUD operations: Create, read, update, delete tasks (v0.4.0+)
Prerequisites
- GSD Task Manager with sync enabled
- OAuth Authentication completed (Google, Apple, or GitHub)
- Node.js 20 or later (18 still runs, but it is past end of life)
- Claude Desktop or another MCP-compatible client
CLI Usage
The MCP server includes commands for setup and troubleshooting:
# Interactive setup wizard (recommended for first-time users)
gsd-mcp-server --setup
# Validate existing configuration
gsd-mcp-server --validate
# Show help and usage information
gsd-mcp-server --help
# Run as MCP server (normal mode - used by Claude Desktop)
gsd-mcp-server
Setup Wizard Features:
- ✅ Tests PocketBase connectivity before configuration
- ✅ Validates authentication token
- ✅ Generates ready-to-use Claude Desktop config
- ✅ Provides platform-specific config file paths
Validation Features (--validate; the validate_config tool runs the
connectivity, authentication, and task-access checks only):
- ✅ Checks environment variables
- ✅ Tests PocketBase connectivity and authentication
- ✅ Provides actionable error messages
Installation
Two installation options:
Option A: Install an Exact Published Release (Recommended)
Install an explicitly reviewed version, such as npm install --global gsd-mcp-server@2.0.0. Updating involves reinstalling and running --setup.
Don't run the server through npx: the setup wizard writes the path of the copy
that ran it, and npm can prune the npx cache, which silently breaks Claude Desktop.
Option B: Build from Source
For development or if you want to modify the code:
- Clone the repository
- Navigate to
packages/mcp-server - Install dependencies:
npm install - Build the server:
npm run build
Setup
1. Get Your Auth Token
You'll need an auth token from your PocketBase sync setup:
- Open GSD Task Manager in your browser
- Sign in with Google, Apple, or GitHub to enable cloud sync
- Open Settings → Cloud Sync → MCP access → Copy auth token
Paste the copied token as the GSD_AUTH_TOKEN value. The button copies only the
raw token. Keep it private: it grants access to your synced tasks.
The copied token is the web session's current one, so it can have anywhere from
30 days down to a few days left. Run get_token_status after pasting to see the
real date. When the web app renews its own session, a token already copied into
MCP keeps working until its own expiry.
2. Configure Claude Desktop
Add the MCP server to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Using the exact published package (recommended): run gsd-mcp-server --setup,
then merge the generated artifact, ~/.gsd-mcp-setup.json. The wizard writes the
configuration with your token to that file. It prints only a preview with the token
redacted, so the token stays out of your terminal history.
Using local build (for development):
{
"mcpServers": {
"gsd-tasks": {
"command": "node",
"args": [
"/absolute/path/to/gsd-taskmanager/packages/mcp-server/dist/index.js"
],
"env": {
"GSD_POCKETBASE_URL": "https://api.vinny.io",
"GSD_AUTH_TOKEN": "your-auth-token-here"
}
}
}
}
Configuration Notes:
- Replace
your-auth-token-herewith your actual token from Step 1 GSD_POCKETBASE_URL: Your PocketBase URL (https://api.vinny.iofor the hosted service, or your own server). Must be HTTPS, or http://localhost / 127.0.0.1 / [::1] for local development, with no credentials, query, or fragment.- Administrator (superuser) tokens are refused; use the token of a normal signed-in account.
3. Restart Claude Desktop
Close and reopen Claude Desktop to load the MCP server.
Usage
Built-in Prompts (v0.3.2)
The MCP server includes 6 pre-configured conversation starters that appear in Claude Desktop:
- daily-standup - Daily task review with overdue items and productivity summary
- weekly-review - Weekly productivity analysis with completion stats and trends
- focus-mode - Get urgent and important tasks (Q1: Do First) to work on now
- upcoming-deadlines - Show all overdue, due today, and due this week tasks
- productivity-report - Comprehensive report with metrics, streaks, and insights
- tag-analysis - Analyze task distribution and completion rates by tags/projects
How to use: Click the "Use Prompt" button in Claude Desktop, or just ask directly!
Skills (2.0.0)
The server also ships four MCP skills. Each is a short guide the client loads only when a task calls for it, written for the model rather than for you.
| Skill | Use it when |
|---|---|
triage |
you capture tasks or ask where one belongs |
daily-plan |
you plan the day or ask what to work on now |
weekly-review |
you review a week or a month |
safe-cleanup |
you delete tasks or change many at once |
Claude Code loads MCP skills on connections that speak MCP 2026-07-28, which this server does. Add the server to Claude Code itself with claude mcp add, because Claude Code doesn't load skills from servers configured in claude_desktop_config.json. Each skill then appears as /<server>:<skill>, where <server> is the name you gave the server, so /gsd:triage for a server named gsd.
A client without the skills extension ignores it and still gets the 20 tools and the six prompts. A client that lists resources sees each skill as a skill://<name>/SKILL.md file, and Claude Code may offer those as @ suggestions.
The skills ship in the package's skills/ folder and load once when the server starts. If the folder is missing, the server logs a warning to stderr and serves the tools without skills. A malformed skill is skipped with a warning, and the others still load.
Natural Language Queries
Once configured, you can ask Claude questions like:
Sync Status (v0.1.0)
- "What's my GSD sync status?"
- "When does my MCP token expire?"
- "Is the sync backend reachable?"
Task Overview (v0.1.0)
- "How many tasks do I have in GSD?"
- "Give me task statistics"
- "Is my sync backend healthy?"
Task Access (v0.2.0+)
- "List all my tasks"
- "Show me tasks in the Do First quadrant"
- "What tasks are due this week?"
- "Search for tasks about [keyword]"
- "Show me all tasks tagged work"
- "What are my urgent tasks?"
- "Find tasks mentioning [name or topic]"
Analytics & Insights (v0.3.0)
- "What's my productivity this week?"
- "Show me my completion streak"
- "Analyze my task distribution across quadrants"
- "What tags do I use most?"
- "Which quadrant has the best completion rate?"
- "Show me overdue tasks"
- "Give me a productivity summary"
Configuration & Troubleshooting (v0.3.0)
- "Validate my MCP configuration"
- "Check if my setup is working correctly"
- "Diagnose connection issues"
Help & Discovery (v0.3.2)
- "Help me use the GSD MCP server"
- "Show me usage examples"
- "What tools are available?"
- "How do I troubleshoot issues?"
Write Operations (v0.4.0)
- "Create a task: Finish quarterly report, urgent and important, due Friday"
- "Mark task abc123 as complete"
- "Move all work tasks to the Schedule quadrant"
- "Update task xyz789 to add tags project-alpha and high-priority"
- "Delete completed tasks from last month"
- "Complete all tasks tagged quick-wins"
- "Change due date of task def456 to next Monday"
Claude will use the MCP tools to fetch data from your PocketBase backend and can now modify your tasks! Most reads come from a 30-second cache, so a change made in another app can take up to 30 seconds to appear.
Tags are stored lowercase without a leading #, the way the apps store them. The
server normalizes the tags it receives the same way, so #Work and work are
one tag.
Saved items (1.4.0)
Items saved in the apps (Move to Saved) stay out of list_tasks, get_task,
search_tasks, and the analytics tools, so get_task answers "Task not found"
for a saved ID. get_sync_status still counts them; get_task_stats doesn't. Updates
keep an item saved. Completing a saved item is refused, so return it to the
matrix (the four-quadrant board) in the app first. The MCP server can't move an
item to Saved or return one.
Available Tools
A tool marked Requires authentication fails with "Not authenticated as a normal users-collection account" when PocketBase refuses the token (see Troubleshooting). The other tools still answer: they report the problem or make no server call.
get_sync_status
Get sync health information.
Returns:
{
"healthy": true,
"taskCount": 42,
"lastSyncAt": null,
"authenticated": true,
"pocketBaseUrl": "https://[pocketbase-host]"
}
lastSyncAt is always null: the server reads PocketBase directly, so it has no last sync time. taskCount includes Saved items.
authenticated checks the token's expiry date locally. healthy says whether the request to PocketBase succeeded.
The host is redacted so the output is safe to paste into a chat.
get_task_stats
Get task statistics (metadata only).
Returns:
{
"totalTasks": 42,
"activeTasks": 38,
"completedTasks": 4,
"lastUpdated": "2026-10-30T14:00:00.000Z",
"oldestTask": "2026-01-05T09:00:00.000Z",
"newestTask": "2026-10-30T14:00:00.000Z"
}
Counts leave out Saved items. Every field is null if the stats can't be read.
list_tasks (v0.2.0)
List tasks with optional filtering. Saved items are excluded. Requires authentication.
Parameters:
quadrant(optional): Filter by quadrant IDurgent-important(Q1 - Do First)not-urgent-important(Q2 - Schedule)urgent-not-important(Q3 - Delegate)not-urgent-not-important(Q4 - Eliminate)
completed(optional): Filter by completion status (true/false)tags(optional): Array of tags to filter by (matches any; whole-tag match after the server lowercases the filter and strips a leading#)
Returns:
[
{
"id": "task-abc123",
"title": "Finish quarterly report",
"description": "Complete Q4 financial analysis",
"urgent": true,
"important": true,
"quadrant": "urgent-important",
"completed": false,
"dueDate": "2025-01-03T17:00:00.000Z",
"tags": ["work", "finance"],
"subtasks": [
{ "id": "sub-1", "title": "Gather data", "completed": true },
{ "id": "sub-2", "title": "Write analysis", "completed": false }
],
"recurrence": "none",
"dependencies": [],
"createdAt": "2024-12-26T00:00:00.000Z",
"updatedAt": "2024-12-27T00:00:00.000Z"
}
]
The example is abridged. A task also carries its reminder, time-tracking, and top
three fields; src/types.ts has the full shape.
get_task (v0.2.0)
Get a single task by ID. Requires authentication.
Parameters:
taskId(required): The unique ID of the task
Returns: Single task object (same structure as list_tasks). A Saved item answers "Task not found".
search_tasks (v0.2.0)
Search tasks by text query across titles, descriptions, tags, and subtasks. Requires authentication.
Parameters:
query(required): Search text to match
Returns: Array of matching tasks (same structure as list_tasks). Saved items are excluded.
get_top_three
Read-only. Report today's top three: the tasks you picked in an app and the tasks GSD would suggest. Saved items are excluded. Requires authentication.
Parameters:
timeZone(optional): IANA time zone that decides which day is today (e.g.,America/Chicago). Defaults to this machine's zone.
Returns: date, timeZone, picks (the first three of today's picked tasks, in rank order), needsTidy
(true when two picked tasks share a rank or more than three tasks are picked), and suggestions
(up to three tasks). Each task has the same structure as in list_tasks.
No tool writes a pick. Picks appear once you make them in an app. The suggestion
order is in the tool's description in src/tools/schemas/read-tools.ts.
get_productivity_metrics (v0.3.0)
Get comprehensive productivity metrics. Saved items are excluded. Requires authentication.
Returns:
{
"completedToday": 5,
"completedThisWeek": 23,
"completedThisMonth": 87,
"activeStreak": 7,
"longestStreak": 14,
"completionRate": 53,
"quadrantDistribution": {
"urgent-important": 12,
"not-urgent-important": 18,
"urgent-not-important": 5,
"not-urgent-not-important": 3
},
"tagStats": [...],
"overdueCount": 2,
"dueTodayCount": 3,
"dueThisWeekCount": 7,
"noDueDateCount": 15,
"activeTasks": 38,
"completedTasks": 42,
"totalTasks": 80
}
get_quadrant_analysis (v0.3.0)
Analyze task distribution and performance across quadrants. Requires authentication.
Returns:
[
{
"quadrantId": "urgent-important",
"name": "Q1: Do First",
"completionRate": 85,
"totalTasks": 20,
"completedTasks": 17,
"activeTasks": 3
},
...
]
get_tag_analytics (v0.3.0)
Get statistics for all tags with usage and completion rates. Requires authentication.
Parameters:
limit(optional): Maximum number of tags to return (a positive whole number)
Returns:
[
{
"tag": "work",
"count": 35,
"completedCount": 28,
"completionRate": 80
},
...
]
get_upcoming_deadlines (v0.3.0)
Get tasks grouped by deadline urgency. Requires authentication.
Returns:
{
"overdue": [...],
"dueToday": [...],
"dueThisWeek": [...]
}
get_task_insights (v0.3.0)
Generate AI-friendly summary of task insights. Requires authentication.
Returns: Plain text summary: task counts, completion rate, current streak, tasks completed today, overdue and due-today counts, the quadrant with the most active tasks, and the most used tag. The task counts and completion rate always appear. Each other line appears only when its value is above zero.
validate_config (v0.3.0)
Diagnose the server's connection: PocketBase connectivity, authentication, and
task access. It doesn't check environment variables; the --validate CLI does.
Returns:
{
"checks": [
{
"name": "PocketBase Connectivity",
"status": "success",
"details": "Connected to https://[pocketbase-host]"
},
{
"name": "Authentication",
"status": "success",
"details": "Authenticated (42 tasks accessible)"
},
{
"name": "Task Access",
"status": "success",
"details": "Successfully fetched 40 tasks"
}
]
}
The host is redacted so the output is safe to paste into a chat. A token
PocketBase rejects reports "status": "error" with "Token validation failed".
A network failure reports the same text.
Task Access counts exclude Saved items.
get_help (v0.3.2)
Get comprehensive help documentation including available tools, usage examples, and troubleshooting tips.
Parameters:
topic(optional): Filter help by topictools- List all available toolsanalytics- Analytics capabilitiessetup- Setup and configuration guideexamples- Usage examplestroubleshooting- Common issues and solutions
Returns: Markdown-formatted help text
Example Usage:
- "Help me use the GSD MCP server"
- "Show me analytics examples"
- "How do I troubleshoot authentication issues?"
get_token_status (v0.6.0)
Check authentication token status including expiration date, days remaining, and warnings.
Returns:
{
"status": "warning",
"expired": false,
"expiresAt": "2026-11-08T12:00:00.000Z",
"daysRemaining": 5,
"message": "Auth token expires in 5 days. Consider re-authenticating this week.",
"instructions": [
"1. Open the GSD web app you sync with (gsd.vinny.dev for the hosted service) and sign in",
"2. Open Settings → Cloud Sync → Copy auth token",
"3. Update GSD_AUTH_TOKEN in your Claude Desktop config",
"4. Restart Claude Desktop"
]
}
Status Levels (thresholds from src/auth/token-status.ts, in whole days rounded down):
healthy- More than 14 days until expirationwarning- 4-14 days until expirationcritical- 3 days or fewer until expirationexpired- Token has expiredinvalid- No token is configured, or it isn't a PocketBase JWT
Tokens from the hosted server and the Docker image last 30 days. The MCP server never renews its token, so copy a fresh one from the web app before it expires.
Example Usage:
- "Check my token status"
- "Is my authentication about to expire?"
- "Do I need to re-authenticate?"
get_cache_stats (v0.6.0)
Get task cache statistics including hit rate, cache size, and TTL configuration.
Parameters:
reset(optional): If true, reset statistics after retrieving them
Returns:
{
"performance": { "hitRate": "84.0%", "hits": 42, "misses": 8 },
"taskListCache": { "currentSize": 1, "maxEntries": 1000, "ttlSeconds": 30 },
"singleTaskCache": { "currentSize": 0, "maxEntries": 1000, "ttlSeconds": 30 },
"notes": [
"Cache is invalidated after every write operation",
"TTL-based expiration ensures data freshness"
]
}
With reset: true, the response also includes "statsReset": true.
Example Usage:
- "Show me cache performance"
- "What's my cache hit rate?"
- "Reset cache statistics"
Write Operation Tools (v0.4.0, enhanced v0.6.0)
Pacing and the cache
Within each tool call, the write limiter spaces writes 100 ms apart. It retries
a write once after a 429, waiting for PocketBase's Retry-After time or 200 ms.
Reads use a single attempt.
Completing a recurring task adds a second write to create the next instance.
update_task and complete_task retry this write on its own after a 429.
bulk_update_tasks tries each next instance once. If that write fails, the reply
reports the completed task and the missing next instance.
Each write tool clears the task cache after it writes. A bulk call clears it at
the end of the batch. delete_task clears it after the primary delete and again
after dependency cleanup, which drops stale entries cached during cleanup.
A write tool answers some failed PocketBase requests with a short code, such as
Error: rate_limited, in place of a sentence. A bulk result lists the code beside a
task whose write failed.
See Troubleshooting.
create_task
Create a new task from structured fields; the quadrant is derived from urgent and important. Requires authentication.
Parameters:
title(required): Task titleurgent(required): Is this task urgent? (time-sensitive)important(required): Is this task important? (high-value, strategic)description(optional): Task descriptiondueDate(optional): Due date as ISO 8601 datetime string (e.g.,"2025-10-27T17:00:00.000Z")tags(optional): Array of tags (e.g.,["work", "project-alpha"]). The server lowercases them and strips a leading#subtasks(optional): Array of subtask objects{title, completed}recurrence(optional):'none'|'daily'|'weekly'|'monthly'dependencies(optional): Array of task IDs that must be completed firstnotifyBefore(optional): Minutes before the due date to remind you (default 15).0reminds at the due time. To turn reminders off, setnotificationEnabled: falsenotificationEnabled(optional): Whether reminders are on for this task (default: true)estimatedMinutes(optional): Estimated time in whole minutes, 1-10080dryRun(optional): If true, validate and preview without saving (v0.6.0)
http(s) URLs in a new task's title are moved into its description.
Limits: title 80 characters, description 600, at most 20 tags of 30 characters
each, at most 50 subtasks of 100 characters each, at most 50 dependencies.
dueDate must be ISO 8601 with a time zone (Z or an offset).
Returns: The newly created task object with generated ID (or preview if dryRun)
Example:
Create a task:
- Title: "Finish quarterly report"
- Urgent: true
- Important: true
- Due date: Friday at 5pm
- Tags: work, finance
update_task
Update an existing task. All fields except ID are optional. Requires authentication.
Parameters:
id(required): Task ID to updatetitle(optional): New task titledescription(optional): New descriptionurgent(optional): Change urgency (moves between quadrants)important(optional): Change importance (moves between quadrants)dueDate(optional): New due date as ISO 8601 datetime string (empty string to clear)tags(optional): Replace all tagssubtasks(optional): Replace all subtasks (objects with{id, title, completed})recurrence(optional): Change recurrence patterndependencies(optional): Replace all dependencies (validated for circular refs)completed(optional): Mark as complete/incomplete. Completing a recurring task also creates its next instance. Refused for a Saved item.notifyBefore,notificationEnabled,estimatedMinutes(optional): Same ascreate_task, except that an omitted value keeps the stored onedryRun(optional): If true, validate and preview changes without saving (v0.6.0)
The same limits as create_task apply. If the task changes in another app while the
update runs, the update fails with a conflict; re-read the task and retry.
Returns: The updated task object with list of changes (or preview if dryRun)
Example:
Update task abc123:
- Move to "Schedule" quadrant (urgent=false, important=true)
- Set tags: project-alpha, q1-goals
complete_task
Mark a task as complete or incomplete. Quick shortcut for updating completion status. Requires authentication.
Parameters:
id(required): Task IDcompleted(required):trueto mark complete,falseto mark incompletedryRun(optional): If true, preview the change without saving (v0.6.0)
Returns: The updated task object (or preview if dryRun)
Completing a recurring task also creates its next instance, as the apps do, and the response includes it. Daily moves the due date 1 day, weekly 7 days, and monthly 1 month, and the new instance starts with its subtasks unchecked. A dry run previews both. Completing a Saved item is refused.
Example:
Mark task xyz789 as complete
delete_task
Permanently delete a task. This action cannot be undone. Requires authentication.
Parameters:
id(required): Task ID to deletedryRun(optional, defaulttrue): Shows what would be deleted. PassdryRun: falseto delete.
Returns: Confirmation with task title and any affected dependent tasks. Dependency references on other tasks are cleaned up. If a cleanup write fails, the task stays deleted and the reply lists the cleanup errors.
Example:
Delete task def456
⚠️ Warning: A delete is permanent and skips the 30-day Trash on every client
(web, iOS, Android), so it can't be restored. Calls preview by default; pass
dryRun: false to apply.
Confirmation: In a client that supports MCP form elicitation, such as Claude
Code, a dryRun: false delete first asks you to confirm in a dialog that names the
tasks, says how many other tasks depend on them, and says the delete can't be
undone. It deletes only tasks that haven't changed since you confirmed; a task
edited on another device in the meantime is kept. Declining replies Not deleted:
and changes nothing. A client with no one to answer, such as claude -p or an
Agent SDK app without an elicitation handler, declines, so nothing is deleted. A
client without elicitation deletes right away, as before. bulk_update_tasks
deletes work the same way.
Dry-Run Response (plain text):
🔍 DRY RUN - Task would be deleted (not deleted):
Task: "Example Task" (def456)
⚠️ The following tasks depend on this task and would be affected:
- Task that depends on this one
To delete this task, pass dryRun=false explicitly.
bulk_update_tasks
Update multiple tasks at once. Limited to 50 tasks per operation, and 10 per delete, for safety. Requires authentication.
Parameters:
taskIds(required): Array of task IDs to update (max 50, or 10 fordelete)operation(required): Operation object withtypefieldtype: 'complete'- Mark all as complete/incomplete (completing a recurring task also creates its next instance; if any task is Saved, completing refuses the whole batch before any write)completed: boolean
type: 'move_quadrant'- Move all to a quadranturgent: booleanimportant: boolean
type: 'add_tags'- Add tags to all taskstags: string[] (the server lowercases them and strips a leading#)
type: 'remove_tags'- Remove tags from all taskstags: string[] (normalized the same way)
type: 'set_due_date'- Set due date for all tasksdueDate: ISO 8601 datetime string (empty string, or omit it, to clear)
type: 'delete'- Delete all tasks (permanent; skips the 30-day Trash on every client)
dryRun(optional): Preview without saving. Deletes default todryRun: true; passdryRun: falseto apply them.
Returns: A text summary with the updated and deleted counts, the errors, and the conflicts (task IDs skipped because they changed mid-batch), or a preview when dryRun is set.
Examples:
Complete all tasks tagged quick-wins
Move all work tasks to the Schedule quadrant
Add the priority tag to all overdue tasks
Delete all completed tasks from last year
🔒 Safety Features:
- Maximum 50 tasks per operation, and 10 per delete
- An error code or message for each failed task
- Not transactional: each task is written separately. A task that changed since the batch was read is skipped and listed under
conflicts. Failures are listed undererrors, and the rest of the batch still applies. - Two checks run before any write and refuse the whole batch: completing a Saved item, and an
add_tagsthat would leave a task with more than 20 tags.
Privacy & Security
What This Server Can Access (when authenticated):
- ✅ Sync metadata (timestamps, counts, status)
- ✅ Task titles, descriptions, quadrants, tags, due dates
- ✅ Subtasks and task dependencies
- ✅ Can create, update, and delete tasks
Where the data goes: everything a tool returns, including titles, descriptions, tags, subtasks, and due dates, goes to your AI assistant's provider as part of the conversation. The server itself talks only to your PocketBase URL.
Security Model:
- 🔒 PocketBase backend: Tasks stored on the hosted service or your own PocketBase instance
- 🔒 OAuth authentication: PocketBase OAuth2 with Google, Apple, and GitHub providers
- 🔒 API rules: PocketBase enforces owner-based access (
owner = @request.auth.id) - 🛡️ Safety limits: Bulk operations limited to 50 tasks (10 deletes), clear validation
- 🔍 Dry-run mode: Preview write operations before committing
Troubleshooting
"Configuration error: Required environment variables"
- Check that
GSD_POCKETBASE_URLandGSD_AUTH_TOKENare set in your Claude Desktop config - Ensure there are no typos in the environment variable names
"Not authenticated as a normal users-collection account"
- Your auth token expired or was revoked. Sign in to the GSD web app again
- Open Settings → Cloud Sync → MCP access → Copy auth token, then replace
GSD_AUTH_TOKENin your config - Restart Claude Desktop
- On a self-hosted (Docker) server, Sign out of all devices in the web app also ends the auth token you copied for MCP, so copy a new token after you sign out that way
"Cannot reach PocketBase at …"
- The message goes on to say "Your saved credentials were not changed": it's a network or VPN problem, and the token is fine
- Try again once you're back online, or run
gsd-mcp-server --validate
"PocketBase URL must use HTTPS"
- Use an
https://URL. Plainhttp://works only for localhost, 127.0.0.1, or [::1]
"PocketBase superuser tokens are not accepted"
- You pasted an administrator token. Copy the token of a normal signed-in account from the web app instead
"Return this saved item to the matrix before completing it"
- The task is in Saved. Choose Return to matrix in the app, then complete it
"Task … changed between read and write"
- The task changed in another app between the read and the write. Re-read the task and retry
"Error: not_found", "Error: rate_limited", and other short error codes
- A write tool returns one of these codes for some failed requests to PocketBase, reads included. Other failures return a sentence.
src/write-ops/write-rate-limiter.tsmaps each status to its code not_found: PocketBase answered 404. Check thatGSD_POCKETBASE_URLis correct. If it is, the task was deleted while the tool ran, so re-read your tasks and retryrate_limited: wait a few seconds, then retryauthentication_failed: copy a new auth token, as described abovenetwork_errororbackend_unavailable: ensure your PocketBase instance is running and accessible
"Cannot find module" error
- If using an exact installed release: Reinstall that version and rerun
--setup - If using local build:
- Run
npm run buildto compile TypeScript - Check that the path in Claude config is absolute and correct
- Verify that
dist/index.jsexists after building
- Run
Development
Watch Mode (auto-rebuild on changes):
npm run dev
Manual Build:
npm run build
Testing Locally (without Claude Desktop):
export GSD_POCKETBASE_URL="https://api.vinny.io"
export GSD_AUTH_TOKEN="your-auth-token"
npm start
Then send MCP protocol JSON over stdin (advanced).
Publishing to npm: the Publish MCP Server workflow
(.github/workflows/publish-mcp-server.yml in the repository) publishes the package.
No one runs npm publish by hand.
# In packages/mcp-server: update version (patch/minor/major), then merge the change to main
bun run version:patch # or version:minor / version:major
# On main, push a tag that matches the package.json version
git tag mcp-vX.Y.Z
git push origin mcp-vX.Y.Z
The version script changes only package.json. This README, CHANGELOG.md, the
root bun.lock, and a few files of the web app also hold the version, so search the repository for the old
number and update each copy before you tag.
The workflow runs the security audit first. It then checks that the commit is on
main and that the tag matches package.json, and runs the typecheck, tests, and
build before it publishes.
Architecture
packages/mcp-server/
├── skills/ # MCP skills, one folder each: triage, daily-plan, weekly-review, safe-cleanup
├── src/
│ ├── index.ts # CLI entry: parses options, starts the server
│ ├── server/ # Server setup, tool registration, config, startup
│ ├── auth/ # JWT token status
│ ├── pocketbase-client.ts # PocketBase SDK client and principal checks
│ ├── tools.ts # Backward-compatible re-exports
│ ├── analytics.ts, cli.ts, write-ops.ts # Re-exports from the folders below
│ ├── cache.ts # TTL-based in-memory cache
│ ├── dependencies.ts # Circular dependency validation
│ ├── top-three.ts # Top three picks and suggestions
│ ├── types.ts # Task types and PocketBase record mapping
│ ├── constants.ts # Payload limits shared with the web app
│ ├── errors.ts # Typed errors (ConflictError, SuperuserPrincipalError)
│ ├── version.ts # Package version read at runtime
│ ├── text/ # Capture-parser mirror (URL extraction), tag normalization
│ ├── utils/ # Logger
│ ├── api/ # Host redaction; legacy HTTP client and retry (unused by tools)
│ ├── tools/
│ │ ├── list-tasks.ts, get-task.ts, search-tasks.ts, sync-status.ts # Read functions
│ │ ├── prompts.ts # Built-in prompt templates
│ │ ├── handlers/ # Tool request handlers
│ │ │ ├── index.ts # Handler dispatcher
│ │ │ ├── input-schemas.ts # Zod validation of tool arguments
│ │ │ ├── types.ts
│ │ │ ├── read-handlers.ts
│ │ │ ├── top-three-handler.ts
│ │ │ ├── write-handlers.ts
│ │ │ ├── analytics-handlers.ts
│ │ │ └── system-handlers.ts
│ │ └── schemas/ # MCP tool schemas (20 tools)
│ │ ├── index.ts
│ │ ├── read-tools.ts # 7 read tools
│ │ ├── write-tools.ts # 5 write tools
│ │ ├── analytics-tools.ts # 5 analytics tools
│ │ └── system-tools.ts # 3 system tools
│ ├── write-ops/ # Write operations (v0.6.0)
│ │ ├── types.ts # Input/output types
│ │ ├── helpers.ts # ID generation, PocketBase writes
│ │ ├── task-operations.ts # CRUD with dry-run
│ │ ├── bulk-operations.ts # Bulk updates
│ │ ├── recurrence.ts # Next instance of a recurring task
│ │ ├── dependency-cleanup.ts # Dependency cleanup after a delete
│ │ └── write-rate-limiter.ts # Write pacing, 429 retry, error codes
│ ├── analytics/ # Analytics calculations
│ └── cli/ # Setup wizard, validation
├── dist/ # Compiled JavaScript (generated)
├── package.json
├── tsconfig.json
├── README.md # This file
├── CHANGELOG.md # Release history
├── QUICKSTART.md # Quick setup guide (in the repo, not the npm package)
└── TESTING.md # Testing procedures (in the repo, not the npm package)
Tech Stack:
@modelcontextprotocol/server- MCP protocol implementation (TypeScript SDK v2)zod- Runtime schema validationtypescript- Type safetypocketbase- PocketBase JS SDKvitest- Testing framework
Communication Flow:
Claude Desktop
↓ MCP Protocol (stdio)
GSD MCP Server
↓ PocketBase JS SDK (HTTPS)
PocketBase (hosted or self-hosted)
↓ SQLite
Tasks (owner-scoped; encrypted at rest on the Docker image; on the hosted
server, at-rest protection depends on the server's configuration)
Contributing
This is an experimental feature. Feedback and contributions welcome!
- Test the PoC and report issues
- Suggest additional tools/features
- Submit PRs for enhancements
License
MIT - Same as GSD Task Manager
Current release: 2.0.0. See CHANGELOG.md for every release.
Package contract
This section states the package's contract for developers and AI assistants who change the code. The source contracts start at src/README.md.
Interface
- Executable:
package.jsonbinmapsgsd-mcp-servertodist/index.js, compiled fromsrc/index.ts. - Flags:
--setup,--validate,--help, and-h(src/cli/index.ts:parseCLIArgs). No flag starts the MCP server on stdio. - Environment variables:
GSD_POCKETBASE_URLandGSD_AUTH_TOKEN(src/server/config.ts:loadConfig). - Optional environment variables:
LOG_LEVELandNODE_ENVturn on debug logging (src/utils/logger.ts:createMcpLogger). On Windows,APPDATAlocates the Claude Desktop config file (src/cli/index.ts:getClaudeConfigPath). - MCP requests:
ListToolsRequestSchema,CallToolRequestSchema,ListPromptsRequestSchema, andGetPromptRequestSchema(src/server/setup.ts:registerHandlers). - Read tools (
src/tools/schemas/read-tools.ts:readTools):get_sync_status,get_task_stats,list_tasks,get_task,search_tasks,get_token_status,get_top_three. - Analytics tools (
src/tools/schemas/analytics-tools.ts:analyticsTools):get_productivity_metrics,get_quadrant_analysis,get_tag_analytics,get_upcoming_deadlines,get_task_insights. - Write tools (
src/tools/schemas/write-tools.ts:writeTools):create_task,update_task,complete_task,delete_task,bulk_update_tasks. - System tools (
src/tools/schemas/system-tools.ts:systemTools):validate_config,get_help,get_cache_stats. - Prompts (
src/tools/prompts.ts:allPrompts):daily-standup,weekly-review,focus-mode,upcoming-deadlines,productivity-report,tag-analysis. - Skills (
skills/, loaded bysrc/server/skills.ts:loadGsdSkills):daily-plan,safe-cleanup,triage,weekly-review. - Module exports:
package.jsonexportsmaps.todist/index.jsand./typestodist/types.js. src/index.tsexports no symbols. It runsmain()when loaded.- Runtime dependencies (
package.json):@modelcontextprotocol/server2.4.0,pocketbase0.29.0,zod4.6.7. - Local scripts in this directory:
decode-jwt.cjs,test-env-vars.js, andtest-in-claude.sh.package.jsonfilesleaves them out of the published package.
Invariants
- Stdout carries JSON-RPC frames in server mode. Diagnostic output goes to stderr only (
src/server/startup.tsmodule comment,src/utils/logger.ts:writeLog). - Startup depends only on local state, so a PocketBase outage does not stop tool registration (
src/server/startup.tsmodule comment). - The PocketBase URL uses HTTPS, or
httpto a loopback host, with no credentials, query, or fragment (src/server/config.ts:isSafePocketBaseUrl). - A PocketBase superuser token is refused before any request (
src/server/config.ts:isSuperuserAuthToken,src/pocketbase-client.ts:getPocketBase). - Every tool call passes Zod validation before its handler runs (
src/tools/handlers/index.ts:createToolRunner). - The server advertises 20 tools, and the dispatcher handles the same 20 names (
src/tools/schemas/index.ts:allTools,src/tools/handlers/input-schemas.ts:toolArgSchemas). - Field limits come from one constant (
src/constants.ts:SCHEMA_LIMITS): title 80, description 600, tag 30, 20 tags, 50 subtasks, 50 dependencies. - A bulk call accepts at most 50 task IDs, and a bulk delete at most 10 (
src/write-ops/bulk-operations.ts:validateBulkRequest). delete_taskand a bulkdeleteare dry runs unless the caller passesdryRun: false(src/write-ops/task-operations.ts:deleteTask,src/write-ops/bulk-operations.ts:bulkUpdateTasks).- An update or delete fails with
ConflictErrorif the record changed since the read (src/write-ops/task-operations.ts:assertFreshUpdatePreflight,deletePrimaryTask). - An empty listing or a 404 counts only after
confirmUsersPrincipalsucceeds (src/tools/list-tasks.ts:fetchTasks,src/write-ops/helpers.ts:isConfirmedNotFound). - The build is strict TypeScript (
tsconfig.jsonstrict: true), and it leaves test files out ofdist. - Coverage minimums are 80% statements, 75% branches, 80% functions, and 80% lines (
vitest.config.tscoverage.thresholds). src/write-ops/**needs 98% statements, 95% branches, 100% functions, and 98% lines (vitest.config.tscoverage.thresholds).- The package needs Node 22 or later (
package.jsonengines). - The server speaks MCP 2026-07-28, and 2025-11-25 to a client that opens with a 2025
initialize(src/server/startup.ts:startMcpServer,serveStdio). - A skills problem logs a warning to stderr and never stops the tools (
src/server/skills.ts:loadGsdSkills).
Side Effects
- Network: the server calls the PocketBase URL through the PocketBase SDK (
src/pocketbase-client.ts:getPocketBase). The setup wizard and--validatealso send a GET to/api/health. - PocketBase writes: creates, updates, and deletes records in the
taskscollection (src/write-ops/helpers.ts). - PocketBase auth: calls
authRefreshon theuserscollection (src/pocketbase-client.ts:refreshPrincipal). - Disk: the setup wizard writes
~/.gsd-mcp-setup.jsonwith mode0o600(src/cli/setup-wizard.ts:writeConfigurationFile). The file holds the plaintext token. - Disk: server startup deletes
~/.gsd-mcp-setup.jsonif it exists (src/server/startup.ts:prepareStartup). - Disk: the version module reads
package.jsonat load (src/version.ts:readVersion). - Disk: server startup reads the package's
skills/folder once (src/server/skills.ts:loadGsdSkills). - Process state: a task cache singleton and a PocketBase client singleton live for the life of the process (
src/cache.ts:cacheInstance,src/pocketbase-client.ts:pbInstance). - Streams: server mode uses stdin and stdout for JSON-RPC and stderr for logs. Setup, validate, and help modes print to stdout. A setup failure and a fatal error print to stderr (
src/cli/setup-wizard.ts:runSetupWizard,src/index.ts). - Exit codes:
src/index.ts:mainexits with 0 after help, setup, or validate, and with 1 on a startup failure. decode-jwt.cjsreads the Claude Desktop config file and prints the decoded token payload to stdout.test-in-claude.shrunsnpm run buildand writes a backup copy of the Claude Desktop config file.
Verification
- Run:
bun run --cwd packages/mcp-server test