@paretools/shared
v0.13.1
Published
Shared utilities for Pare MCP servers
Maintainers
Readme
@paretools/shared
Shared utilities for Pare MCP servers.
Exports
run(command, args, options)— Executes a CLI command viaexecFile(no shell injection) and returns{ stdout, stderr, exitCode }dualOutput(data, formatter)— Returns bothstructuredContent(typed JSON) andcontent(human-readable text) for MCP tool responsesstripAnsi(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";