Path set ignore filter

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

Filter paths against gitignore-style rule lines (negation, comments, directory trailing slashes) lexically.

Use when you need to: gitignore filter · ignore filter paths · apply gitignore rules.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "paths": [
    "node_modules/pkg/a.js",
    "src/b.ts",
    "dist/c.js"
  ],
  "rules": [
    "node_modules/",
    "dist/"
  ]
}

Response:

{
  "result": {
    "kept": [
      "src/b.ts"
    ],
    "ignored": [
      "node_modules/pkg/a.js",
      "dist/c.js"
    ]
  }
}

How to call it

MCP

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

{
  "id": "path-set-ignore-filter",
  "version": "1.0.0",
  "input": {
    "paths": [
      "node_modules/pkg/a.js",
      "src/b.ts",
      "dist/c.js"
    ],
    "rules": [
      "node_modules/",
      "dist/"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/path-set-ignore-filter/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"paths":["node_modules/pkg/a.js","src/b.ts","dist/c.js"],"rules":["node_modules/","dist/"]}'

The machine-readable contract is at /v1/tools/path-set-ignore-filter/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.