The MCP list_filters tool currently shells imgcli -filters and returns the human-readable text. Switch it to imgcli -filters --json (already implemented, #25) and return the JSON array so agents can reason about filter selection programmatically.
Where
mcp/src/index.ts, the list_filters handler: run(["-filters"]) → run(["-filters", "--json"]), return the JSON (parsed or raw). Update the tool description + mcp/README.md.
Difficulty: easy.
The MCP
list_filterstool currently shellsimgcli -filtersand returns the human-readable text. Switch it toimgcli -filters --json(already implemented, #25) and return the JSON array so agents can reason about filter selection programmatically.Where
mcp/src/index.ts, thelist_filtershandler:run(["-filters"])→run(["-filters", "--json"]), return the JSON (parsed or raw). Update the tool description + mcp/README.md.Difficulty: easy.