JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1416
  • Score
    100M100P100Q105525F
  • License MIT

Shared utilities for Pare MCP servers

Package Exports

  • @paretools/shared

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";

License

MIT