matrix0487 asked on Discord (#feedback) for all three of magpie's own MCP
servers, image recognition, image generation and search, in the Library's
Discover. Image generation and search were there; image recognition was
an address to copy in Settings only (#4653).
- `magpie mcp vision` (browsermcp.RunVision) relays stdio to the
gateway's /mcp/magpie/vision, as `mcp search` does. analyze_image's
relative image path is made one in the agent's folder on the way
(imageFrom), since the gateway can't know where the agent runs; an
absolute path, ~, a URL or a drive goes as written.
- library: magpie-vision is a featured, opt-in server (no agents until
picked), any binary's `mcp vision` is one server (serverKey), and it
gets the 120s tool timeout (selfTimeout).
- Settings › Models › Images: the Image recognition row has Give agents
Magpie Image Recognition… / Turn on the Library, none with recognition
off or in gateway mode. The three links are one helper, libWay, used by
Image generation and Web search too (no budget raised: core 1,533,011
of 1,533,105).
- Never a dead tool: Discover lists all three whatever is set up, and one
that can't answer yet says why (gateway.OwnUnready, set by
/api/library/market/servers as `unready`): a "Not set up yet" badge on
its card with the reason as its title, and the reason in its sheet
(nothing set up, or turned off in Settings / Plugins). It can still be
added; its tools already answer with the same reason until then.
- Strings in en, zh, zh-TW, ja, de; docs/subsystems/library.md.
Run, all on mote (macOS 27) through mote-run, at this head's tree
(rebased on 21882a68d):
- gofmt -l internal/: clean. go vet darwin; GOOS=linux -tags nogui;
GOOS=windows: browsermcp, cli, library, gateway, gui, imagemcp ok.
- go test -timeout 45m: internal/library, browsermcp, cli, imagemcp ok;
internal/gateway ok (whole package, 556s, before the rebase; OwnMCP,
OwnUnready, VisionMCP, SearchMCP after it). internal/gui: three reds,
none from this change, each red on origin/main 21882a68d too:
TestSettingsSaveKeepsWhatItDoesNotSend (BusyLoad, from 8d8df0639,
filed #4739), TestMainWindowCorners/macOS_26_SDK (#3949),
TestColdTurnsTaken (#4510). Budget tests ok.
- New: TestMagpieImageRecognitionIsOptIn, TestVisionBridgePassesLines,
TestImageFromLeavesTheRest, TestOwnUnreadyWhileNotListed.
- New GUI test vision-mcp-library.test.cjs: chromium + webkit, en, zh,
zh-TW, ja, de, 1100 and 420px (link opens the sheet with its hint and
unready line; Library off → Turn on the Library; one added opens
Discover with all three, only the unready one badged, inside its card;
gateway mode and recognition off show no link; no horizontal overflow,
no page errors): 206/206 with search-mcp-library and
images-library-way. On e84870f17 (old code), chromium: every link and
Discover case red.
- i18n-keys, gui-de, gui-zh-tw ok; gui-ja's one red is #4580, the same
on origin/main 21882a68d.
- Broken by hand: serverKey without "vision" → TestMagpieImageRecognitionIsOptIn
red; imageFrom not joining the folder → both browsermcp tests red.
- Real use, sandbox HOME on mote, nogui build, `magpie serve` on
127.0.0.1:3591: `magpie mcp vision` initialize / tools/list answered;
analyze_image of shots/a.png says "magpie has no model that sees
images…"; missing/b.png names /…/work/missing/b.png (relative path
resolved); an extra argument exits 1; gateway down answers id 9 with
"magpie isn't running, so Magpie Image Recognition can't be reached".
Not tried: analyze_image against a real seeing model through the relay
(the sandbox had no provider; the gateway path is the one /mcp/magpie/vision
already serves); a real agent adding it from Discover; WSL (unchanged,
the MCP router serves it there); the whole GUI suite, queued after
mote's running one.
Reported-by: matrix0487 (Discord)
Closes#4653