MCP & CLI: create rules inside a folder, and manage rule folders

Aperta
#2,785 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@NghiaTranUIT ci sta già lavorando.

Dal 7/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

✅ Done

Description

Let the MCP server and proxyman-cli rules put a debugging-tool rule into a folder. This covers Map Local, Map Remote, Breakpoint, Scripting and the other tools that have folders in the GUI.

Proxyman 26.0.1 (CLI 1.11.0) has these gaps:

  • proxyman-cli rules map-local list --json returns a folder field on each rule, but it is read-only. create and update reject it, through --input and through stdin:
    $ echo '{"folder":"PROJ-123 - coupon history"}' | proxyman-cli rules map-local update <id> --input -
    {"error":{"code":"invalid_input","message":"Unknown field(s): folder."},"ok":false,...}
    
  • None of the MCP rule tools (create_map_local, update_map_local, create_breakpoint, create_map_remote, create_scripting_rule and the update_* tools) take a folder parameter.
  • No CLI command or MCP tool creates, renames or deletes a folder. Only the GUI button can.

Requested:

  1. A folder parameter (folder name or id) on every rule create and update, in both MCP and CLI. Ideally it creates the folder when it does not exist yet.
  2. Folder management: list, create, rename, and delete with or without its rules.
  3. Optionally, enable or disable all rules of a folder at once, and filter list_rules / rules <tool> list by folder.

Why this feature/change is important?

AI agents now create most of our Map Local, Breakpoint and Scripting rules through MCP, one task at a time. We name a folder after the ticket and the task, such as PROJ-123 - coupon history. With that folder you can see which rules belong to which task, turn a whole set on or off, and delete it when the task is done. Today agents can only add rules to the flat root list, so after a few tasks the list mixes rules from different tasks and someone has to sort them into folders by hand.

Lingua principale
Nessun dato sulla lingua
Stelle
7.1k
Fork
238
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ProxymanApp/Proxyman

Tutte le issue di ProxymanApp/Proxyman

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.