Path set minimal covering

path-set-minimal-covering · version 1.0.0 · File paths (lexical) · free, no key needed

Find the minimal covering set of paths by collapsing child paths when an ancestor path is already in the set.

Use when you need to: minimal covering set · collapse redundant paths · ancestor path filter.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "paths": [
    "/app",
    "/app/src",
    "/app/src/index.ts",
    "/other/file.ts"
  ]
}

Response:

{
  "result": {
    "covering": [
      "/app",
      "/other/file.ts"
    ],
    "removed": 2,
    "format": "posix"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "path-set-minimal-covering",
  "version": "1.0.0",
  "input": {
    "paths": [
      "/app",
      "/app/src",
      "/app/src/index.ts",
      "/other/file.ts"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/path-set-minimal-covering/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"paths":["/app","/app/src","/app/src/index.ts","/other/file.ts"]}'

The machine-readable contract is at /v1/tools/path-set-minimal-covering/versions/1.0.0.

CLI

node cli.mjs run path-set-minimal-covering 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.