mcp-architector

v1.11.1
io.github.theSharque/mcp-architector Checked 1 day ago Published 2 months ago

MCP 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…

ParameterTypeDescription
description *stringOverall project description
modules *arrayList of modules in the project
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
dataFlowobjectData flow between modules; omit to preserve existing
replaceDataFlowbooleanReplace entire dataFlow (default false = merge by module name)
replaceModulesbooleanReplace 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.

ParameterTypeDescription
projectId *stringRequired. 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.

ParameterTypeDescription
querystringFilter 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…

ParameterTypeDescription
description *stringDetailed description of the module
inputs *stringWhat the module accepts as input
name *stringModule name
outputs *stringWhat the module produces as output
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
dependenciesarrayList of module dependencies
factsarrayHorizontal 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.
filesarrayFiles belonging to this module; add matching entry kinds per Controller/Repository
notesstringAdditional notes or comments
usageExamplesarrayUsage 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.

ParameterTypeDescription
moduleName *stringName of the module to retrieve
projectId *stringRequired. 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.

ParameterTypeDescription
projectId *stringRequired. 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.

ParameterTypeDescription
moduleName *stringModule name
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
dataTransformationstringHow data is transformed between modules
dependsOnarrayModules this module depends on
syncInversebooleanRecompute 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
pruneOrphansbooleanRemove invalid module references (default true)
sourcestringSource for dependsOn edges (default module-dependencies)
syncInversebooleanRecompute 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
checkEmptySlicesbooleanWarn when api/domain/persistence slices have zero entries but modules exist (default true)
checkEntryCoveragebooleanCheck modules vs entries linkage (default true)
checkInversebooleanCheck providesTo vs dependsOn inverse (default true)
checkModuleDepsbooleanCheck module.dependencies vs dataFlow.dependsOn (default true)
checkModuleEntryCountsbooleanCheck module-too-few-entries when moduleEntryMin is set (default true)
checkSliceCoveragebooleanCheck entries match at least one built-in or custom slice (default true)
checkStoragebooleanCheck module files on disk and entry index drift (default true)
moduleEntryMinnumberMin 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
checkEmptySlicesbooleanWarn when api/domain/persistence slices have zero entries but modules exist (default true)
checkEntryCoveragebooleanCheck modules vs entries linkage (default true)
checkInversebooleanCheck providesTo vs dependsOn inverse (default true)
checkModuleDepsbooleanCheck module.dependencies vs dataFlow.dependsOn (default true)
checkModuleEntryCountsbooleanCheck module-too-few-entries when moduleEntryMin is set (default true)
checkSliceCoveragebooleanCheck entries match at least one built-in or custom slice (default true)
checkStoragebooleanCheck module files on disk and entry index drift (default true)
moduleEntryMinnumberMin 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
dryRunbooleanPreview 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.

ParameterTypeDescription
projectId *stringRequired. 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.

ParameterTypeDescription
moduleName *stringName of the module to delete
projectId *stringRequired. 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…

ParameterTypeDescription
kind *stringFree-form type: http-endpoint, glossary, entity, flow, script, godot-scene, etc. Builtin slice list-slices shows recommended kinds per sliceId
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
summary *string1-2 sentences; not a module essay—only this fact
title *stringShort unique label for search, e.g. 'POST /orders' or 'Order'
idstringEntry uuid; omit to upsert by kind+title or create new
payloadobjectKind-specific extra fields only, e.g. method/path for APIs, steps for flow
refsobject
tagsarrayOptional 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…

ParameterTypeDescription
entries *arrayFacts to upsert (max 50 per call; use multiple calls for larger catalogs)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
moduleNamestringDefault 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.

ParameterTypeDescription
confirm *booleanMust be true to delete; safety guard against accidental bulk delete
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
kindstringExact entry kind
kindsarrayEntry kinds
moduleNamestringOnly entries linked to this module
tagsarrayEntries 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.

ParameterTypeDescription
entries *arrayBatch slice for this scope (max 50; repeat calls for larger catalogs)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
scope *objectWhich existing entries participate in orphan deletion
deleteOrphansbooleanDelete scope entries missing from this batch (default true; set false until final batch)
moduleNamestringDefault refs.moduleName for entries without refs.moduleName
upsertByarrayFields 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.

ParameterTypeDescription
entries *arrayImport batch (max 50 per call)
filter *objectScope filter (kind, moduleName, tags)
mode *stringOnly replace mode is supported (full slice sync)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
deleteOrphansbooleanDelete scope entries missing from this batch (default true; set false until final batch)
moduleNamestringDefault refs.moduleName for entries without refs.moduleName
upsertByarrayMatch 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.

ParameterTypeDescription
entries *arrayProposed entries to validate (max 50)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
checkDuplicatesbooleanDetect duplicate keys in batch (default true)
checkModuleExistsbooleanWarn on unknown refs.moduleName (default true)
upsertByarrayMatch 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.

ParameterTypeDescription
projectId *stringRequired. 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.

ParameterTypeDescription
id *stringEntry id from list-entries or search-entries
projectId *stringRequired. 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.

ParameterTypeDescription
id *stringEntry id to delete
projectId *stringRequired. 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
kindstringFilter by exact kind, e.g. http-endpoint
limitnumberMax items (default 50, max 200)
moduleNamestringFilter by refs.moduleName
offsetnumberSkip first N matches (default 0)
querystringCase-insensitive substring in title, kind, or tags
tagsarrayFilter 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
query *stringSearch text
kindstringExact filter on entry kind
limitnumberMax results per page (default 10, max 50)
moduleNamestringExact filter on refs.moduleName
offsetnumberSkip first N matches (default 0)
tagsarrayFilter 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, …).

ParameterTypeDescription
projectId *stringRequired. 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
sliceId *stringBuilt-in id (api, ui, domain, persistence, …) or custom id from list-slices
formatstringcompact=minimal list; detail=full entries; table=rows for API-like kinds (method/path columns)
includeModuleContextbooleanIf true, attach module name+description from architecture when refs.moduleName is set
limitnumberMax items (default 50, max 200)
moduleNamestringFilter by refs.moduleName
offsetnumberSkip first N items after sort (default 0)
querystringFurther filter by substring in title, summary, kind, tags
tagsarrayFilter 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.

ParameterTypeDescription
id *stringCustom slice id (avoid colliding with built-in: api, domain, persistence, …)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
title *stringHuman-readable slice name
descriptionstringWhen an agent should use this slice
kindsarrayInclude entries with any of these kind values
tagsarrayInclude 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.

ParameterTypeDescription
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
sliceId *stringCustom 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.

ParameterTypeDescription
operations *arrayRefactor operations (max 10 per call)
projectId *stringRequired. Call list-projects first (query by workspace folder name) and pass the matching projectId. Never omit. default-project is forbidden.
confirmbooleanRequired true when dryRun=false
dryRunbooleanPreview only (default true). Set false with confirm=true to apply
limitnumberMax changes/hits per page (default 15, max 50)
offsetnumberPagination offset (default 0)
scopeobjectOptional filter: moduleName, kinds, tags