Path set glob test

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

Test a single path string against glob patterns lexically and return match disposition and matching pattern.

Use when you need to: glob test · test path against glob · single path glob match.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "path": "src/index.ts",
  "patterns": [
    "**/*.ts"
  ]
}

Response:

{
  "result": {
    "matched": true,
    "matching_pattern": "**/*.ts",
    "negated": false
  }
}

How to call it

MCP

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

{
  "id": "path-set-glob-test",
  "version": "1.0.0",
  "input": {
    "path": "src/index.ts",
    "patterns": [
      "**/*.ts"
    ]
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.