express-file-cluster-mcp
v0.12.1MCP 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").
| Parameter | Type | Description |
|---|---|---|
id * | string | Page 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to search for, e.g. "transaction postgres" |
limit | integer | Pages 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).
| Parameter | Type | Description |
|---|---|---|
filePath * | string | e.g. "users/[id].ts" or "docs/[[...slug]].ts" |
basePath | string | ignite()'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.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | Relative to src/api, e.g. "products/[id].ts" |
methods * | array | |
auth | true = requireAuth; ["admin"] = requireAuth("admin") role check | |
validation | boolean | Add 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).
| Parameter | Type | Description |
|---|---|---|
name * | string | Task name = file basename, e.g. "SendEmail" |
payload | array | Payload fields, e.g. [{ field: "to", type: "string" }] |
retries | integer | Re-runs after a failure (default 3) |
schedule | string | Cron expression; scheduled runs get payload {} |
thread | boolean | Run in worker_threads (CPU-bound work) |
timezone | string | IANA timezone for schedule |