Csv

v0.2.1
io.github.pipeworx-io/csv Checked 1 day ago Published 1 month ago

CSV <-> JSON MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

csv_to_json

Parse RFC 4180 CSV into JSON (keyless, offline). With `header` true (default) the first row becomes object keys; otherwise rows are returned as arrays. Handles quoted fields, escaped quotes, and embedded commas/newlines. Set `delimiter` for TSV etc.

ParameterTypeDescription
csv *stringThe CSV text.
delimiterstringField delimiter (default ",").
headerbooleanTreat the first row as a header (default true).

json_to_csv

Serialize an array of JSON objects (or arrays) to CSV (keyless, offline). Object keys become the header (union of all keys, in first-seen order). Fields are quoted when needed.

ParameterTypeDescription
rows *arrayAn array of objects (or arrays) to serialize.
delimiterstringField delimiter (default ",").