feat(cdp): Add Chrome DevTools Protocol support for AI-assisted debugging#1002
Merged
kuishou68 merged 14 commits intoiOfficeAI:mainfrom Mar 3, 2026
Merged
feat(cdp): Add Chrome DevTools Protocol support for AI-assisted debugging#1002kuishou68 merged 14 commits intoiOfficeAI:mainfrom
kuishou68 merged 14 commits intoiOfficeAI:mainfrom
Conversation
Collaborator
Author
420d8f7 to
09b8c68
Compare
09b8c68 to
eb6ffb1
Compare
404678a to
8b7593a
Compare
Collaborator
Author
|
@kaizhou-lab 已经rebase了,看看还有哪些需要调整 |
8b7593a to
da7b4f7
Compare
Collaborator
|
@loonghao Thanks for the CDP support! A few issues need to be resolved: Blocking
Warning
|
da7b4f7 to
61a9a7b
Compare
…e file - Add isDevMode field to CdpStatus/ICdpStatus interfaces, backed by app.isPackaged, so the renderer can gate developer-only UI - Move CDP container (title + CdpSettings) into the CdpSettings component and return null when isDevMode is false, hiding the entire block in packaged builds - Extract CDP documentation from both READMEs into docs/cdp.md - Update unit tests to cover the new isDevMode property
31cc28f to
38cd9fd
Compare
kuishou68
approved these changes
Mar 3, 2026
4 tasks
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
This PR introduces Chrome DevTools Protocol (CDP) support to AionUi, enabling seamless integration with AI-powered development tools through the Model Context Protocol (MCP).
What is CDP and Why It Matters for Developers
Chrome DevTools Protocol (CDP) is a powerful debugging protocol that allows external tools to inspect, debug, and control Chrome/Electron applications. For AionUi users, this means:
Changes
CDP Infrastructure (
src/utils/configureChromium.ts)~/.aionui-cdp-registry.json)AIONUI_CDP_PORT)Settings UI (
src/renderer/components/SettingsModal/contents/SystemModalContent.tsx)Bug Fix (
src/channels/plugins/telegram/TelegramPlugin.ts)bot.start()lifecycleDocumentation
docs/cdp.md- Standalone CDP documentation (bilingual EN/CN)How to Use
Development Mode
CDP is enabled by default when running
just devon port 9230.Production Mode
~/.cursor/mcp.json~/.claude/settings.jsonMCP Configuration Example
{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": [ "-y", "chrome-devtools-mcp@latest", "--browser-url=http://127.0.0.1:9230" ] } } }Documentation
Full documentation available at
docs/cdp.mdTesting