Skip to main content
Glama
re-report-write

re-report-write

by Heretek-RE

re-report-write

MCP server for writing analyst reports to a file. Provides:

  • Free-text Markdown write to a path

  • Structured Markdown table write to a path (headers + rows)

The server is pure-Python (no system deps) and is the foundational primitive the re-report skill uses to commit report fragments to Output/<run-id>/<file>.md.

Why

The 2026-06-05 stress test surfaced a need for a single, auditable write-primitive that:

  • Refuses to write outside the run's working dir (the gitignored Output/<run-id>/)

  • Returns a SHA-256 of the written content (so the run manifest can verify the report is intact)

  • Renders Markdown tables in the GitHub-Flavored style the rest of RE-AI uses (per CLAUDE.md §"Output report structure")

Related MCP server: Memory Bank MCP Server

Tools

Tool

What it does

check_report_write

Health check — re-report-write has no system deps; always status: OK

write_report

Write free-text content to a path; return the SHA-256 of the written content

write_table

Render a Markdown table from headers + rows and write it to a path; return the SHA-256

Install

Part of the RE-AI plugin; ./install.sh installs the package. To install standalone:

pip install -e ./servers/re-report-write

Run

re-report-write                            # stdio transport (default for MCP)
python -m re_report_write                  # equivalent

Available Tools

3 tools
check_report_writeA

Return server status + version. Always status: OK — re-report-write has no external system dependencies.

Inputs: no named parameters.

write_reportA

Write content to path and return the SHA-256 of the result.

The function is the foundational primitive the re-report skill uses to commit report fragments to Output/<run-id>/<file>.md. The returned SHA-256 is the integrity hash the run manifest records.

Args: path: file to write (must not contain .. or target a system directory) content: text content (typically Markdown) overwrite: if True, overwrite an existing file; if False, refuse to overwrite

Returns::

{
  "path": "...",
  "size": N,
  "sha256": "<64 hex chars>",
  "overwritten": bool,
}

Inputs: path (required), content (required), overwrite.

write_tableA

Render a Markdown table from headers + rows and write it to path.

The table is rendered in GitHub-Flavored Markdown (GFM) style: a header row, a separator row, then one row per record. Column widths are computed from the longest value in each column.

Args: path: file to write headers: column headers (one entry per column) rows: row data (one list per row) overwrite: if True, overwrite an existing file

Returns::

{
  "path": "...",
  "size": N,
  "sha256": "<64 hex chars>",
  "row_count": M,
  "column_count": K,
}

Inputs: path (required), headers (required), rows (required), overwrite.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: health check, arbitrary content writing, and table rendering. There is no overlap.

    Naming Consistency4/5

    Names follow a consistent underscore-separated pattern with verbs first, though 'check_report_write' deviates slightly from the straightforward verb_noun pattern of the other two.

    Tool Count5/5

    Three tools is ideal for a focused write-only server that supports status checking, text writing, and table writing.

    Completeness5/5

    The tool set covers the essential operations for its domain: status check, arbitrary content writing with overwrite support, and specialized table rendering.

    Related MCP Connectors

    Related MCP Servers