Proxyman icon indicating copy to clipboard operation
Proxyman copied to clipboard

Expose scripted custom previewer tabs on MCP (get_flow_detail / get_flows)

Open voidfreud opened this issue 3 months ago • 2 comments

Description

Scripted custom views already exist in the GUI:

request.customPreviewerTabs["Role"] = JSON.stringify({ model: request.body.model }, null, 2);

MCP get_flow_detail returns headers, body preview, query, cookies. It does not return customPreviewerTabs, Comment, or Color. An agent has to re-parse the raw body and cannot see the view a human already built.

Why this feature/change is important?

Proxyman MCP is how coding agents drive a live session. If scripts compute a view for the GUI, that same view should be a first-class MCP field. Otherwise humans and agents debug two different representations of the same flow.

Suggested behavior

  • Include customPreviewerTabs (request and response), comment, and color on get_flow_detail.
  • Optionally list those keys on get_flows / filter_flows so an agent can filter without opening every body.
  • Same script, two consumers: GUI tab and MCP. No extra header mutation.

voidfreud avatar Aug 24 '26 10:08 voidfreud

Here is your Beta build: https://assets.proxyman.com/beta/Proxyman_6.16.0_mcp_with_custom_tabs.dmg

It also includes the fix #2745

  • ✅ Include customPreviewerTabs (request and response), comment, and color on get_flow_detail

Optionally list those keys on get_flows / filter_flows so an agent can filter without opening every body.

Only expose the tab name on the get_flows and filter_flows, because I want to keep it simple. You have to use get_flow_detail to query the content of your custom scripting tab 👍

Image

NghiaTranUIT avatar Aug 24 '26 20:08 NghiaTranUIT

I can't believe my eyes! Thanks so much! I thought this one would take the longest to implement and I weren't even sure you would agree. This is amazing. I had a custom view previously that calculated an LLM's tokens, cache rates, and other metrics and I wanted a clear way to expose it to an agent. Before you did it, I had to maintain a custom harness with its own scripts and a skill and it was so ugly.

This is perfect, I am honestly so so so grateful. Your app is worth every penny and should be on any device. Please keep it up!

voidfreud avatar Aug 28 '26 15:08 voidfreud