Skip to content

MCP: list_filters should return structured JSON #79

Description

@swperb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions