xc-mcp
Version:
MCP server that wraps Xcode command-line tools for iOS/macOS development workflows
20 lines • 2.87 kB
TypeScript
/**
* Unified IDB target management - discover, describe, focus, and manage connections.
*
* Routes IDB operations (list, describe, focus, connect, disconnect) to specialized
* handlers while maintaining modular code organization.
*
* @param args Target operation and parameters
* @returns Tool result with operation status
* @throws McpError for invalid operation or execution failure
*/
export declare function idbTargetsRouter(args: any): Promise<{
content: {
type: "text";
text: string;
}[];
isError: boolean;
}>;
export declare const IDB_TARGETS_DOCS = "\n# idb-targets\n\nUnified IDB target management - discover, inspect, focus, and manage connections.\n\n## Overview\n\nSingle tool for IDB target discovery and connection management. Routes to specialized handlers while maintaining clean operation semantics.\n\n## Operations\n\n### list\n\nList all available IDB targets.\n\n**Parameters:**\n- `state` (string, optional): Filter by state - 'Booted' or 'Shutdown'\n- `type` (string, optional): Filter by type - 'device' or 'simulator'\n\n**Example:**\n```typescript\nawait idbTargetsToolUnified({\n operation: 'list',\n state: 'Booted'\n})\n```\n\n**Returns:**\nList of targets with metadata, state, and type information.\n\n---\n\n### describe\n\nGet detailed information about a specific target.\n\n**Parameters:**\n- `udid` (string): Target UDID\n\n**Example:**\n```typescript\nawait idbTargetsToolUnified({\n operation: 'describe',\n udid: 'ABC-123-DEF'\n})\n```\n\n**Returns:**\nDetailed target information including screen dimensions, device model, iOS version.\n\n---\n\n### focus\n\nFocus simulator window for interactive testing.\n\n**Parameters:**\n- `udid` (string): Simulator UDID\n\n**Example:**\n```typescript\nawait idbTargetsToolUnified({\n operation: 'focus',\n udid: 'ABC-123-DEF'\n})\n```\n\n---\n\n### connect\n\nEstablish IDB companion connection to target.\n\n**Parameters:**\n- `udid` (string, optional): Target UDID - auto-detects if omitted\n\n**Example:**\n```typescript\nawait idbTargetsToolUnified({\n operation: 'connect',\n udid: 'ABC-123-DEF'\n})\n```\n\n**Notes:**\nEstablishes persistent gRPC connection for faster subsequent operations. Useful for warming up connections before automated testing.\n\n---\n\n### disconnect\n\nClose IDB companion connection to target.\n\n**Parameters:**\n- `udid` (string, optional): Target UDID\n\n**Example:**\n```typescript\nawait idbTargetsToolUnified({\n operation: 'disconnect',\n udid: 'ABC-123-DEF'\n})\n```\n\n---\n\n## Related Tools\n\n- `idb-app`: App management on IDB targets\n- `idb-ui-tap`, `idb-ui-input`, `idb-ui-gesture`: UI automation on targets\n";
export declare const IDB_TARGETS_DOCS_MINI = "Manage IDB targets (list/describe/connect). Use rtfm({ toolName: \"idb-targets\" }) for docs.";
//# sourceMappingURL=index.d.ts.map