Skip to content

Add --json output flag to CLI mode #13

Description

@hegner123

The CLI in src/main.zig:283-347 prints human-readable text to stdout. There is no machine-readable mode, so scripts that want to pipe into jq must spin up the full MCP server and speak JSON-RPC.

Suggested fix

Add a --json flag. When set, emit a single JSON document to stdout with the same fields the MCP tool would return (text, cursor_row, cursor_col, cols, rows, optionally matched).

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions