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

15 lines (14 loc) 468 B
import { z } from 'zod'; import { getTodayCompletedTasks } from '../primitives/getTodayCompletedTasks.js'; export const schema = z.object({ limit: z.number().min(1).max(100).default(20).optional().describe('返回的最大任务数量 (默认: 20)') }); export async function handler(args) { const { limit } = args; const result = await getTodayCompletedTasks({ limit }); return { content: [{ type: "text", text: result }] }; }