UNPKG

omnifocus-mcp-enhanced

Version:

🚀 NEW: Native Custom Perspective Access! Enhanced MCP server with OmniFocus custom perspective support, hierarchical task display, AI-optimized tool selection, and comprehensive task management

29 lines (28 loc) • 894 B
import { z } from 'zod'; import { getInboxTasks } from '../primitives/getInboxTasks.js'; export const schema = z.object({ hideCompleted: z.boolean().optional().describe("Set to false to show completed tasks in inbox (default: true)") }); export async function handler(args, extra) { try { const result = await getInboxTasks({ hideCompleted: args.hideCompleted !== false // Default to true }); return { content: [{ type: "text", text: result }] }; } catch (err) { const errorMessage = err instanceof Error ? err.message : 'Unknown error occurred'; return { content: [{ type: "text", text: `Error getting inbox tasks: ${errorMessage}` }], isError: true }; } }