UNPKG

xc-mcp

Version:

MCP server that wraps Xcode command-line tools for iOS/macOS development workflows

46 lines 3.47 kB
/** * Get Xcode and SDK version information with structured output * * **What it does:** * Retrieves comprehensive version information about your Xcode installation and available SDKs. * Returns structured JSON data that's easy to parse and validate, eliminating the need to parse * raw command-line output. Validates Xcode installation before execution to provide clear * error messages if Xcode is not properly configured. * * **Why you'd use it:** * - Validate environment before running builds or tests (CI/CD validation) * - Check SDK availability for specific platform versions * - Ensure consistent Xcode versions across team or build environments * - Get structured version data for automated tooling and scripts * * **Parameters:** * - sdk (string, optional): Query specific SDK version (e.g., "iphoneos", "iphonesimulator") * - outputFormat (string, optional): "json" (default) or "text" output format * * **Returns:** * Structured JSON response containing Xcode version, build number, and SDK information. * Falls back gracefully to text format for older Xcode versions that don't support JSON output. * * **Example:** * ```typescript * // Get Xcode version as JSON * const result = await xcodebuildVersionTool({ outputFormat: "json" }); * * // Query specific SDK * const sdkInfo = await xcodebuildVersionTool({ sdk: "iphoneos" }); * ``` * * **Full documentation:** See src/tools/xcodebuild/version.md for detailed parameters * * @param args Tool arguments containing sdk and outputFormat * @returns Tool result with version information */ export declare function xcodebuildVersionTool(args: any): Promise<{ content: { type: "text"; text: string; }[]; }>; export declare const XCODEBUILD_VERSION_DOCS = "\n# xcodebuild-version\n\n\u26A1 **Get Xcode and SDK version information** with structured output\n\n## What it does\n\nRetrieves comprehensive version information about your Xcode installation and available SDKs. Returns structured JSON data that's easy to parse and validate, eliminating the need to parse raw command-line output. Validates Xcode installation before execution to provide clear error messages if Xcode is not properly configured.\n\n## Why you'd use it\n\n- Validate environment before running builds or tests (CI/CD validation)\n- Check SDK availability for specific platform versions\n- Ensure consistent Xcode versions across team or build environments\n- Get structured version data for automated tooling and scripts\n\n## Parameters\n\n### Optional\n- **sdk** (string): Query specific SDK version (e.g., \"iphoneos\", \"iphonesimulator\")\n- **outputFormat** (string, default: 'json'): \"json\" or \"text\" output format\n\n## Returns\n\nStructured JSON response containing Xcode version, build number, and SDK information. Falls back gracefully to text format for older Xcode versions that don't support JSON output.\n\n## Examples\n\n### Get Xcode version as JSON\n```typescript\nconst result = await xcodebuildVersionTool({ outputFormat: \"json\" });\n```\n\n### Query specific SDK\n```typescript\nconst sdkInfo = await xcodebuildVersionTool({ sdk: \"iphoneos\" });\n```\n\n## Related Tools\n\n- xcodebuild-showsdks: Show all available SDKs\n- xcodebuild-list: List project information\n"; export declare const XCODEBUILD_VERSION_DOCS_MINI = "Get Xcode and SDK version info. Use rtfm({ toolName: \"xcodebuild-version\" }) for docs."; //# sourceMappingURL=version.d.ts.map