UNPKG

@kimsungwhee/apple-docs-mcp

Version:

MCP server for Apple Developer Documentation - Search iOS/macOS/SwiftUI/UIKit docs, WWDC videos, Swift/Objective-C APIs & code examples in Claude, Cursor & AI assistants

9 lines 722 B
import { z } from 'zod'; import { API_LIMITS } from '../utils/constants.js'; export const getSampleCodeSchema = z.object({ framework: z.string().optional().describe('Filter by framework name (e.g., "SwiftUI", "UIKit", "CoreML")'), beta: z.enum(['include', 'exclude', 'only']).default('include').describe('Beta sample handling (include=show all, exclude=hide beta, only=beta only)'), searchQuery: z.string().optional().describe('Search for specific keywords in sample code titles or descriptions'), limit: z.number().min(1).max(API_LIMITS.MAX_SAMPLE_CODE_LIMIT).default(API_LIMITS.DEFAULT_SAMPLE_CODE_LIMIT).describe('Maximum number of results to return'), }); //# sourceMappingURL=sample-code.schema.js.map