mcp-architector
v1.11.1MCP server for architecture and system design.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
set-project-architecture Set Project Architecture
Creates or updates vertical module structure (components and dataFlow)—not horizontal facts. By default merges modules and dataFlow by name; omit dataFlow to keep existing flow. Use replaceModules or replaceDataFlow for full replace. For one module use set-module-details or set-module-data-flow. For bulk flow rebuild use rebuild-data-flow. Each new module still needs entries—use set-module-details with facts[] or set-entries after bulk structure. For APIs, domain terms, scripts use set-entry + get-slice—not this tool. projectId is required—call list-projects first. Never use default-pr…
| Parameter | Type | Description |
|---|---|---|
description * | string | Overall project description |
modules * | array | List of modules in the project |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
dataFlow | object | Data flow between modules; omit to preserve existing |
replaceDataFlow | boolean | Replace entire dataFlow (default false = merge by module name) |
replaceModules | boolean | Replace entire modules list (default false = merge by name) |
get-project-architecture Get Project Architecture
Returns vertical structure: project description, module list, dataFlow. Use for refactoring boundaries between components. For all HTTP endpoints or domain terms use get-slice—not this tool. For one module's files and examples use get-module-details. projectId is required—call list-projects first.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
list-projects List Projects
Call first. Lists projects in ~/.mcp-architector with projectId, description, moduleCount, updatedAt, isCurrent, forbidden. Match this workspace by folder name (query). Pass that projectId to every other tool—never omit, never use default-project. isCurrent is only a hint from MCP_PROJECT_ID. If none matches, create with set-project-architecture using a stable id from the workspace path.
| Parameter | Type | Description |
|---|---|---|
query | string | Filter by substring in projectId or description |
set-module-details Set Module Details
Creates or updates one vertical module (files, dependencies, dataFlow sync). IMPORTANT: Slices (api, domain, persistence) are built from entries, not from module text. When adding or updating a module, also add entries this module owns: pass facts[] (http-endpoint, entity, glossary, …) in this call (max 50 per call), or call set-entry / set-entries in 50-entry batches with refs.moduleName=<module name>. Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or repl…
| Parameter | Type | Description |
|---|---|---|
description * | string | Detailed description of the module |
inputs * | string | What the module accepts as input |
name * | string | Module name |
outputs * | string | What the module produces as output |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
dependencies | array | List of module dependencies |
facts | array | Horizontal facts for this module (APIs, entities, terms). Max 50 per call; use set-entries for more. Each becomes an entry with refs.moduleName set automatically. |
files | array | Files belonging to this module; add matching entry kinds per Controller/Repository |
notes | string | Additional notes or comments |
usageExamples | array | Usage examples for this module |
get-module-details Get Module Details
Returns one module's full detail (files, dependencies, examples). Use when you know the module name from get-project-architecture or list-modules. If module has files but get-slice is empty, add entries with refs.moduleName=this module. For cross-cutting API/domain lists use get-slice. moduleName must match architecture exactly.
| Parameter | Type | Description |
|---|---|---|
moduleName * | string | Name of the module to retrieve |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
list-modules List All Modules
Lists module summaries from architecture (name, description)—vertical structure only. For horizontal facts (endpoints, tables, terms) use list-slices then get-slice. After edits run validate. Use module names in set-entry refs.moduleName.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
set-module-data-flow Set Module Data Flow
Patches dataFlow for one module (dependsOn is canonical; providesTo is recomputed). Syncs module file dependencies. Prefer over set-project-architecture for single-module graph edits.
| Parameter | Type | Description |
|---|---|---|
moduleName * | string | Module name |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
dataTransformation | string | How data is transformed between modules |
dependsOn | array | Modules this module depends on |
syncInverse | boolean | Recompute providesTo from dependsOn (default true) |
rebuild-data-flow Rebuild Data Flow
Rebuilds dataFlow for all modules from module file dependencies or existing dependsOn edges. Recomputes providesTo and optionally syncs module files. Use instead of editing architecture.json directly.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
pruneOrphans | boolean | Remove invalid module references (default true) |
source | string | Source for dependsOn edges (default module-dependencies) |
syncInverse | boolean | Recompute providesTo (default true) |
validate Validate Project
Run after set-project-architecture, set-module-details, set-entry, or set-entries. Returns a compact report (summary, stats, issues by kind)—no need to load the full project in the agent. Checks only known rules: dataFlow consistency, module↔entry links, module detail files, entry index drift, empty api/domain/persistence slices, entry slice coverage, optional module-too-few-entries when moduleEntryMin is set. If catalog JSON is corrupt, run fix-data first. Fix issues[] then call validate again.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
checkEmptySlices | boolean | Warn when api/domain/persistence slices have zero entries but modules exist (default true) |
checkEntryCoverage | boolean | Check modules vs entries linkage (default true) |
checkInverse | boolean | Check providesTo vs dependsOn inverse (default true) |
checkModuleDeps | boolean | Check module.dependencies vs dataFlow.dependsOn (default true) |
checkModuleEntryCounts | boolean | Check module-too-few-entries when moduleEntryMin is set (default true) |
checkSliceCoverage | boolean | Check entries match at least one built-in or custom slice (default true) |
checkStorage | boolean | Check module files on disk and entry index drift (default true) |
moduleEntryMin | number | Min entries per module when count > 0; omit to disable module-too-few-entries |
validate-architecture Validate Architecture
Alias for validate with the same checks. Prefer validate after edits. Legacy name kept for compatibility.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
checkEmptySlices | boolean | Warn when api/domain/persistence slices have zero entries but modules exist (default true) |
checkEntryCoverage | boolean | Check modules vs entries linkage (default true) |
checkInverse | boolean | Check providesTo vs dependsOn inverse (default true) |
checkModuleDeps | boolean | Check module.dependencies vs dataFlow.dependsOn (default true) |
checkModuleEntryCounts | boolean | Check module-too-few-entries when moduleEntryMin is set (default true) |
checkSliceCoverage | boolean | Check entries match at least one built-in or custom slice (default true) |
checkStorage | boolean | Check module files on disk and entry index drift (default true) |
moduleEntryMin | number | Min entries per module when count > 0; omit to disable module-too-few-entries |
fix-data Fix Catalog Data
Run when catalog JSON is corrupt (list-modules, get-module-details, or validate fail with extra data after JSON). Rewrites the first valid JSON object in architecture, modules, entries, and slices; removes leftover .tmp files; rebuilds the entry index. Does not delete facts. Optional dryRun previews without writing.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
dryRun | boolean | Preview repairs without writing (default false) |
rebuild-entry-index Rebuild Entry Index
Rebuilds entries/index.json from entry files on disk. Use when list-entries or get-slice miss entries that exist as files (index drift). Does not modify entry bodies.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
delete-module Delete Module
Deletes one module from architecture and its module detail file. Does not delete entries—remove those with delete-entry if needed. Does not delete custom slices.
| Parameter | Type | Description |
|---|---|---|
moduleName * | string | Name of the module to delete |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
set-entry Set Entry
Entries need vertical structure: create modules via set-project-architecture / set-module-details before or when adding entries. Set refs.moduleName to an existing module name from list-modules. Run validate after edits to find entries-without-modules, entry-unlinked, or empty slices. Creates or updates one canonical project fact (entry). Use when you discovered a concrete fact while working. Do not use for module structure—use set-module-details. Do not copy module.description into summary; link via refs.moduleName only. Upsert: pass id to update, or omit id to match by kind+title or create…
| Parameter | Type | Description |
|---|---|---|
kind * | string | Free-form type: http-endpoint, glossary, entity, flow, script, godot-scene, etc. Builtin slice list-slices shows recommended kinds per sliceId |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
summary * | string | 1-2 sentences; not a module essay—only this fact |
title * | string | Short unique label for search, e.g. 'POST /orders' or 'Order' |
id | string | Entry uuid; omit to upsert by kind+title or create new |
payload | object | Kind-specific extra fields only, e.g. method/path for APIs, steps for flow |
refs | object | |
tags | array | Optional labels for get-slice query filtering |
set-entries Set Entries
Entries need vertical structure: create modules via set-project-architecture / set-module-details before or when adding entries. Set refs.moduleName to an existing module name from list-modules. Run validate after edits to find entries-without-modules, entry-unlinked, or empty slices. Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Set refs.moduleName per entry, or pass top…
| Parameter | Type | Description |
|---|---|---|
entries * | array | Facts to upsert (max 50 per call; use multiple calls for larger catalogs) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
moduleName | string | Default refs.moduleName for entries that omit refs.moduleName |
delete-entries Delete Entries
Bulk delete entries matching kind/moduleName/tags filter. Requires confirm=true. Use before full re-import or to clear a module slice. Prefer replace-entries with deleteOrphans for idempotent sync.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Must be true to delete; safety guard against accidental bulk delete |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
kind | string | Exact entry kind |
kinds | array | Entry kinds |
moduleName | string | Only entries linked to this module |
tags | array | Entries having any of these tags |
replace-entries Replace Entries
Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Idempotent sync for up to 50 entries in scope; optionally delete orphans not in this batch. Match by upsertBy (default kind+title). For large catalogs use deleteOrphans=false on intermediate batches, true only on the last batch.
| Parameter | Type | Description |
|---|---|---|
entries * | array | Batch slice for this scope (max 50; repeat calls for larger catalogs) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
scope * | object | Which existing entries participate in orphan deletion |
deleteOrphans | boolean | Delete scope entries missing from this batch (default true; set false until final batch) |
moduleName | string | Default refs.moduleName for entries without refs.moduleName |
upsertBy | array | Fields used to match existing entries (default kind+title) |
import-entries Import Entries
Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Alias for replace-entries (mode=replace). Pass filter as scope; send up to 50 entries per call.
| Parameter | Type | Description |
|---|---|---|
entries * | array | Import batch (max 50 per call) |
filter * | object | Scope filter (kind, moduleName, tags) |
mode * | string | Only replace mode is supported (full slice sync) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
deleteOrphans | boolean | Delete scope entries missing from this batch (default true; set false until final batch) |
moduleName | string | Default refs.moduleName for entries without refs.moduleName |
upsertBy | array | Match keys (default kind+title) |
validate-import Validate Import
Dry-run validation for a proposed import batch (max 50 entries). Max 50 entries per bulk call—split large catalogs into batches of ~50 to avoid oversized tool payloads. For full re-import: delete-entries once, then set-entries in 50-entry chunks; or replace-entries with deleteOrphans=false until the final batch (deleteOrphans=true). Checks duplicate upsert keys and unknown moduleName refs without writing.
| Parameter | Type | Description |
|---|---|---|
entries * | array | Proposed entries to validate (max 50) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
checkDuplicates | boolean | Detect duplicate keys in batch (default true) |
checkModuleExists | boolean | Warn on unknown refs.moduleName (default true) |
upsertBy | array | Match keys (default kind+title) |
get-import-stats Get Import Stats
Returns entry counts grouped by kind, module, and tag. Use after replace-entries/import to verify catalog size.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
get-entry Get Entry
Returns one full entry by id. Use after list-entries or search-entries when you need payload and refs. Do not use for a full API list—use get-slice sliceId=api. Do not use for module structure—use get-module-details.
| Parameter | Type | Description |
|---|---|---|
id * | string | Entry id from list-entries or search-entries |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
delete-entry Delete Entry
Removes one entry and updates the index. Use when a fact is obsolete. Do not use to delete modules—use delete-module. Cannot delete slice definitions—use delete-slice.
| Parameter | Type | Description |
|---|---|---|
id * | string | Entry id to delete |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
list-entries List Entries
Returns the entry catalog (id, kind, title, tags, moduleName)—no payload. Supports kind/moduleName/tags filters and pagination (limit max 200). Unlinked entries lack moduleName; run validate after edits. For typed horizontal views use get-slice.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
kind | string | Filter by exact kind, e.g. http-endpoint |
limit | number | Max items (default 50, max 200) |
moduleName | string | Filter by refs.moduleName |
offset | number | Skip first N matches (default 0) |
query | string | Case-insensitive substring in title, kind, or tags |
tags | array | Filter entries having any of these tags |
search-entries Search Entries
Compact navigation search over entries by title, summary, kind, and tags. Returns snippet, matchedIn, slices, and moduleName per hit—use get-entry for full payload. Prefer get-slice when you know the category (api, domain). Filters (moduleName, kind, tags) narrow agent context. Default limit 10.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
query * | string | Search text |
kind | string | Exact filter on entry kind |
limit | number | Max results per page (default 10, max 50) |
moduleName | string | Exact filter on refs.moduleName |
offset | number | Skip first N matches (default 0) |
tags | array | Filter entries having any of these tags |
list-slices List Slices
Lists built-in and custom slice views (filters over entries—not separate stored data). Empty slice = no entries with matching kind, not a missing slice definition. Use before get-slice to pick sliceId (api, domain, persistence, …).
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
get-slice Get Slice
Returns a horizontal project view: filtered entries transformed for agents. Empty slice = no entries with matching kind. Call list-slices first to pick sliceId. format=compact default; table for api/ui slice. Use offset/limit for pagination. Filter further by moduleName or tags.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
sliceId * | string | Built-in id (api, ui, domain, persistence, …) or custom id from list-slices |
format | string | compact=minimal list; detail=full entries; table=rows for API-like kinds (method/path columns) |
includeModuleContext | boolean | If true, attach module name+description from architecture when refs.moduleName is set |
limit | number | Max items (default 50, max 200) |
moduleName | string | Filter by refs.moduleName |
offset | number | Skip first N items after sort (default 0) |
query | string | Further filter by substring in title, summary, kind, tags |
tags | array | Filter entries having any of these tags |
set-slice Set Slice
Saves a custom slice definition (filter only—no items). Items always live in entries. Use when built-in slices (api, domain, …) are not enough, e.g. filter kinds godot-scene + tag gameplay. Do not store duplicate entry text here. get-slice reads entries through this filter.
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom slice id (avoid colliding with built-in: api, domain, persistence, …) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
title * | string | Human-readable slice name |
description | string | When an agent should use this slice |
kinds | array | Include entries with any of these kind values |
tags | array | Include entries having any of these tags |
delete-slice Delete Slice
Deletes a custom slice definition only. Built-in slices (api, domain, …) cannot be deleted. Does not delete entries—use delete-entry.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
sliceId * | string | Custom slice id from list-slices |
refactor-architecture Refactor Architecture
Preview or apply in-repo refactor sync to architector data (no workspace access). Default dryRun=true. Workflow: (1) scan with file/text to list hits, (2) build 1-3 mutation ops, (3) dryRun preview, (4) apply with dryRun=false and confirm=true. Mutations: move-file, replace-path-prefix, rename-text, patch-entry, merge-files, remove-file-ref. Orphan entries with empty refs.files and no entryIds are deleted. Does not change module names or dataFlow.
| Parameter | Type | Description |
|---|---|---|
operations * | array | Refactor operations (max 10 per call) |
projectId * | string | Required. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden. |
confirm | boolean | Required true when dryRun=false |
dryRun | boolean | Preview only (default true). Set false with confirm=true to apply |
limit | number | Max changes/hits per page (default 15, max 50) |
offset | number | Pagination offset (default 0) |
scope | object | Optional filter: moduleName, kinds, tags |