Skip to content

MCP Tools Reference

MCP Tools Reference

The forge-state MCP server exposes 47 typed tool calls. Tool names use underscores (MCP protocol requirement).

Lifecycle

MCP ToolDescription
mcp__forge-state__initCreate new workspace and state.json
mcp__forge-state__pipeline_initInitialize pipeline with full context
mcp__forge-state__pipeline_init_with_contextInitialize with external context (Jira/GitHub)
mcp__forge-state__pipeline_next_actionGet next action for orchestrator to execute
mcp__forge-state__pipeline_report_resultReport phase result and advance pipeline

Phase Management

MCP ToolDescription
mcp__forge-state__phase_startBegin a phase
mcp__forge-state__phase_completeComplete a phase (artifact guards enforced)
mcp__forge-state__phase_failRecord phase failure
mcp__forge-state__checkpointEnter human checkpoint
mcp__forge-state__skip_phaseSkip a phase
mcp__forge-state__abandonAbandon the pipeline

Revision Control

MCP ToolDescription
mcp__forge-state__revision_bumpFull revision cycle (re-run phase)
mcp__forge-state__inline_revision_bumpMinor fixes without re-running
mcp__forge-state__set_revision_pendingMark revision as pending
mcp__forge-state__clear_revision_pendingClear pending revision

Configuration

MCP ToolDescription
mcp__forge-state__set_branchSet git branch name
mcp__forge-state__set_effortSet effort level (S/M/L)
mcp__forge-state__set_flow_templateSet flow template (light/standard/full)
mcp__forge-state__set_auto_approveEnable auto-approve for checkpoints
mcp__forge-state__set_skip_prSkip PR creation
mcp__forge-state__set_debugEnable debug mode
mcp__forge-state__set_use_current_branchUse current branch instead of creating new
mcp__forge-state__preferences_getRead user preferences from .specs/preferences.json
mcp__forge-state__preferences_setWrite user preferences (full replacement)

Task Management

MCP ToolDescription
mcp__forge-state__task_initInitialize task list from tasks.md
mcp__forge-state__task_updateUpdate task implementation/review status

Metrics

MCP ToolDescription
mcp__forge-state__phase_logLog phase metrics (tokens, duration, model)
mcp__forge-state__phase_statsGet phase statistics

Query

MCP ToolDescription
mcp__forge-state__getGet current pipeline state
mcp__forge-state__resume_infoGet resume information for interrupted pipeline
mcp__forge-state__search_patternsBM25 search over past pipeline specs index
mcp__forge-state__subscribe_eventsGet SSE endpoint URL (requires FORGE_EVENTS_PORT)
mcp__forge-state__profile_getGet cached repository profile
mcp__forge-state__history_searchSearch past pipeline history
mcp__forge-state__history_get_patternsGet accumulated review finding patterns
mcp__forge-state__history_get_friction_mapGet AI friction points from improvement reports

Analytics

MCP ToolDescription
mcp__forge-state__analytics_pipeline_summaryToken, duration, cost stats for a single run
mcp__forge-state__analytics_repo_dashboardAggregate stats across all pipeline runs
mcp__forge-state__analytics_estimateP50/P90 predictions for new runs

Code Analysis

MCP ToolDescription
mcp__forge-state__ast_summaryTree-sitter AST summary of a source file
mcp__forge-state__ast_find_definitionLocate and return a symbol's definition
mcp__forge-state__dependency_graphFile-level import graph as JSON
mcp__forge-state__impact_scopeFind files that call a given symbol

Validation & Utility

MCP ToolDescription
mcp__forge-state__validate_inputValidate pipeline input (empty, too-short, URL format)
mcp__forge-state__validate_artifactCheck artifact exists and meets content constraints
mcp__forge-state__refresh_indexRefresh the .specs/index.json

Guards (Enforced by MCP Handlers)

The MCP server enforces these guards deterministically:

GuardToolCondition
Artifact requiredphase_completeBlocks if expected artifact file is missing
Checkpoint requiredphase_completeBlocks unless awaiting_human status
Phase orderingphase_startBlocks if previous phase not completed

Released under the MIT License.