Path set glob filter

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

Filter an array of paths against glob patterns with inclusion and exclusion rules lexically without filesystem access.

Use when you need to: glob filter paths · filter files by glob · include exclude paths by pattern.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "paths": [
    "src/a.ts",
    "src/b.js",
    "test/c.ts"
  ],
  "patterns": [
    "**/*.ts"
  ]
}

Response:

{
  "result": {
    "matched": [
      "src/a.ts",
      "test/c.ts"
    ],
    "excluded": [
      "src/b.js"
    ],
    "format": "posix"
  }
}

How to call it

MCP

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

{
  "id": "path-set-glob-filter",
  "version": "1.0.0",
  "input": {
    "paths": [
      "src/a.ts",
      "src/b.js",
      "test/c.ts"
    ],
    "patterns": [
      "**/*.ts"
    ]
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.