AppKit Inspector
Lets Codex inspect a live macOS AppKit interface through a debug-only bridge, without Accessibility or Screen Recording permissions, and maps clicks to NSViews with hierarchy and geometry details.
README
AppKit Inspector
AppKit Inspector is a Debug-only bridge for inspecting a live native macOS AppKit interface from
Codex. It captures the application's content view in-process, maps a clicked point to its NSView,
shows hierarchy and geometry, and prepares precise visual feedback for a coding task.
Public Preview: APIs, plugin packaging, and presentation behavior may change before 1.0. Codex Browser is the supported default surface. Fullscreen remains experimental and disabled by default.
Features
- Inspect a real AppKit window without Accessibility or Screen Recording permission.
- Click the captured interface and identify the deepest native
NSView. - Review class names, frames, accessibility metadata, and ancestor paths.
- Copy a feedback package containing the selected view, geometry, note, and private local artifacts.
- Keep discovery and transport authenticated on
127.0.0.1. - Compile the probe out of active Release behavior with
#if DEBUG.
Requirements
- macOS 14 or later;
- Xcode 26 or later with Swift 6.2;
- Node.js 22 or later;
- a current Codex desktop installation for the plugin workflow.
Quick start
Clone and verify the project:
git clone https://github.com/JaminZhou/AppKitInspector.git
cd AppKitInspector
npm ci
npm run check
Install the cloned repository as a local Codex marketplace and enable the plugin:
codex plugin marketplace add "$PWD"
codex plugin add appkit-inspector@appkit-inspector-dev
Start the included AppKit demo:
make demo
Start a new Codex task so it loads the newly installed MCP tools, then ask:
Use AppKit Inspector to connect to the running demo and open it in Codex Browser. The workflow
explicitly presents the right Browser panel after navigation. In the Inspector, use **Fit**, **−**,
and **+** to resize the snapshot; trackpad pinch and Command-modified scrolling also zoom.
The default open_appkit_inspector tool creates a 60-second, single-use loopback URL for the
current task's right Browser panel. It never requests fullscreen or invokes the system browser
automatically. The external browser window is an explicit fallback.
Add the probe to an AppKit project
Add the package in Xcode with:
https://github.com/JaminZhou/AppKitInspector.git
Or declare it in Package.swift:
.package(
url: "https://github.com/JaminZhou/AppKitInspector.git",
from: "0.1.1"
)
Add AppKitInspectorProbe only to a Debug target or Debug configuration, then start it after the
application has launched:
#if DEBUG
import AppKitInspectorProbe
_ = try? AppKitInspectorProbe.start()
#endif
Never add or start the probe in Release, archive, TestFlight, or App Store builds.
Presentation modes
- Codex Browser: default and supported.
- External local window: explicit fallback opened in the system default browser.
- MCP App fullscreen: experimental, disabled by default, and available only when the MCP server
starts with
APPKIT_INSPECTOR_EXPERIMENTAL_FULLSCREEN=1.
No presentation failure automatically opens another window.
Repository layout
native/— reusable Swift probe, demo application, and native tests.packages/mcp/— local MCP server, discovery, and authenticated transport.packages/app/— Inspector browser interface and local client.plugins/appkit-inspector/— installable Codex plugin, generated distribution, and skill.TODO.md— deferred work and experimental fullscreen acceptance.
Development
npm ci
npm run check
swift build -c release
For a live bridge check, run make demo in one terminal and npm run test:live in another. After
changing packages/app/ or packages/mcp/, run npm run build and include the matching generated
files under plugins/appkit-inspector/dist/.
Security and privacy
The probe and Inspector servers bind only to loopback, require random credentials, and write user-private discovery data. Codex Browser launch links are single-use and become HttpOnly, same-site sessions. The project uses public AppKit and Foundation APIs and does not use injection, Accessibility automation, private frameworks, or Screen Recording.
Captured screenshots, hierarchy data, notes, and review artifacts are sensitive. When used through Codex they may become part of the Codex task under the user's product and workspace data controls. Read SECURITY.md before integrating the probe and use private security advisories for vulnerability reports.
Contributing
See CONTRIBUTING.md. Contributions intentionally submitted to the project are licensed under Apache License 2.0.
License
Copyright 2026 Jamin Zhou.
Licensed under the Apache License, Version 2.0. Bundled dependency attributions are documented in THIRD_PARTY_NOTICES.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。