Skip to main content
Glama

OmniFocus MCP Enhanced

by jqlts1
getInboxTasks.tsโ€ข924 B
import { z } from 'zod'; import { getInboxTasks } from '../primitives/getInboxTasks.js'; import { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.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: z.infer<typeof schema>, extra: RequestHandlerExtra) { try { const result = await getInboxTasks({ hideCompleted: args.hideCompleted !== false // Default to true }); return { content: [{ type: "text" as const, text: result }] }; } catch (err: unknown) { const errorMessage = err instanceof Error ? err.message : 'Unknown error occurred'; return { content: [{ type: "text" as const, text: `Error getting inbox tasks: ${errorMessage}` }], isError: true }; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jqlts1/omnifocus-mcp-enhanced'

If you have feedback or need assistance with the MCP directory API, please join our Discord server