mcp-server
v0.15.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
target_dir * | string | Absolute path to the target project directory |
features | array | Features to scaffold |
platforms | array | Target platforms. Generates platform-specific instruction files and agent configs for Claude, Copilot, Codex, Gemini, and OpenCode. |
quality_priorities | array | Quality priorities in order. Common: security, performance, accessibility, reliability, maintainability, usability, portability, compatibility. Custom categories like data-integrity or compliance are… |
spec | string | Project 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. |
template | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute 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).
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
block_id | string | Deep-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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
action | string | What to do |
category | string | list: filter by category |
linked_tests | array | update: test file paths to link (sets verification to 'semi-automatic' if currently 'manual') |
priority | string | list: filter by priority (must/should/could) |
scenario_id | string | update (required): scenario ID, e.g. 'SEC-01' |
status | string | list: 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
building_block | string | Building block ID to find relevant ADRs for |
file_path | string | File 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
include_completed | boolean | view 'plan': include completed phases (set false to reduce output) |
phase_id | string | Show only a specific phase by ID |
status | string | view 'plan': filter phases by status |
task_status | string | view 'tasks': filter tasks by status |
view | string | '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`.
| Parameter | Type | Description |
|---|---|---|
action * | string | What to do |
target_dir * | string | Absolute path to the project directory |
acceptance_criteria | array | create: acceptance criteria |
building_block | string | create: building block this task belongs to (see `arcbridge_get_building_blocks`) |
notes | string | update: notes about the status change |
phase_id | string | create (required): phase to add the task to |
quality_scenarios | array | create: quality scenario IDs this task addresses |
status | string | update (required): new status |
task_id | string | update (required) / delete (single): task ID, e.g. 'task-0.1-init' |
task_ids | array | delete (required): task IDs to delete |
title | string | create (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`.
| Parameter | Type | Description |
|---|---|---|
action * | string | What to do |
target_dir * | string | Absolute path to the project directory |
auto_infer | boolean | complete: infer task statuses from code state before checking gates |
description | string | create (required): what this phase covers |
gate_requirements | array | create: requirements to complete this phase |
name | string | create (required): phase name |
notes | string | complete: notes about the completion |
phase_id | string | delete (required) / complete: phase ID (complete defaults to the in-progress phase) |
phase_number | integer | create: phase number (default: next after highest) |
run_tests | boolean | complete: 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
language | string | Project language. 'auto' detects from project files (default: 'auto') |
service | string | Service name for monorepo projects (default: 'main') |
tsconfig_path | string | Override 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…
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
apply | boolean | Write the proposal to .arcbridge/arc42/05-building-blocks.yaml and reload (default: false — only returns the proposal). |
max_blocks | integer | Maximum 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. |
service | string | Limit 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).
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
building_block | string | Search mode: filter by building block ID (matches code_paths) |
file_path | string | Search mode: filter by file path (prefix match) |
include_source | boolean | Detail mode: include a source code snippet |
is_exported | boolean | Search mode: filter by export status |
kind | string | Search mode: filter by symbol kind |
limit | integer | Search mode: maximum results (default: 50) |
query | string | Search mode: term to match against symbol names |
service | string | Search mode: filter by service name (multi-project solutions) |
symbol_id | string | Detail 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.
| Parameter | Type | Description |
|---|---|---|
module * | string | Module path relative to project root (e.g. 'src/lib/auth') |
target_dir * | string | Absolute path to the project directory |
depth | integer | How many levels to traverse (default: 1, max: 5) |
direction | string | Graph direction: 'dependencies' (what this module uses), 'dependents' (what uses this module), or 'both' |
service | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
client_only | boolean | Only show client components ('use client') |
file_path | string | Filter to components in a specific file or directory prefix |
with_state | boolean | Only 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
kind | string | Filter by route kind |
route_prefix | string | Filter by route path prefix (e.g. '/dashboard' or '/api/orders') |
service | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
arcbridge_check_drift
Detect architecture drift: undocumented modules, missing code paths, cross-block dependency violations, and stale ADR references.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
persist | boolean | Write 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
action | string | Type of change you're making |
file_path | string | File 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
scope | string | Focus 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | What to do |
target_dir * | string | Absolute path to the project directory |
changes_since | string | propose: reference point — 'last-commit', 'last-sync', 'last-phase', or a git ref |
content | string | update (required): new markdown body for the section (frontmatter is preserved) |
section | string | read/update (required): arc42 section to access |
update_sync_point | boolean | propose: 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
since | string | Reference 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.
| Parameter | Type | Description |
|---|---|---|
role * | string | Role ID to activate (e.g., 'architect', 'implementer', 'security-reviewer') |
target_dir * | string | Absolute path to the project directory |
building_block | string | Focus 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
scenario_ids | array | Specific scenario IDs to verify (e.g., ['SEC-01', 'PERF-01']). If omitted, verifies all automatic scenarios. |
test_command | string | Override 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.
| Parameter | Type | Description |
|---|---|---|
role * | string | Role ID to run checks for (e.g., 'security-reviewer', 'quality-guardian', 'architect', 'phase-manager', 'code-reviewer') |
target_dir * | string | Absolute path to the project directory |
scope | string | Scope 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
tool_name * | string | Name of the tool or action performed (e.g., 'arcbridge_manage_tasks', 'code_edit') |
action | string | Human-readable label (e.g., 'implement login form') |
agent_role | string | Active ArcBridge role (e.g., 'implementer') |
cost_usd | number | Estimated cost in USD |
drift_count | integer | Current drift count |
drift_errors | integer | Current drift errors |
duration_ms | integer | Wall-clock duration in ms |
input_tokens | integer | Input/prompt tokens |
lint_clean | boolean | Whether lint passes cleanly |
metadata | object | Additional key-value metadata |
model | string | Model identifier (e.g., 'claude-sonnet-4-20250514') |
notes | string | Free-form notes |
output_tokens | integer | Output/completion tokens |
phase_id | string | Associated phase ID |
task_id | string | Associated task ID |
test_fail_count | integer | Failing tests |
test_pass_count | integer | Passing tests |
total_tokens | integer | Total tokens (auto-computed if input+output given) |
typecheck_clean | boolean | Whether 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.
| Parameter | Type | Description |
|---|---|---|
target_dir * | string | Absolute path to the project directory |
agent_role | string | Filter by agent role |
format | string | 'summary' renders inline; json/csv/markdown export to a file for git commits or reporting |
group_by | string | Group results for aggregation (summary format only) |
limit | integer | Max rows in detail view (group_by=none, summary format) |
max_rows | integer | Export formats: maximum rows to export |
model | string | Filter by model name |
phase_id | string | Filter by phase ID |
since | string | ISO 8601 timestamp — activity after this time |
task_id | string | Filter by task ID |
tool_name | string | Filter by tool name |
until | string | ISO 8601 timestamp — activity before this time |