mcp-ipfs
Version:
MCP Server for interacting with the IPFS Storacha Network
15 lines • 555 B
TypeScript
/**
* Executes a w3 cli command with common options.
* @param subCommand The w3 subcommand and arguments (e.g., "space ls --json")
* @returns An object containing the untrimmed stdout and stderr.
*/
export declare function runW3Command(command: string): Promise<{
stdout: string;
stderr: string;
}>;
/**
* Parses newline-delimited JSON (NDJSON) string into an array of objects.
* Handles potential errors during parsing of individual lines.
*/
export declare function parseNdJson<T>(ndjson: string): T[];
//# sourceMappingURL=utils.d.ts.map