Skip to content

Pretty-print JSONL with mcpcurl #238

@simondanielsson

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 {}

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy