xc-mcp
Version:
MCP server that wraps Xcode command-line tools for iOS/macOS development workflows
45 lines • 3.29 kB
TypeScript
/**
* Show all available SDKs for iOS, macOS, watchOS, and tvOS development
*
* **What it does:**
* Lists all SDKs available in your Xcode installation for building apps across Apple platforms.
* Returns structured JSON data instead of raw CLI text, making it easy to parse and validate
* SDK availability. Smart caching prevents redundant SDK queries, improving performance for
* repeated lookups. Validates Xcode installation before execution.
*
* **Why you'd use it:**
* - Verify SDK availability before starting builds (prevent build failures)
* - Discover which platform versions are supported by your Xcode installation
* - Validate CI/CD environment has required SDKs installed
* - Get structured SDK data for automated build configuration
*
* **Parameters:**
* - outputFormat (string, optional): "json" (default) or "text" output format
*
* **Returns:**
* Structured JSON containing all available SDKs organized by platform (iOS, macOS, watchOS,
* tvOS). Each SDK entry includes platform name, version, and SDK identifier. Smart caching
* reduces query overhead for repeated lookups.
*
* **Example:**
* ```typescript
* // Get available SDKs as JSON
* const sdks = await xcodebuildShowSDKsTool({ outputFormat: "json" });
*
* // Get raw text output
* const sdksText = await xcodebuildShowSDKsTool({ outputFormat: "text" });
* ```
*
* **Full documentation:** See src/tools/xcodebuild/showsdks.md for detailed parameters
*
* @param args Tool arguments containing outputFormat
* @returns Tool result with available SDK information
*/
export declare function xcodebuildShowSDKsTool(args: any): Promise<{
content: {
type: "text";
text: string;
}[];
}>;
export declare const XCODEBUILD_SHOWSDKS_DOCS = "\n# xcodebuild-showsdks\n\n\u26A1 **Show available SDKs** for iOS, macOS, watchOS, and tvOS\n\n## What it does\n\nLists all SDKs available in your Xcode installation for building apps across Apple platforms. Returns structured JSON data instead of raw CLI text, making it easy to parse and validate SDK availability. Smart caching prevents redundant SDK queries, improving performance for repeated lookups. Validates Xcode installation before execution.\n\n## Why you'd use it\n\n- Verify SDK availability before starting builds (prevent build failures)\n- Discover which platform versions are supported by your Xcode installation\n- Validate CI/CD environment has required SDKs installed\n- Get structured SDK data for automated build configuration\n\n## Parameters\n\n### Optional\n- **outputFormat** (string, default: 'json'): \"json\" or \"text\" output format\n\n## Returns\n\nStructured JSON containing all available SDKs organized by platform (iOS, macOS, watchOS, tvOS). Each SDK entry includes platform name, version, and SDK identifier. Smart caching reduces query overhead for repeated lookups.\n\n## Examples\n\n### Get available SDKs as JSON\n```typescript\nconst sdks = await xcodebuildShowSDKsTool({ outputFormat: \"json\" });\n```\n\n### Get raw text output\n```typescript\nconst sdksText = await xcodebuildShowSDKsTool({ outputFormat: \"text\" });\n```\n\n## Related Tools\n\n- xcodebuild-version: Get Xcode version information\n- xcodebuild-build: Build with specific SDK\n";
//# sourceMappingURL=showsdks.d.ts.map