`prompuff` as the native messaging host, and Connect a browser in Settings
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- csharp, linux, macos
调研方向
Start with src/Prompuff.Cli/CliApp.cs and src/Prompuff.Cli/McpServerHost.cs to understand the existing stdio protocol, then read src/Prompuff.Cli/CliLibrary.cs and the platform installer and single instance files named in the issue. Implementing this spans the host protocol, browser registration across platforms, cleanup, and app integration. Done means the framed host tests pass, connecting and undoing works on the listed browsers and platforms, and docs/user-guide.md explains setup.
由索引模型根据 Issue 内容生成。
描述
The extension (#44, #45) talks to the library through native messaging: the browser starts a program and exchanges length-prefixed JSON with it over stdin and stdout. That program is the prompuff command, which already opens the library by the app's rules and speaks MCP over stdio.
What to do
- Add a host mode to
prompuff. Chrome and Edge pass the caller's origin as an argument, and Firefox passes the manifest path and the extension ID. The host searches, gets and renders prompts, sends text to Quick save in the running app, and does nothing else. - The host's manifest allows only Prompuff's own extension IDs (
allowed_origins,allowed_extensions). - Connect a browser in Settings › Integrations writes the manifest into the browser's own folders, and can undo it:
- Windows: a registry key under
HKCU\Software\Google\Chrome\NativeMessagingHosts,HKCU\Software\Microsoft\Edge\NativeMessagingHostsandHKCU\Software\Mozilla\NativeMessagingHosts, pointing at a manifest in Prompuff's data folder. Registry code stays insrc/Prompuff.App/Platform, behindOperatingSystem.IsWindows(). - Linux and macOS: the manifest file in each browser's
NativeMessagingHostsfolder.
- Windows: a registry key under
- Writing into browser folders is outside Prompuff's own folders, so it's a step the user starts. Add it to the exception in AGENTS.md's cross-platform rules. Velopack's uninstall hook removes it on Windows.
- The host opens no network connection and never logs titles, bodies or values.
Where to look
src/Prompuff.Cli/CliApp.csandsrc/Prompuff.Cli/McpServerHost.cs: another stdio protocol in the same programsrc/Prompuff.Cli/CliLibrary.cs: opening the librarysrc/Prompuff.App/Platform/CommandLineInstaller.cs: the install, remove and uninstall-hook patternsrc/Prompuff.App/Platform/SingleInstance.cs: how a second process reaches the running app
Done when
- Tests drive the host with framed messages and cover a bad frame, an unknown origin and an oversized message.
- Connect a browser works for Chrome, Edge and Firefox on Windows and in WSLg, and undoing it removes every file and key it wrote.
-
docs/user-guide.mddescribes connecting a browser.
- 主要语言
- C#
- 星标
- 0
- 派生
- 1
- 平均合并
- 1 小时 51 分钟
- 30 天内合并 PR
- 13
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hazeliscoding/prompuff 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
hazeliscoding/prompuff#34 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hazeliscoding/prompuff#22 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 90/100
hazeliscoding/prompuff#14 ·
维护者通常 1 天内回复
-
good first issue
难度 1/5 1-3 小时 新手友好度 92/100
hazeliscoding/prompuff#13 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
hazeliscoding/prompuff#12 ·
维护者通常 1 天内回复
查看 hazeliscoding/prompuff 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug priority: P2
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
IridiumIO/CompactGUI#699 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
bitfoundation/bitplatform#14070 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复