Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`prompuff` as the native messaging host, and Connect a browser in Settings

Abierto
#46 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, linux, macos

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

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\NativeMessagingHosts and HKCU\Software\Mozilla\NativeMessagingHosts, pointing at a manifest in Prompuff's data folder. Registry code stays in src/Prompuff.App/Platform, behind OperatingSystem.IsWindows().
    • Linux and macOS: the manifest file in each browser's NativeMessagingHosts folder.
  • 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.cs and src/Prompuff.Cli/McpServerHost.cs: another stdio protocol in the same program
  • src/Prompuff.Cli/CliLibrary.cs: opening the library
  • src/Prompuff.App/Platform/CommandLineInstaller.cs: the install, remove and uninstall-hook pattern
  • src/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.md describes connecting a browser.
Lenguaje dominante
C#
Estrellas
0
Forks
1
Merge medio
1 h 51 min
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de hazeliscoding/prompuff

Todos los issues de hazeliscoding/prompuff

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.