get_status
Retrieve the current task and task-count status from your Super Productivity system. Check active task details and total task numbers to stay organized.
Instructions
Returns the current task and task-count status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tasks.ts:134-142 (handler)The MCP tool handler for 'get_status'. It has no required parameters (empty schema {}) and calls SpClient.getStatus() to fetch the current task and task count, then returns the result as JSON.
server.tool( "get_status", "Returns the current task and task-count status.", {}, async () => { const status = await SpClient.getStatus(); return ok(status); } ); - src/sp-client.ts:52-55 (schema)The StatusSchema Zod schema used to validate the API response for /status. It validates currentTask (nullable Task) and taskCount (nullable number).
const StatusSchema = z.object({ currentTask: TaskSchema.nullish(), taskCount: z.number().nullish(), }).passthrough(); - src/sp-client.ts:267-269 (helper)The SpClient.getStatus() method that makes the actual HTTP GET request to /status on the Super Productivity local API, returning a typed Status object.
getStatus(): Promise<Status> { return request("/status", StatusSchema); }, - src/index.ts:16-16 (registration)The tool is registered indirectly via registerTaskTools(server) which is called during server initialization.
registerTaskTools(server);