Add CocoaPods support for LookInside libraries#29
Open
wangwanjie wants to merge 17 commits into
Open
Conversation
4811bff to
56d2774
Compare
Introduce `lookinside-mcp`, an optional MCP server that lets AI agents inspect a running Debug build's UI through the same Peertalk plumbing the macOS app uses — hierarchy, search, element details, screenshots, highlight, layout/accessibility diagnostics, and a one-shot bug report. Two new SPM units: LookinMCPCore (headless inspection client, JSON shaping, diagnostics, secure-text redaction) and lookinside-mcp (executable using modelcontextprotocol/swift-sdk over stdio). Reuses LookinCore data models and the existing in-app LookinServer; license gate is bypassed because it is enforced client-side, not by the in-process server.
Codex CLI and Claude Code both use the canonical `<cli> mcp add <name> [--env K=V] -- <command> [args]` form. The previous claude-code snippet omitted the `--` separator, which works in practice but isn't the documented syntax. Aligns both clients on the same shape and documents the env-var passthrough.
Add three hierarchy right-click items in the macOS client: - "Export node analysis data (incl. children)…" — recursive subtree as MCP-format JSON - "Export this node's analysis data…" — single node only - "Copy property data" — dashboard attributes as readable text to the pasteboard New LKMCPNodeExporter reimplements the Swift JSONShape.Node schema in ObjC (oid/className/role/frame/bounds/alpha/hidden/text/accessibility*/path/children) plus a full per-node `attributes` dump; exports go through an NSSavePanel. Register the files in the Xcode synchronized-group membership lists and add zh-Hans localizations for the new menu strings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification