@paretools/shared

v0.13.1

Published

Shared utilities for Pare MCP servers

Readme

@paretools/shared

npm License: MIT

Shared utilities for Pare MCP servers.

Exports

  • run(command, args, options) — Executes a CLI command via execFile (no shell injection) and returns { stdout, stderr, exitCode }
  • dualOutput(data, formatter) — Returns both structuredContent (typed JSON) and content (human-readable text) for MCP tool responses
  • stripAnsi(text) — Removes ANSI escape codes from CLI output

Usage

This package is used internally by all @paretools/* server packages. You generally don't need to install it directly unless you're building a custom Pare server.

import { run, dualOutput, stripAnsi } from "@paretools/shared";

Links

License

MIT