mcp-server

v0.15.0
@arcbridge/mcp-server Checked 2 days ago Published 1 month ago

MCP server for ArcBridge — exposes architecture tools to AI coding agents

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

arcbridge_init_project

Initialize ArcBridge in a project directory. Creates .arcbridge/ with arc42 documentation, phase plan, agent roles, SQLite database, and platform-specific configs.

ParameterTypeDescription
name *stringProject name
target_dir *stringAbsolute path to the target project directory
featuresarrayFeatures to scaffold
platformsarrayTarget platforms. Generates platform-specific instruction files and agent configs for Claude, Copilot, Codex, Gemini, and OpenCode.
quality_prioritiesarrayQuality priorities in order. Common: security, performance, accessibility, reliability, maintainability, usability, portability, compatibility. Custom categories like data-integrity or compliance are…
specstringProject specification or requirements text. Saved to .arcbridge/spec.md and referenced by agents for context. Can be a description, user stories, or any text that defines what the project should do.
templatestringProject template: nextjs-app-router (Next.js with App Router, SSR/SSG), react-vite (React SPA with Vite, client-only), angular-app (Angular with standalone components, TypeScript), api-service (Node.j…

arcbridge_get_project_status

Get the current status of the ArcBridge project: current phase, task completion, building blocks, quality scenarios, and drift warnings.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory

arcbridge_get_building_blocks

Get the architecture building blocks with code mappings, responsibilities, and linked quality scenarios. Pass `block_id` for the deep view of one block (arc42 description, code modules, interfaces, ADRs, tasks).

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
block_idstringDeep-dive a single block by ID (e.g. 'auth-module'); omit to list all blocks

arcbridge_quality_scenarios

List or update quality scenarios. `action: list` shows scenarios with linked code/tests and status (filter by category/status/priority). `action: update` sets a scenario's status after manual verification and can link test files (requires scenario_id + status) — linking tests lets `arcbridge_verify_scenarios` run them automatically.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
actionstringWhat to do
categorystringlist: filter by category
linked_testsarrayupdate: test file paths to link (sets verification to 'semi-automatic' if currently 'manual')
prioritystringlist: filter by priority (must/should/could)
scenario_idstringupdate (required): scenario ID, e.g. 'SEC-01'
statusstringlist: filter by status. update (required): new status (passing|failing|untested|partial)

arcbridge_get_relevant_adrs

Get architectural decision records (ADRs) relevant to a specific file path or building block.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
building_blockstringBuilding block ID to find relevant ADRs for
file_pathstringFile path to find relevant ADRs for

arcbridge_get_phase_plan

Get the phase plan with phases, tasks, status, and gate requirements. Use filters to reduce output for large projects. Set `view: tasks` for just the task list of one phase — defaulting to the active phase.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
include_completedbooleanview 'plan': include completed phases (set false to reduce output)
phase_idstringShow only a specific phase by ID
statusstringview 'plan': filter phases by status
task_statusstringview 'tasks': filter tasks by status
viewstring'plan' shows phases with gates; 'tasks' shows one phase's task list (phase_id defaults to the in-progress or first planned phase)

arcbridge_manage_tasks

Create, update, or delete tasks. `action: create` adds a task to a phase (requires phase_id + title). `action: update` changes a task's status (requires task_id + status) — use status 'cancelled' for tasks no longer relevant, preserving the decision trail. `action: delete` removes tasks permanently (task_ids for batch, or task_id for one) — prefer update→cancelled for planned-but-dropped work. To list tasks, use `arcbridge_get_phase_plan`.

ParameterTypeDescription
action *stringWhat to do
target_dir *stringAbsolute path to the project directory
acceptance_criteriaarraycreate: acceptance criteria
building_blockstringcreate: building block this task belongs to (see `arcbridge_get_building_blocks`)
notesstringupdate: notes about the status change
phase_idstringcreate (required): phase to add the task to
quality_scenariosarraycreate: quality scenario IDs this task addresses
statusstringupdate (required): new status
task_idstringupdate (required) / delete (single): task ID, e.g. 'task-0.1-init'
task_idsarraydelete (required): task IDs to delete
titlestringcreate (required): task title

arcbridge_manage_phases

Create, delete, or complete phases. `action: create` adds a phase to the plan (requires name + description). `action: delete` removes a planned phase and its tasks (requires phase_id; only status 'planned' can be deleted). `action: complete` validates all gates — tasks done, no critical drift, quality scenarios passing — and transitions the phase to 'complete' if they pass (phase_id defaults to the in-progress phase). To view phases, use `arcbridge_get_phase_plan`.

ParameterTypeDescription
action *stringWhat to do
target_dir *stringAbsolute path to the project directory
auto_inferbooleancomplete: infer task statuses from code state before checking gates
descriptionstringcreate (required): what this phase covers
gate_requirementsarraycreate: requirements to complete this phase
namestringcreate (required): phase name
notesstringcomplete: notes about the completion
phase_idstringdelete (required) / complete: phase ID (complete defaults to the in-progress phase)
phase_numberintegercreate: phase number (default: next after highest)
run_testsbooleancomplete: run linked tests for quality scenarios before the quality gate

arcbridge_reindex

Re-index the project: refreshes architecture docs from arc42/YAML files, then reindexes code symbols (TypeScript, C#/.NET; Python and Go are experimental). This is the first step of the sync pipeline — use it to pick up manual doc edits and code changes.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
languagestringProject language. 'auto' detects from project files (default: 'auto')
servicestringService name for monorepo projects (default: 'main')
tsconfig_pathstringOverride tsconfig.json path (default: auto-detect). Only used for TypeScript projects.

arcbridge_propose_building_blocks

Reverse-engineer a building-block decomposition for an existing codebase. Indexes the code, clusters files by directory, and derives each block's dependencies (interfaces) from the real symbol graph. Use this to adopt ArcBridge on a brownfield project instead of hand-writing building blocks. Returns the proposed blocks with evidence (file counts, dependency edges, key exported symbols) so you can refine the auto-generated responsibilities. Set `apply` to write the proposal to the building-blocks doc (covers every indexed file → zero undocumented-module drift); then refine responsibilities an…

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
applybooleanWrite the proposal to .arcbridge/arc42/05-building-blocks.yaml and reload (default: false — only returns the proposal).
max_blocksintegerMaximum blocks when subdividing a single service by directory (default: 12). No effect in multi-service mode, where each service is one block — pass `service` to subdivide one.
servicestringLimit the proposal to one configured service. Omit to propose across the whole project (each service becomes a top-level block; a single-service project is subdivided by directory).

arcbridge_query_symbols

Look up code symbols. Pass `symbol_id` for full detail on one symbol (signature, source snippet, callers/callees). Otherwise searches by name/kind/file path/building block and returns matching symbols with type signatures. Supports TypeScript and C# (Python/Go experimental).

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
building_blockstringSearch mode: filter by building block ID (matches code_paths)
file_pathstringSearch mode: filter by file path (prefix match)
include_sourcebooleanDetail mode: include a source code snippet
is_exportedbooleanSearch mode: filter by export status
kindstringSearch mode: filter by symbol kind
limitintegerSearch mode: maximum results (default: 50)
querystringSearch mode: term to match against symbol names
servicestringSearch mode: filter by service name (multi-project solutions)
symbol_idstringDetail mode: exact symbol ID (e.g. 'src/utils.ts::formatName#function'). When set, search filters are ignored.

arcbridge_get_dependency_graph

Get the dependency graph for a module or file. Shows imports, calls, type usage, and inheritance relationships between symbols.

ParameterTypeDescription
module *stringModule path relative to project root (e.g. 'src/lib/auth')
target_dir *stringAbsolute path to the project directory
depthintegerHow many levels to traverse (default: 1, max: 5)
directionstringGraph direction: 'dependencies' (what this module uses), 'dependents' (what uses this module), or 'both'
servicestringFilter by service name (for multi-project solutions). Omit to search all services.

arcbridge_get_component_graph

Get the React component graph: component hierarchy, props, state, context usage, and server/client boundaries.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
client_onlybooleanOnly show client components ('use client')
file_pathstringFilter to components in a specific file or directory prefix
with_statebooleanOnly show components that use state (useState/useReducer)

arcbridge_get_route_map

Get the route map: pages, layouts, API routes, and their hierarchy. Works with Next.js, ASP.NET controllers, and minimal APIs.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
kindstringFilter by route kind
route_prefixstringFilter by route path prefix (e.g. '/dashboard' or '/api/orders')
servicestringFilter by service name (for multi-project solutions). Omit to show all services.

arcbridge_get_boundary_analysis

Analyze server/client boundaries in a Next.js project. Identifies client components, server components, server actions, and potential boundary violations.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory

arcbridge_check_drift

Detect architecture drift: undocumented modules, missing code paths, cross-block dependency violations, and stale ADR references.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
persistbooleanWrite findings to drift_log table (default: true)

arcbridge_get_guidance

Get context-aware architectural guidance for a code change. Surfaces relevant quality scenarios, patterns, constraints, and questions to consider.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
actionstringType of change you're making
file_pathstringFile path you're working on (to determine building block and context)

arcbridge_get_open_questions

Surface architectural gaps: untested quality scenarios, building blocks without boundaries, unresolved drift, and tasks missing acceptance criteria.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
scopestringFocus scope: 'current-phase', 'building-block:<id>', or omit for project-wide

arcbridge_arc42

Work with the arc42 documentation. `action: read` returns a section's markdown; `action: update` replaces a section's body (frontmatter preserved) — both require `section`. `action: propose` analyzes git changes since a reference point and suggests doc updates (building blocks, ADRs, sections). Building blocks and quality scenarios have dedicated tools.

ParameterTypeDescription
action *stringWhat to do
target_dir *stringAbsolute path to the project directory
changes_sincestringpropose: reference point — 'last-commit', 'last-sync', 'last-phase', or a git ref
contentstringupdate (required): new markdown body for the section (frontmatter is preserved)
sectionstringread/update (required): arc42 section to access
update_sync_pointbooleanpropose: update the stored sync commit to HEAD after generating proposals

arcbridge_get_practice_review

Structured, practice-aware review of recent code changes across 5 dimensions: Architecture, Security, Testing, Documentation, and Complexity.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
sincestringReference point: 'last-commit', 'last-session', or 'last-phase'

arcbridge_activate_role

Activate an agent role: loads the role's system prompt, required tools, quality focus, and pre-loaded architectural context.

ParameterTypeDescription
role *stringRole ID to activate (e.g., 'architect', 'implementer', 'security-reviewer')
target_dir *stringAbsolute path to the project directory
building_blockstringFocus on a specific building block (for implementer/code-reviewer roles)

arcbridge_verify_scenarios

Run linked tests for quality scenarios and update their pass/fail status. Only runs scenarios with verification='automatic' or 'semi-automatic' and non-empty linked_tests.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
scenario_idsarraySpecific scenario IDs to verify (e.g., ['SEC-01', 'PERF-01']). If omitted, verifies all automatic scenarios.
test_commandstringOverride the test command from config (e.g., 'npx jest'). File paths are appended as arguments.

arcbridge_run_role_check

Run a role-specific architectural analysis: resolves the role and executes relevant checks (drift, quality scenarios, boundaries, changed files) based on the role's focus areas.

ParameterTypeDescription
role *stringRole ID to run checks for (e.g., 'security-reviewer', 'quality-guardian', 'architect', 'phase-manager', 'code-reviewer')
target_dir *stringAbsolute path to the project directory
scopestringScope of analysis: 'last-commit' (recent changes), 'current-phase' (since phase start), 'full-project' (everything)

arcbridge_record_activity

Record agent activity — model, tokens, cost, duration, and optional quality snapshot. Use this to track what work was done and measure agent performance.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
tool_name *stringName of the tool or action performed (e.g., 'arcbridge_manage_tasks', 'code_edit')
actionstringHuman-readable label (e.g., 'implement login form')
agent_rolestringActive ArcBridge role (e.g., 'implementer')
cost_usdnumberEstimated cost in USD
drift_countintegerCurrent drift count
drift_errorsintegerCurrent drift errors
duration_msintegerWall-clock duration in ms
input_tokensintegerInput/prompt tokens
lint_cleanbooleanWhether lint passes cleanly
metadataobjectAdditional key-value metadata
modelstringModel identifier (e.g., 'claude-sonnet-4-20250514')
notesstringFree-form notes
output_tokensintegerOutput/completion tokens
phase_idstringAssociated phase ID
task_idstringAssociated task ID
test_fail_countintegerFailing tests
test_pass_countintegerPassing tests
total_tokensintegerTotal tokens (auto-computed if input+output given)
typecheck_cleanbooleanWhether typecheck passes cleanly

arcbridge_get_metrics

Query agent activity metrics — filter by model, task, phase, or time range. Group by model/task/phase/tool/day for aggregated views. Set `format` to json/csv/markdown to export the filtered metrics to a file in .arcbridge/metrics/ instead.

ParameterTypeDescription
target_dir *stringAbsolute path to the project directory
agent_rolestringFilter by agent role
formatstring'summary' renders inline; json/csv/markdown export to a file for git commits or reporting
group_bystringGroup results for aggregation (summary format only)
limitintegerMax rows in detail view (group_by=none, summary format)
max_rowsintegerExport formats: maximum rows to export
modelstringFilter by model name
phase_idstringFilter by phase ID
sincestringISO 8601 timestamp — activity after this time
task_idstringFilter by task ID
tool_namestringFilter by tool name
untilstringISO 8601 timestamp — activity before this time