express-file-cluster-mcp

v0.12.1
express-file-cluster-mcp Checked 3 days ago Published 15 days ago

MCP server for express-file-cluster (EFC): the framework's docs, rules and scaffolding tools for AI coding agents

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get-rules EFC ground rules

Call this FIRST before writing or reviewing EFC (express-file-cluster) code: the exact public API, the only valid import paths, and the list of things that do not exist. Prevents invented APIs.

list-docs List EFC docs

List every EFC documentation page (id, title, one-line summary).

get-doc Read an EFC doc page

Return the full markdown of one EFC documentation page, by id from list-docs (e.g. "guides/database", "api-reference/ignite", "skills/routing-rules").

ParameterTypeDescription
id *stringPage id, e.g. "guides/database"

search-docs Search the EFC docs

Full-text search across all EFC docs and reference cards. All words must match; results are ranked, with snippets. Follow up with get-doc.

ParameterTypeDescription
query *stringWords to search for, e.g. "transaction postgres"
limitintegerPages to return

resolve-route File path → route

Turn a route file path (relative to src/api) into the URL pattern EFC mounts, following the routing rules ([id], [[id]], [...slug], [[...slug]], index files).

ParameterTypeDescription
filePath *stringe.g. "users/[id].ts" or "docs/[[...slug]].ts"
basePathstringignite()'s basePath (default '/v1/api')

scaffold-route Generate a route file

Generate an EFC route file: method handlers, optional requireAuth (with roles), optional request-validation schema.

ParameterTypeDescription
filePath *stringRelative to src/api, e.g. "products/[id].ts"
methods *array
authtrue = requireAuth; ["admin"] = requireAuth("admin") role check
validationbooleanAdd an `export const schema` (zod) for params/body

scaffold-task Generate a background task

Generate an EFC task file for src/tasks (task name = file name; the folder is not scanned recursively).

ParameterTypeDescription
name *stringTask name = file basename, e.g. "SendEmail"
payloadarrayPayload fields, e.g. [{ field: "to", type: "string" }]
retriesintegerRe-runs after a failure (default 3)
schedulestringCron expression; scheduled runs get payload {}
threadbooleanRun in worker_threads (CPU-bound work)
timezonestringIANA timezone for schedule