About mcp
mcp is an MCP server published by konamgil in the Developer Tools category: an open-source framework that prevents AI agents from breaking your codebase. Conduid read 90 tools from its source: mandu.agent.apply, mandu.agent.context, mandu.agent.plan, mandu.agent.repair, mandu.agent.sync, mandu.agent.verify and 84 more. No package is published for it, so it installs from a source checkout.
The repository has 46 stars and 3 forks, is licensed MPL-2.0, and its last commit was on 18 Nov 2026. The latest release is @mandujs/cli@0.44.25 (29 May 2026): Mandu CLI standalone binaries (Bun 1.3.12). It follows @mandujs/cli@0.44.24 (28 May 2026), and the 5 most recent releases go back to @mandujs/cli@0.44.21 (22 May 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include frontend, devtools, architecture-safety, agent-native, bun and backend.
Install
git clone https://github.com/konamgil/manduTools (90)
mandu.agent.applyOfficial agent-core typed apply entry point. It previews by default. With dryRun=false it enforces exact scope, base revision and content hashes, snapshots touched files, applies UTF-8 write operations, verifies the result, rolls back failures by policy, and returns the shared ApplyReceipt schema.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory. Defaults to the MCP project root. |
| dryRun | boolean | Validate and preview without writing. Defaults to true; set false to execute. |
| from | string | Plan path relative to cwd. Defaults to .mandu/agent-plan.json. |
| writeReport | boolean | Write .mandu/agent-apply.json. Defaults to false. |
mandu.agent.contextOfficial agent-core entry point. Returns one structured project context for Codex/Claude/Gemini: project metadata, routes/APIs, partials/islands, slots/contracts, guard summary, diagnostics, git state, and the canonical context -> plan -> apply -> verify -> repair workflow.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory to inspect. Defaults to the MCP project root. |
| includeDiagnose | boolean | Include diagnose summary and normalized diagnostics. Defaults to true. |
| includeGit | boolean | Include git branch and changed-file summary. Defaults to true. |
| writeManifest | boolean | Write .mandu/agent-manifest.json while building context. Defaults to false. |
mandu.agent.planOfficial agent-core planning entry point. Without operations it returns a conservative intent preview. With typed operations it binds current content hashes, exact write scope, rollback policy, and an idempotency key into an executable plan.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory to plan against. Defaults to the MCP project root. |
| idempotencyKey | string | Optional stable retry key. A UUID is generated when omitted. |
| intent * | string | Natural-language task request, for example: add authenticated dashboard. |
| operations | array | Optional typed write operations. When present, the server binds current preconditions and returns an executable plan. |
| rollbackPolicy | string | Failure policy. Defaults to automatic rollback. |
| writePlan | boolean | Write .mandu/agent-plan.json while planning. Defaults to false. |
mandu.agent.repairOfficial agent-core repair entry point. Reads an agent verify report and returns structured next actions, or restores an ApplyReceipt snapshot by rollbackId when apply=true. It never executes shell commands and preserves files changed after apply.| Parameter | Type | Description |
|---|---|---|
| apply | boolean | Apply safe typed patch candidates only. Defaults to false. |
| cwd | string | Project directory. Defaults to the MCP project root. |
| from | string | Verify report path relative to cwd. Defaults to .mandu/agent-verify.json. |
| rollbackId | string | Optional rollback ID from an ApplyReceipt. With apply=true, restores the touched-file snapshot after conflict checks. |
| writeReport | boolean | Write .mandu/agent-repair.json. Defaults to false. |
mandu.agent.syncOfficial agent sync helper. Writes or previews Codex, Claude Code, and Gemini CLI workflow artifacts under .mandu/agent-sync so each agent follows the same Mandu agent loop and MCP profile guidance.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory. Defaults to the MCP project root. |
| dryRun | boolean | Preview files without writing. Defaults to false. |
| target | string | Agent target to sync. Defaults to all. |
mandu.agent.verifyOfficial agent-core verification entry point. Returns one structured report that combines changed files, diagnose, route manifest, guard, contract consistency, normalized diagnostics, and suggested follow-up commands.| Parameter | Type | Description |
|---|---|---|
| base | string | Optional git base ref for changed-file detection. |
| changedOnly | boolean | Filter guard/contract findings to changed files when git data exists. Defaults to true. |
| cwd | string | Project directory to verify. Defaults to the MCP project root. |
| includeContract | boolean | Run contract/slot consistency checks if the routes manifest is available. Defaults to true. |
| includeDiagnose | boolean | Run diagnose and include normalized diagnose diagnostics. Defaults to true. |
| includeGit | boolean | Collect git changed files. Defaults to true. |
| includeGuard | boolean | Run architecture guard if the routes manifest is available. Defaults to true. |
| staged | boolean | Use staged changes only. Defaults to false. |
| writeReport | boolean | Write .mandu/agent-verify.json while verifying. Defaults to false. |
mandu.ai.briefAssemble an AI agent briefing: project title, description, skills manifest, last 20 git commits, docs/ index, and config snapshot. Pass `depth:'full'` for the unabridged view; default `short` keeps the payload small. Read-only.| Parameter | Type | Description |
|---|---|---|
| depth | string | Brief depth — `short` (default) trims lists for fast ingestion; `full` returns the complete view. |
mandu.brain.architectureGet the project architecture rules and folder structure. Use this to understand where to place new files.| Parameter | Type | Description |
|---|---|---|
| includeStructure | boolean | Include folder tree in response (default: true) |
mandu.brain.checkImportCheck if imports in a file follow architecture rules. Call this to validate imports before adding them.| Parameter | Type | Description |
|---|---|---|
| imports * | array | List of import paths to check |
| sourceFile * | string | Source file path (relative to project root) |
mandu.brain.checkLocationCheck if a file location follows project architecture rules. Call this BEFORE creating or moving files to ensure proper placement.| Parameter | Type | Description |
|---|---|---|
| content | string | Optional file content for import validation |
| path * | string | File path to check (relative to project root) |
mandu.brain.doctorAnalyze Guard failures and suggest patches. Returns early with no LLM call when guard has no violations (passed: true). When violations are present and an LLM tier is active (see mandu.brain.status), runs LLM-assisted analysis and returns llmAssisted: true. Template-based analysis is always available as a fallback.| Parameter | Type | Description |
|---|---|---|
| useLLM | boolean | Whether to use LLM for enhanced analysis (default: true if available) |
mandu.brain.loginAuthenticate the brain to an LLM provider. For openai, spawns `npx @openai/codex login` which opens the user's default browser to the OpenAI OAuth page; on approval, the token lands in ~/.codex/auth.json and this tool returns. Anthropic path uses the Mandu OAuth flow with a local loopback listener.| Parameter | Type | Description |
|---|---|---|
| provider | string | Which provider to sign into. Default: openai. |
| waitMs | number | How long to wait for auth.json to appear after spawning the OAuth flow. Default 180000 (3 min). Increase if the user takes longer to approve in the browser. |
mandu.brain.logoutDelete stored brain credentials for a provider. For openai, deletes the keychain-stored enterprise token only — the ~/.codex/auth.json owned by the Codex CLI is intentionally left in place (run `npx @openai/codex logout` to revoke that).| Parameter | Type | Description |
|---|---|---|
| provider | string | Which provider to log out of. Default: all. |
mandu.brain.statusCheck which LLM adapter is active for brain (openai / anthropic / template) and whether auth tokens are present. Read-only — does not call an LLM or spawn subprocesses.mandu.buildBuild client bundles for hydration. Compiles client slots (.client.ts) into browser-ready JavaScript bundles.| Parameter | Type | Description |
|---|---|---|
| minify | boolean | Minify the output bundles (default: true in production) |
| sourcemap | boolean | Generate source maps for debugging |
| targetRouteIds | array | Only rebuild specific islands by routeId. Skips Runtime/Router/Vendor rebuild for faster incremental updates. Omit to rebuild everything. |
mandu.build.statusGet the current build status, bundle manifest, and statistics for client bundles.mandu.cache.manageCache management operations. 'stats' reads cache info from Kitchen endpoint. 'clear' explains that runtime cache requires server restart or revalidatePath/Tag.| Parameter | Type | Description |
|---|---|---|
| action * | string | Cache operation |
| path | string | Route path to target (for selective clear) |
| tag | string | Cache tag to target (for tag-based clear) |
mandu.component.listInventory the project's components. Walks `src/client/shared/ui/` (ui-primitive) and `src/client/widgets/` (widget) for exported React components, with optional usage counts via `count_usage: true`.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category. Defaults to `all`. |
| count_usage | boolean | When true, count usages across src/** and app/**. Slower; default false. |
mandu.decision.architectureGet a compact summary of project architecture decisions and rules.mandu.decision.checkCheck if a proposed change conflicts with existing architecture decisions.| Parameter | Type | Description |
|---|---|---|
| intent * | string | What you're trying to do (e.g., 'Add Redis caching layer') |
| tags * | array | Related tags to check against (e.g., ['cache', 'redis']) |
mandu.decision.listSearch architecture decisions (ADRs) by tags. Use before implementing features for consistency.| Parameter | Type | Description |
|---|---|---|
| tags * | array | Tags to search for (e.g., ['auth', 'cache', 'api']) |
mandu.decision.saveSave a new architecture decision record (ADR) for future consistency checks.| Parameter | Type | Description |
|---|---|---|
| consequences * | array | Impact and trade-offs of this decision |
| context * | string | Why this decision was needed |
| decision * | string | What was decided |
| status | string | Decision status (default: proposed) |
| tags * | array | Tags for searchability (e.g., ['auth', 'api', 'security']) |
| title * | string | Decision title (e.g., 'Use JWT for API Authentication') |
mandu.deploy.checkPre-deployment validation: runs guard, contract, and manifest checks in parallel. Returns a structured readiness report with pass/fail per check and any blockers.| Parameter | Type | Description |
|---|---|---|
| target | string | Deployment target (informational, default: bun) |
mandu.deploy.compileCompile the routes manifest + `.mandu/deploy.intent.json` into a concrete `vercel.json`. Returns the config object, per-route summary, and compile warnings (e.g. runtime gaps from issue #248). Read-only — does not write vercel.json. Phase 1 supports `target: "vercel"` only.| Parameter | Type | Description |
|---|---|---|
| project_name | string | Project name override (Mandu bookkeeping; never emitted into vercel.json). Defaults to the directory name. |
| target | string | Adapter target. Phase 1 supports vercel only. |
mandu.deploy.planInfer DeployIntent for every route via the offline heuristic and (optionally) write `.mandu/deploy.intent.json`. Returns the per-route diff plus validation warnings. Default `apply: false` is read-only — agents should review before persisting. The `reinfer` flag forces re-inference even on unchanged source hashes.| Parameter | Type | Description |
|---|---|---|
| apply | boolean | When true, atomically write the next cache to `.mandu/deploy.intent.json`. Default false (preview-only). |
| reinfer | boolean | Force re-inference even on unchanged source hashes. |
| use_brain | boolean | Wrap the heuristic with the OAuth-backed brain adapter (issue #250 M4). Falls back to heuristic when no cloud token is reachable; the response's `brain_status` tells you which path actually ran. |
mandu.deploy.previewPreview a deployment by running `mandu deploy --target=<t> --dry-run`. Returns the structured artifact list, parsed warnings, and any diff the adapter emits. Always dry-run — this tool cannot trigger a real deployment.| Parameter | Type | Description |
|---|---|---|
| target * | string | Deployment adapter target. Each adapter controls the artifact set — see `mandu deploy --help` for details. |
mandu.design.checkRun the DESIGN_INLINE_CLASS Guard rule on a single file before editing it. Returns a list of violations with line, message, and `requireComponent` suggestion. Reads `mandu.config.ts > guard.design` (or DESIGN.md §7 when `autoFromDesignMd: true`).| Parameter | Type | Description |
|---|---|---|
| file * | string | File to check. Relative paths resolve against the project root; absolute paths are accepted as-is. |
mandu.design.diff_upstreamCompare the local DESIGN.md against an upstream brand spec from awesome-design-md. Returns per-section added / changed / removed entries plus a `total_changes` counter and `section_presence_changed` list. Read-only; produces a diff the caller can patch in selectively via `mandu.design.patch`.| Parameter | Type | Description |
|---|---|---|
| slug * | string | awesome-design-md slug (e.g. 'stripe') or a raw DESIGN.md URL. |
mandu.design.extractScan src/** + app/** for token candidates (color literals, font-families, repeated className combos) and return proposals to patch into DESIGN.md. Read-only — does not modify any file. Filters out tokens already represented in DESIGN.md.| Parameter | Type | Description |
|---|---|---|
| kinds | array | Restrict the proposal kinds. Default: all four. |
| min_occurrences | number | Minimum occurrence threshold. Default 3. |
| scope | array | Project-relative roots to scan. Default ['src', 'app']. |
mandu.design.getRead structured tokens from the project's DESIGN.md. Pass `section: 'color-palette'` (or `'typography'`/`'components'`/...) for one slice, or `'all'` (default) for the full parsed spec. `include_raw: true` returns the original markdown bodies alongside structured tokens.| Parameter | Type | Description |
|---|---|---|
| include_raw | boolean | Include raw markdown body alongside structured tokens. Default false. |
| section | string | Section id to return; `all` dumps the full spec. |
mandu.design.patchSection-safe DESIGN.md patcher (add / update / remove a token). Defaults to dry-run — pass `dry_run: false` to actually rewrite the file. Pass either single-op fields (`section`, `operation`, `key`, `value?`, `role?`) or a batch via `ops: [...]`.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | When true (default), return the diff without writing. |
| key | string | |
| operation | string | |
| ops | array | Batch — overrides single-op fields. |
| role | string | |
| section | string | |
| value | string |
mandu.design.promptReturn DESIGN.md §9 Agent Prompts — pre-warm payload an agent reads before starting UI work. Empty array + hint when the section is unpopulated.mandu.design.proposeCombined extract + dry-run patch. Runs `mandu.design.extract`, converts color / typography / layout / shadow proposals into add operations, and returns both the proposal list and the patch results. Always dry-run by default; pass `dry_run: false` to apply.| Parameter | Type | Description |
|---|---|---|
| dry_run | boolean | Default true (preview only). |
| kinds | array | |
| min_occurrences | number | |
| scope | array |
mandu.dev.startStart Mandu dev server (bun run dev). Issue #237 — polls server.port from mandu.config.ts (fallback 3333) via TCP connect for up to waitMs (default 15s) before declaring a port-detection timeout. On success: { port, url, message }. On timeout: still returns { port: <polled>, message } so callers can retry / probe.| Parameter | Type | Description |
|---|---|---|
| cwd | string | Project directory to run dev server in (default: current project) |
| waitMs | number | How long (ms) to wait for the dev server to accept TCP connections on the configured port. Default 15000 (15s). |
mandu.dev.stopStop Mandu dev server if running.mandu.devtools.contextRead the Kitchen Agent Supervisor context pack — one call returns the current situation, recommended skill/MCP tools, knowledge cards, a copyable prompt, and the next safe action. Combines routes, recent errors, HTTP traffic, MCP usage, bundle manifest, diagnose report, and changed files. Use this at session start or whenever you are unsure what to work on next. Requires `mandu dev` to be running.| Parameter | Type | Description |
|---|---|---|
| baseURL | string | Explicit dev server URL. Overrides runtime-control/config discovery. |
| includeBundle | boolean | Include bundle manifest summary (.mandu/manifest.json). Default true. Set false to skip on very large projects. |
| includeDiagnose | boolean | Include the extended diagnose report. Default true. Set false to lower latency when a11y_hints / package_export_gaps are noisy. |
| includeDiff | boolean | Include git diff against MANDU_DIFF_BASE (default HEAD). Default true. Set false to skip when git is unavailable. |
| port | number | Explicit dev server port. Overrides runtime-control/config discovery. |
mandu.diagnoseRun all diagnostic checks in parallel and return a unified health report. Legacy checks: kitchen_errors + guard_check + validate_contracts + validate_manifest. Extended checks (Issue #215): manifest_freshness, prerender_pollution, cloneelement_warnings, dev_artifacts_in_prod, package_export_gaps. Every check uses the unified { ok, rule, severity, message, suggestion?, details? } shape. `healthy: false` when any check has severity='error'; warnings do not block.| Parameter | Type | Description |
|---|---|---|
| autoFix | boolean | Attempt automatic fixes for guard violations (default: false) |
mandu.docs.getFetch a single markdown page from the project's docs/ tree by relative slug (e.g. 'architect/rendering-modes.md'). Returns the full body + extracted title. Read-only. Pair with `mandu.docs.search` — search to discover, get to read.| Parameter | Type | Description |
|---|---|---|
| slug * | string | Relative path under docs/ (no leading slash, no '..'). Example: 'architect/rendering-modes.md'. |
mandu.docs.searchSearch the project's docs/ markdown tree by keyword. Returns ranked slugs + excerpts so agents can ground answers in Mandu documentation instead of hallucinating. Read-only. Pass `scope` (e.g. 'architect' or 'bun') to narrow to a subdirectory; `includeBody:true` returns the full MDX body for each hit.| Parameter | Type | Description |
|---|---|---|
| includeBody | boolean | Return the full markdown body for each hit. Default false (excerpt only). |
| limit | number | Maximum results returned. Default ${DEFAULT_LIMIT}, capped at ${MAX_LIMIT}. |
| query * | string | Search text. Matches title + body (case-insensitive). |
| scope | string | Restrict search to a `docs/` subdirectory (e.g. 'architect', 'bun'). Default 'all'. |
mandu.feature.createCreate a complete feature: route + contract + slot + island scaffold in one call. Sequentially runs: negotiate -> add_route -> create_contract -> generate -> guard_check.| Parameter | Type | Description |
|---|---|---|
| description * | string | Feature description |
| kind | string | Route kind (default: both) |
| methods | array | HTTP methods (default: ['GET', 'POST']) |
| name * | string | Feature name (English kebab-case) |
| withContract | boolean | Create Zod contract file (default: true) |
| withIsland | boolean | Create island component (default: false) |
mandu.generateGenerate all framework artifacts (server handlers, web components, resources) from the manifest. Run after adding routes or modifying slots/contracts. Use dryRun=true to preview.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Preview what would be generated without writing files (default: false) |
| resources | boolean | Include resource artifact generation from spec/resources/ (default: true) |
mandu.generate.statusShow the current state of all generated artifacts from .mandu/generated.map.json.mandu.guard.analyzeAnalyze a ManduError JSON to provide actionable fix guidance| Parameter | Type | Description |
|---|---|---|
| errorJson * | string | The ManduError JSON string to analyze |
mandu.guard.checkRun the same architecture guard used by `mandu guard`, plus legacy spec/generated/slot checks. Set typeAware=true to additionally run `oxlint --type-aware` (tsgolint) and merge its results.| Parameter | Type | Description |
|---|---|---|
| autoCorrect | boolean | If true, attempt to automatically fix violations |
| typeAware | boolean | If true, invoke `oxlint --type-aware` after the architecture check and include its violations in the response under `typeAware`. When the config has `guard.typeAware` set, this defaults to true; set false to opt out for a single call. |
mandu.guard.explainExplain a specific guard rule with rationale, fix guidance, and code examples.| Parameter | Type | Description |
|---|---|---|
| fromLayer * | string | The source layer (e.g., 'features', 'shared') |
| preset | string | Architecture preset for context |
| toLayer * | string | The target layer being imported |
| type * | string | The type of violation to explain |
mandu.guard.healDetect architecture violations with auto-fix suggestions. Use autoFix=true to apply fixes automatically.| Parameter | Type | Description |
|---|---|---|
| autoFix | boolean | If true, automatically apply the primary fix for all violations |
| file | string | Specific file to check (optional, checks entire project if not specified) |
| preset | string | Architecture preset to use (default: from config or 'mandu'). Use 'cqrs' for Command/Query separation. |
mandu.history.listList the change history with snapshots| Parameter | Type | Description |
|---|---|---|
| limit | number | Maximum number of entries to return (default: 10) |
mandu.history.pruneRemove old snapshots to free up space| Parameter | Type | Description |
|---|---|---|
| keepCount | number | Number of snapshots to keep (default: 5) |
mandu.history.snapshotGet details of a specific snapshot| Parameter | Type | Description |
|---|---|---|
| snapshotId * | string | The snapshot ID to retrieve |
mandu.hydration.addClientSlotAdd a client slot file for a route to enable hydration. Creates the .client.ts file and updates the manifest.| Parameter | Type | Description |
|---|---|---|
| priority | string | Hydration priority (default: visible) |
| routeId * | string | The route ID to add client slot for |
| strategy | string | Hydration strategy (default: island) |
mandu.hydration.setSet hydration configuration for a specific route. Updates the route's hydration strategy and priority.| Parameter | Type | Description |
|---|---|---|
| preload | boolean | Whether to preload the bundle with modulepreload |
| priority | string | Hydration priority: immediate (on load), visible (in viewport), idle (when idle), interaction (on user action) |
| routeId * | string | The route ID to configure |
| strategy | string | Hydration strategy: none (static), island (partial), full (entire page), progressive (lazy) |
mandu.island.addCreate an island component with correct @mandujs/core/client imports and hydration strategy. Generates a .island.tsx file in app/{route}/ with the wrapComponent() island definition.| Parameter | Type | Description |
|---|---|---|
| name * | string | Island component name (PascalCase) |
| route * | string | Route path to attach to (e.g. 'blog/[slug]') |
| strategy | string | Hydration strategy (default: visible) |
mandu.island.listLegacy alias for page client mount diagnostics. Prefer mandu.pageClientMount.list for terminology that separates page-level hydration from nested islands.mandu.kitchen.errorsRead client-side errors captured by Kitchen DevTools. Use clear=true to clear after reading.| Parameter | Type | Description |
|---|---|---|
| baseURL | string | Explicit dev server URL. Overrides runtime-control/config discovery. |
| clear | boolean | Clear errors after reading (default: false) |
| port | number | Explicit dev server port. Overrides runtime-control/config discovery. |
mandu.lintRun oxlint on the project and return structured error/warning counts. Read-only — never modifies files. Pass `typeAware: true` to also run `oxlint --type-aware` (requires `oxlint-tsgolint`). Agents should call this after edits as part of the guardrail chain alongside `mandu.guard.check` and `mandu.doctor`.| Parameter | Type | Description |
|---|---|---|
| typeAware | boolean | Run `oxlint --type-aware` in addition to the core pass (requires `oxlint-tsgolint`). Default false. |
mandu.lint.setupInstall oxlint into an existing project: copies `.oxlintrc.json`, wires `lint`/`lint:fix` scripts, adds `oxlint` devDep, runs `bun install`. Idempotent — re-running produces no additional changes. Destructive — writes files. Set `dryRun: true` to print the plan only.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | Print the plan without writing files. Default false. |
mandu.loop.closeAnalyze agent output (stdout, stderr, exitCode) and return a structured `nextPrompt` that names the primary stall pattern, explains how to address it, and lists supporting evidence. This tool is pure — it never writes files, spawns processes, or auto-executes anything. The returned prompt is advisory text only.| Parameter | Type | Description |
|---|---|---|
| detectors | array | Optional detector-ID allow-list. Omit to run the full built-in set. |
| exitCode | number | Child-process exit code. Defaults to 0 when omitted. |
| stderr | string | Captured stderr from the most recent command/run. |
| stdout | string | Captured stdout from the most recent command/run. |
mandu.manifest.validateValidate the routes manifest for structural integrity. Run after manual edits or when routes behave unexpectedly.mandu.middleware.addCreate a middleware.ts file from a preset template (jwt, cors, auth, default). Checks if middleware.ts already exists before writing to avoid overwriting.| Parameter | Type | Description |
|---|---|---|
| options | object | Extra options passed into the template |
| preset * | string | Middleware preset template |
mandu.negotiateNegotiate recommended structure and file templates before implementing a feature. IMPORTANT: featureName must be a short English kebab-case slug.| Parameter | Type | Description |
|---|---|---|
| category | string | Feature category (auto-detected if not specified) |
| constraints | array | Constraints to respect (e.g., ['use existing User model', 'Redis sessions']) |
| featureName | string | REQUIRED: Short English slug for the feature name (e.g., 'chat', 'user-auth', 'payment', 'file-upload'). You MUST translate the user's intent to a concise English identifier. Use lowercase kebab-case. This becomes the directory/module name. |
| intent * | string | What you want to implement, in any language (e.g., '사용자 인증 기능 추가', 'Add payment integration') |
| preset | string | Architecture preset (default: mandu). Use 'cqrs' for Command/Query separation. |
| requirements | array | Specific requirements (e.g., ['JWT-based', 'OAuth support']) |
mandu.negotiate.analyzeAnalyze the existing project structure and return detected layers, features, and recommendations.mandu.negotiate.scaffoldGenerate scaffold files from a negotiation plan. Use after mandu.negotiate.| Parameter | Type | Description |
|---|---|---|
| category | string | Feature category |
| dryRun | boolean | If true, only show what would be created without actually creating files |
| intent * | string | Feature intent (used to get the structure plan) |
| overwrite | boolean | If true, overwrite existing files (default: false) |
| preset | string | Architecture preset (default: mandu) |
mandu.pageClientMount.listList page-level client mounts: page routes that need a route-level clientModule and bundle. This is distinct from nested islands/partials.mandu.project.initInitialize a new Mandu project (runs `mandu init` and optionally `bun install`).| Parameter | Type | Description |
|---|---|---|
| css | string | CSS framework (default: tailwind) |
| install | boolean | Run bun install after init (default: true) |
| minimal | boolean | Create minimal template (no CSS/UI) |
| name * | string | Project name (directory name) |
| parentDir | string | Parent directory to create the project in (default: cwd) |
| theme | boolean | Enable dark mode theme system |
| ui | string | UI library (default: shadcn) |
mandu.refactor.extract_contractScan `app/api/**/route.ts` for inline Zod schemas and extract them to `contract/<group>.contract.ts` using the `defineContract()` convention. The source handler is left untouched — follow-up manual step is to import the contract and swap ad-hoc validation. Dry-run by default.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | When true (default), return the plan without writing files. When false, write the contract files to `contract/`. |
| route | string | Optional prefix to restrict scan (e.g. 'app/api/users'). |
mandu.refactor.migrate_route_conventionsDetect Next.js-style inline patterns in `app/**/page.*` files (Suspense fallback, ErrorBoundary, inline NotFound) and extract them to Mandu's file-system route conventions (`loading.tsx`, `error.tsx`, `not-found.tsx`). Never overwrites an existing convention file. Dry-run by default.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | When true (default), return the plan without writing files. When false, create the convention files. |
| routes | array | Optional list of route directories to restrict the scan to. Paths are relative to the project root (e.g. 'app/dashboard'). |
mandu.refactor.rewrite_generated_barrelScan the project for barrel files that re-export from `__generated__/*` paths (a `INVALID_GENERATED_IMPORT` guard violation) and rewrite each to use `getGenerated()` from `@mandujs/core/runtime` with the proper `GeneratedRegistry` module augmentation. Returns a per-file before/after plan. Dry-run by default.| Parameter | Type | Description |
|---|---|---|
| dryRun | boolean | When true (default), return the plan without writing files. When false, rewrite files atomically via Bun.write. |
| patterns | array | Relative directory roots to scan (default: ['packages', 'src']). |
mandu.route.addScaffold a new route in app/ with optional slot and contract files, then regenerate the manifest.| Parameter | Type | Description |
|---|---|---|
| kind * | string | Route type: 'api' creates route.ts with HTTP handlers, 'page' creates page.tsx with a React component |
| path * | string | Route path relative to app/ (e.g., 'api/users' or 'blog/[slug]') |
| withContract | boolean | Also scaffold a Zod contract at spec/contracts/{routeId}.contract.ts (default: false) |
| withSlot | boolean | Also scaffold a server-side data loader at spec/slots/{routeId}.slot.ts (default: true) |
mandu.route.boundariesInspect compiler-discovered client boundary metadata for one route or all routes, including route manifest records and optional bundle manifest entries.| Parameter | Type | Description |
|---|---|---|
| includeBundle | boolean | When true, also correlate route boundaries with .mandu/manifest.json boundary bundle entries. |
| routeId | string | Optional route ID to inspect. Omit to list boundaries for all routes. |
mandu.route.deleteDelete a route's app/ source file and regenerate the manifest. Slot and contract files are preserved.| Parameter | Type | Description |
|---|---|---|
| routeId * | string | The route ID to delete (use mandu.route.list to find it) |
mandu.route.getGet full details of a specific route by its ID. Use before modifying a route.| Parameter | Type | Description |
|---|---|---|
| routeId * | string | The route ID to retrieve (use mandu.route.list to see all IDs) |
mandu.route.listList all routes from .mandu/routes.manifest.json with their kind, pattern, slotModule, and contractModule.mandu.run.testsRun the project's tests via `mandu test` and return a structured summary: passed / failed / skipped counts plus a list of failing tests with file and error context. Safe to call repeatedly — no writes, just spawns the child process and parses its output.| Parameter | Type | Description |
|---|---|---|
| coverage | boolean | Pass `--coverage` to emit a coverage report (default: false). |
| filter | string | Forward `--filter <pattern>` to `bun test` — restricts to matching describe/it names. |
| target | string | Which test target to run (default: 'all'). Maps directly to `mandu test <target>`. |
mandu.seo.analyzeAnalyze SEO metadata for common issues and provide recommendations| Parameter | Type | Description |
|---|---|---|
| metadata * | object | Metadata object to analyze |
| url | string | Page URL for context |
mandu.seo.jsonldCreate JSON-LD structured data for SEO. Supports Article, WebSite, Organization, Breadcrumb, FAQ, Product, LocalBusiness, Video, Event types.| Parameter | Type | Description |
|---|---|---|
| data * | object | Data for the JSON-LD (varies by type) |
| type * | string | Type of JSON-LD to create |
mandu.seo.previewPreview rendered SEO HTML for given metadata. Useful for testing metadata before applying.| Parameter | Type | Description |
|---|---|---|
| metadata * | object | Metadata object to render (title, description, openGraph, twitter, etc.) |
mandu.seo.robotsGenerate robots.txt preview from configuration| Parameter | Type | Description |
|---|---|---|
| rules | object | Robots rules (userAgent, allow, disallow, crawlDelay) |
| sitemap | string | Sitemap URL |
mandu.seo.sitemapGenerate sitemap.xml preview from entries| Parameter | Type | Description |
|---|---|---|
| entries * | array | Array of sitemap entries with url, lastModified, changeFrequency, priority |
mandu.seo.writeWrite SEO configuration file (sitemap.ts or robots.ts) to app directory| Parameter | Type | Description |
|---|---|---|
| config | object | Configuration object for the file |
| fileType * | string | Type of SEO file to create |
mandu.slot.constraintsGet recommended slot constraint presets (default, api, readonly).| Parameter | Type | Description |
|---|---|---|
| preset | string | Constraint preset to retrieve |
mandu.tx.beginBegin a new transaction. Creates a snapshot of the current spec state for safe rollback.| Parameter | Type | Description |
|---|---|---|
| message | string | Description of the changes being made |
| sessionId | string | Caller session identifier for the concurrency lock |
mandu.tx.commitCommit the current transaction, finalizing all changes| Parameter | Type | Description |
|---|---|---|
| lockId | string | Lock ID returned by mandu.tx.begin |
mandu.tx.rollbackRollback the current transaction, restoring the previous state| Parameter | Type | Description |
|---|---|---|
| changeId | string | Specific change ID to rollback (optional, defaults to active transaction) |
| lockId | string | Lock ID returned by mandu.tx.begin |
mandu.tx.statusGet the current transaction statusmandu.watch.startStart file watching with architecture rule warnings. Watches for common mistakes and emits warnings (no blocking).| Parameter | Type | Description |
|---|---|---|
| debounceMs | number | Debounce delay in milliseconds (default: 300) |
mandu.watch.statusGet the current watch status including recent warnings and active rules.mandu.watch.stopStop file watching and clean up MCP notification subscriptions.mandu_ate_rememberPhase B.2 memory write. Appends one event to the project-local .mandu/ate-memory.jsonl. File auto-rotates to .bak when it crosses 10 MB. Supported event kinds (discriminated union by `kind`): intent_history | rejected_spec | accepted_healing | rejected_healing | prompt_version_drift | boundary_gap_filled | coverage_snapshot. Timestamp defaults to now (ISO-8601 UTC) if omitted.| Parameter | Type | Description |
|---|---|---|
| event * | object | MemoryEvent object. Must carry a `kind` discriminator plus the event-kind-specific required fields (see @mandujs/ate memory/schema.ts). |
| repoRoot * | string | Absolute path to the Mandu project root. |
mandu_ate_savePhase A.3 persist-with-lint. Writes an agent-generated test file to disk, but first runs a small lint pass that blocks common LLM mistakes: ts-morph syntax errors, unresolved / banned import paths, hand-rolled CSRF cookies, DB mocks when createTestDb is available, and bare `localhost:<port>` URLs (prefer 127.0.0.1 per roadmap §9.2). Returns { saved: true, path, lintDiagnostics: [warnings...] } on success or { saved: false, blockingErrors: [...], lintDiagnostics: [...] } when a blocker fires (in which case no file is written).| Parameter | Type | Description |
|---|---|---|
| allowWarnings | boolean | When true, non-blocking warnings still allow the write (default true). When false, even warnings block. |
| content * | string | The full TypeScript test source to write. |
| intent | string | Optional short description of what the test is verifying (logged to ATE memory). |
| kind | string | Optional prompt kind this spec was generated for (filling_unit, filling_integration, e2e_playwright). |
| path * | string | Absolute path where the spec will be written. Parent directories are created if needed. |
| sourcePrompt | object | Optional { kind, version } back-reference to the prompt that produced this spec (used by future memory queries). |
my_tool...Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 545 words.
- ✓License declaredThe repository declares the MPL-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by bun.lock and 2 more.
- !No dynamic code executionScanned 966 source files and found 10 calls to eval or shell execution, in packages/ate/src/heal.ts:415, packages/ate/src/run.ts:153 and packages/cli/src/util/browser.ts:11 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiopackages/mcp/src/server.ts:13
- Starts other programs
- 62 callspackages/ate/src/heal.ts:415, packages/ate/src/impact.ts:13, packages/ate/src/impact.ts:54
- Outbound network calls
- 96 callsdemo/ai-chat/src/client/islands/ChatApp.tsx:301, demo/ai-chat/src/client/islands/ChatApp.tsx:313, demo/ai-chat/src/client/islands/ChatApp.tsx:320
- Writes or deletes files
- 266 callsdemo/auth-starter/server/domain/uploads.ts:143, packages/ate/src/coverage-merger.ts:423, packages/ate/src/coverage-merger.ts:424
- Lockfile
- bun.lock and 2 more
Pattern matches on the source text of 966 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 545 words, fetched a month ago. The original in the repository is authoritative.
Read full README