Skip to content

feat(mcp-cli): add a --format=table renderer for gittensory-mcp intelligence output #2231

Description

@JSONbored

The stdio CLI only prints either raw JSON (--json) or an ad-hoc line summary (process.stdout.write loops in packages/gittensory-mcp/bin/gittensory-mcp.js, e.g. emit() at line 1349 and the analyze/preflight renderers around line 1557). There is no compact tabular output for the multi-row reports (score blockers, next actions). Add a shared, dependency-free table renderer and a --format table option for the report-shaped commands.

Deliverables

  • Add a small pure formatTable(rows) helper in packages/gittensory-mcp (no new deps) with column alignment
  • Accept --format table|json|text in parseOptions and route report-shaped commands through it (default text unchanged)
  • Apply it to at least the analyze-branch / preflight blocker+action lists
  • Unit tests for the table formatter (alignment, empty rows, wide values) and a CLI test for --format table

References

  • packages/gittensory-mcp/bin/gittensory-mcp.js:1349
  • packages/gittensory-mcp/bin/gittensory-mcp.js:1557
  • packages/gittensory-mcp/bin/gittensory-mcp.js:1588

size: S · held for later release (gittensor:feature once activated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.visualUI/web visual work — owner-led, NOT for Gittensor contributors (extensions excepted)

    Projects

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions