Skip to content

Pretty-print JSONL with mcpcurl #238

Description

@simondanielsson

Describe the feature or problem you’d like to solve

mcpcurl does not support pretty-printing JSONL text responses:

Proposed solution

Fallback to unmarshalling the text response into []map[string]interface{}.

Additional context

Example:

$ ./mcpcurl --stdio-server-cmd "./github-mcp-server stdio" tools list_pull_requests --owner github --repo github-mcp-server --page 1 --perPage 1 --pretty
error printing response: failed to parse text content: json: cannot unmarshal array into Go value of type map[string]interface {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions