
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@mtop-devtools/native-host
Advanced tools
Native Messaging Host for Mtop DevTools — bridges Chrome Extension and local socket server
Mtop DevTools 的 Native Messaging Host —— 桥接 Chrome 扩展与本地 socket 服务。
浏览器扩展通过 chrome.runtime.connectNative() 拉起本进程;进程对内通过 CDP(Chrome DevTools Protocol)与浏览器交互,对外通过 Unix Socket 暴露给 @mtop-devtools/client 等本地调用方,并可作为云端链路的本地落点。
注册 Native Messaging Host manifest(让浏览器能够拉起本进程):
# 同时注册 Skills 与 MCP 两种集成模式(默认)
mtop-devtools-native-host --init
# 仅注册某一种模式
mtop-devtools-native-host --init --mode skills
mtop-devtools-native-host --init --mode mcp
# 指定自定义扩展 ID(开发版)
mtop-devtools-native-host --init --extension-id <your-extension-id>
Skills 与 MCP 两个 host 运行同一份二进制、共享同一个 Unix socket,因此可同时启用。
也可在代码中调用安装入口:
import { installNativeHost } from '@mtop-devtools/native-host';
await installNativeHost(); // 默认注册两种模式
运行时入口(被浏览器拉起、或手动启动)通过子路径导出:
import '@mtop-devtools/native-host/runtime';
mtop-devtools-native-host [options]
--init [--mode <skills|mcp|both>] [--extension-id <id>] 注册 host manifest
--version, -v 查看版本
--help, -h 查看帮助
Chrome Extension
↓ (Native Messaging)
@mtop-devtools/native-host ← CDP → Chrome
↓ (Unix Socket)
@mtop-devtools/client / @mtop-devtools/cloud-connector
pnpm build # esbuild 打包到 dist/(内联 browser-core / daemon-core)
pnpm typecheck # 仅类型检查
ISC
FAQs
Native Messaging Host for Mtop DevTools — bridges Chrome Extension and local socket server
The npm package @mtop-devtools/native-host receives a total of 46 weekly downloads. As such, @mtop-devtools/native-host popularity was classified as not popular.
We found that @mtop-devtools/native-host demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.