Path set classify

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

Classify an array of file paths by file extension, depth histogram, and path format.

Use when you need to: classify paths · path set classify · file extension breakdown.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "paths": [
    "src/a.ts",
    "src/b.ts",
    "test/c.spec.ts",
    "README.md",
    "Makefile"
  ]
}

Response:

{
  "result": {
    "total": 5,
    "by_extension": {
      ".ts": 3,
      ".md": 1,
      "": 1
    },
    "by_depth": {
      "0": 2,
      "1": 3
    },
    "by_format": {
      "posix": 5,
      "windows": 0
    },
    "no_extension": 1,
    "format": "auto"
  }
}

How to call it

MCP

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

{
  "id": "path-set-classify",
  "version": "1.0.0",
  "input": {
    "paths": [
      "src/a.ts",
      "src/b.ts",
      "test/c.spec.ts",
      "README.md",
      "Makefile"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/path-set-classify/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"paths":["src/a.ts","src/b.ts","test/c.spec.ts","README.md","Makefile"]}'

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

CLI

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

Get the client at /clients/cli/.