mcp

v0.19.31
@context-forge/mcp Checked 3 days ago Published 3 days ago

MCP server for Context Forge — generates structured AI context prompts from project configuration and templates

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

agent_onboard Onboard New Project

Step-by-step instructions for setting up a new Context Forge project and guiding the user into their first phase of work. Returns an onboarding recipe the agent should follow. Optionally accepts a project name.

ParameterTypeDescription
projectNamestringOptional project name. If omitted, the agent should use the directory name or ask the user.

agent_quickstart Agent Quickstart

Structured capability schema for machine consumers. Returns tool groupings, quickstart sequence, and CLI equivalents — designed for orchestrators and CI pipelines, not human-supervised sessions.

project_list List Projects

List all configured Context Forge projects. Returns project IDs, names, current slices, and other summary fields. Use this to discover available projects before calling project_get or project_update.

project_create Create Project

Create a new Context Forge project entry with sensible defaults. Returns the same shape as project_get (full ProjectData plus introspection when projectPath is provided). Does NOT install guides, commands, or configure the IDE — those are separate operations.

ParameterTypeDescription
name *stringProject display name (required)
developmentPhasestringInitial development phase. Defaults to "Phase 0: Concept".
projectPathstringAbsolute path to the project root. When omitted, the project is created without a path (can be set later via project_update).

project_get Get Project

Get full details for a specific Context Forge project by ID. Returns all project fields including configuration, custom data, and timestamps. When the project has a projectPath, the response includes an `introspection` field with: slicePlan (totalSlices, completedSlices, summary), currentTasks (totalTasks, completedTasks, inferredStatus, summary), and artifacts (presence flags for slicePlan, HLD, arch, spec, currentSliceDesign, currentTaskFile). Use project_list first to find project IDs.

ParameterTypeDescription
idstringProject ID (e.g., project_1739...). Omit to resolve from CWD.
worktreeIdstringWorktree ID or name. When provided, returns the resolved project view with worktree-scoped fields (fileSlice, fileArch, developmentPhase, etc.) reflecting the worktree's values instead of the project-…

project_update Update Project

Update configuration fields on an existing Context Forge project. Provide the project ID and any fields to change (e.g., fileSlice, instruction, developmentPhase). Returns the full updated project. Does not delete or replace — only modifies specified fields.

ParameterTypeDescription
customDataobjectCustom data fields for context generation
dateProjectstringProject date string
developmentPhasestringCurrent development phase
fileArchstringPath to architecture document (relative to project root)
fileComprehensionstringPath to the codebase comprehension doc: root-relative or absolute, must be an existing file inside the project root. Empty string clears it.
fileConceptstringPath to concept document (relative to project root)
fileHLDstringPath to HLD document (relative to project root)
fileSlicestringCurrent slice name
fileSlicePlanstringPath to slice plan (relative to project root)
fileSpecstringPath to project spec (relative to project root)
fileTasksstringTask file name
idstringProject ID to update. Omit to resolve from CWD.
instructionstringInstruction type (e.g., implementation, design, review)
namestringProject display name
projectPathstringAbsolute path to project root
templatestringTemplate name
workTypestringWhether starting or continuing work
worktreeIdstringWorktree ID or name. When provided, workflow fields (fileSlice, instruction, etc.) are routed to the worktree context instead of the project.

project_schema Project Schema

Returns the full project data schema including field definitions, aliases, groups, and enum values. Use this to discover available fields for project_update, understand field types, and find short aliases for field names.

project_detect Detect Project State

Report what is in a directory and which adoption outcome applies (opted-out, adoption-incomplete, already-planned, brownfield, greenfield). Judges the given directory as is and works on unregistered projects. Read-only. Failures return a JSON error envelope with a stable code.

ParameterTypeDescription
path *stringAbsolute path to the project directory. Relative paths are refused.

workflow_future Future Work Collector

Aggregate future work items across all slice plans in a project. Returns a FutureWorkCollectorResult with groups (by initiative), totals, and a markdown summary. Two source patterns are supported: (1) inline ## Future Work sections in regular slice plans, (2) standalone *-slices.future.* files whose entire main body is future work. Response shape: { projectPath, groups[], totalItems, pendingItems, completedItems, markdown }. Each group: { initiativeIndex, initiativeName, sourceFile, items[], totalItems, pendingItems, completedItems }. Each item: { index, name, done, sourceFile, sourceInitiativ…

ParameterTypeDescription
includeMarkdownbooleanInclude markdown summary field in response. Default: true.
projectIdstringProject ID. Omit to resolve from CWD.
statusstringFilter items by completion state. Default: "all".

workflow_status Workflow Status

Get the current workflow status for a project. Returns project phase, active slice status (needs-design, needs-tasks, in-implementation, complete), task progress, and slice plan overview. Response shape: { project, phase, activeSlice: { name, index, status, taskProgress?, retroactive? }, slicePlan?, summary }.

ParameterTypeDescription
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree ID or name. When provided, overlays worktree fields onto the project before computing status.

workflow_next Workflow Next Action

Get the recommended next action for a project based on its current state. Returns a prioritized recommendation with rationale and optional suggested CLI command. Response shape: { recommendation, rationale, suggestedCommand?, slice?, phase?, summary, offers?: [{ id, message }] }. offers are optional suggestions (e.g. id "setup-ci"); key on id, never on message.

ParameterTypeDescription
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree ID or name. When provided, overlays worktree fields onto the project before computing next action.

workflow_check Consistency Check

Run consistency checks on a project to detect mismatches between related artifacts. Detects: task completion vs. slice plan checkbox, frontmatter status vs. computed state, missing artifact cross-references, plan checkbox vs. frontmatter status, duplicate slice indices, missing plan status field, plan status vs. entries, architecture status vs. plans, pending PM decisions in a slice design (warning only, never blocks). Defaults to all-slices mode; provide sliceIndex to narrow to one slice. With fix=true, applies non-destructive corrections to fixable findings. With worktrees, each fix is writt…

ParameterTypeDescription
fixbooleanApply non-destructive corrections to fixable findings. Default: false (or workflow.auto_fix config).
noCommitbooleanWith fix, write fixes but commit nothing in any checkout, leaving the files uncommitted for the caller. Default: false.
projectIdstringProject ID. Omit to resolve from CWD.
sliceIndexnumberCheck only a specific slice by index. Omit for all-slices mode.

storage_backup Create Versioned Backup

Create a versioned timestamped backup of the projects.json data file. Keeps the last 10 backups, automatically pruning older ones. Response shape: { storagePath, backedUp: string[] }.

context_build Build Context

Build a complete context prompt for a Context Forge project. This is the primary tool for generating structured context blocks. Optionally override project parameters (fileSlice, instruction, etc.) without modifying the stored project. Returns the assembled context ready for use.

ParameterTypeDescription
additionalInstructionsstringAdditional instructions to append to the generated context
developmentPhasestringOverride the current development phase
fileSlicestringOverride the current slice name
fileTasksstringOverride the task file name
instructionstringOverride the instruction type (e.g., implementation, design, review)
instructionTypestringOverride instruction type for profile-aware filtering (ephemeral — does not write to store). Takes precedence over instruction if both are provided.
projectIdstringProject ID. Use project_list to find IDs. Omit to resolve from CWD.
workTypestringOverride whether starting or continuing work
worktreestringWorktree ID or name. When provided, overlays worktree fields onto the project before applying explicit overrides.

template_preview Preview Context

Preview a context prompt with specified parameters without modifying the stored project or triggering any side effects. Use this to explore what context would be generated with different configurations before committing to a context_build.

ParameterTypeDescription
additionalInstructionsstringAdditional instructions to append to the generated context
developmentPhasestringOverride the current development phase
fileSlicestringOverride the current slice name
fileTasksstringOverride the task file name
instructionstringOverride the instruction type (e.g., implementation, design, review)
instructionTypestringOverride instruction type for profile-aware filtering (ephemeral — does not write to store). Takes precedence over instruction if both are provided.
projectIdstringProject ID. Use project_list to find IDs. Omit to resolve from CWD.
workTypestringOverride whether starting or continuing work
worktreestringWorktree ID or name. When provided, overlays worktree fields onto the project before applying explicit overrides.

prompt_list List Prompts

List available prompt templates from the project-local ai-project-guide. Requires guides to be installed (cf guides install). Returns template names and metadata. Use prompt_get to retrieve the full content of a specific template.

ParameterTypeDescription
projectIdstringProject ID. Use project_list to find IDs. Omit to resolve from CWD.

prompt_get Get Prompt

Get the full content of a specific prompt template from the project-local ai-project-guide. Requires guides to be installed (cf guides install). Returns the raw template text.

ParameterTypeDescription
templateName *stringTemplate name or key to match. Use prompt_list to see available templates.
projectIdstringProject ID. Use project_list to find IDs. Omit to resolve from CWD.

guide_status Guide Status

Check the installation status of the AI project guide for a project. Returns whether the guide is installed, what method was used (submodule/clone/tarball), current version, latest available version, and whether an update is available.

ParameterTypeDescription
projectIdstringProject ID or name. Omit to resolve from CWD.

guide_install Install Guide

Install the AI project guide into a project directory. Strategies: tarball (default; plain files with no git wiring, simplest for teams), submodule (version-pinned and updatable, but teammates must run git submodule update), clone (a full working copy you can commit to, larger checkout). Omit strategy to use the guide.git_strategy config value. Error if the guide is already installed — use guide_update instead.

ParameterTypeDescription
projectIdstringProject ID or name. Omit to resolve from CWD.
sourcestringSource repository URL, or the path of a local .tgz/.tar.gz guide archive (tarball installs only; a relative path resolves against the project root, and the guide is recorded as version "local"). Overr…
strategystringInstallation strategy. Overrides guide.git_strategy config for this call. 'manual' is a deprecated alias for 'tarball'.
versionstringRelease tag to use instead of the newest, e.g. a tag listed by the remote (tarball installs only). Cannot be combined with a local archive source.

guide_update Update Guide

Update an existing AI project guide installation to the latest version. Uses the same strategy that was used for installation. Error if the guide is not installed — use guide_install first. Updates may require branch confirmation: if the current branch is not the configured trunk/integration branch, this tool returns an error asking you to retry with confirm: true. That response is not a transient failure — it is the expected first step of a two-call confirmation flow (there is no interactive prompt in this context).

ParameterTypeDescription
confirmbooleanSet to true to proceed with an update from a branch that is not the configured trunk/integration branch. Omit on the first call; if the response asks for confirmation, retry the same call with confirm…
projectIdstringProject ID or name. Omit to resolve from CWD.
sourcestringSource repository URL, or the path of a local .tgz/.tar.gz guide archive (tarball installs only; a relative path resolves against the project root, and the guide is recorded as version "local"). Overr…
versionstringRelease tag to use instead of the newest, e.g. a tag listed by the remote (tarball installs only). Cannot be combined with a local archive source.

introspection_slice_plan Parse Slice Plan

Parse a slice plan document and return structured data: entries with index, name, status, isChecked, plus totalSlices and completedSlices counts.

ParameterTypeDescription
filePathstringAbsolute path to the target file. Overrides projectId + path.
pathstringRelative path from project root to the target file.
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree name or ID. Omit to use project root.

introspection_tasks Parse Task File

Parse a task file and return structured data: items with name and done status, plus totalTasks, completedTasks, and inferredStatus.

ParameterTypeDescription
filePathstringAbsolute path to the target file. Overrides projectId + path.
pathstringRelative path from project root to the target file.
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree name or ID. Omit to use project root.

introspection_frontmatter Parse Frontmatter

Extract YAML frontmatter from a markdown file. Returns found (boolean) and data (key-value pairs).

ParameterTypeDescription
filePathstringAbsolute path to the target file. Overrides projectId + path.
pathstringRelative path from project root to the target file.
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree name or ID. Omit to use project root.

introspection_documents Detect Documents

Detect methodology documents for a given slice index. Returns paths to sliceDesign, taskFile(s), architecture, and slicePlan if they exist.

ParameterTypeDescription
sliceIndex *numberNumeric slice index to check (e.g., 163).
projectIdstringProject ID. Omit to resolve from CWD.
projectPathstringAbsolute path to project root. Overrides projectId.
worktreeIdstringWorktree name or ID. Omit to use project root.

introspection_future_work Parse Future Work

Parse the Future Work section from a slice plan document. Returns items with index, name, and done status.

ParameterTypeDescription
filePathstringAbsolute path to the target file. Overrides projectId + path.
nextIndexnumberStarting index for auto-numbering unnumbered items.
pathstringRelative path from project root to the target file.
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree name or ID. Omit to use project root.

project_structure Project Structure

Build the full project model for a Context Forge project. Returns structured data including foundation docs, project architecture, initiatives with slices and tasks, future slices, quality/investigation/maintenance docs, and devlog status. Equivalent to parse.py build_model() output.

ParameterTypeDescription
allbooleanScan all worktree paths and aggregate results.
descriptionstringOverride project description in output.
namestringOverride project name in output.
projectIdstringProject ID. Omit to resolve from CWD.
worktreeIdstringWorktree name or ID. Omit to use project root.

worktree_list List Worktrees

List all worktree contexts for a project. Returns worktree IDs, names, index ranges, and workflow state. Use this to discover available worktrees before calling worktree_get or worktree_update.

ParameterTypeDescription
projectIdstringProject ID. Omit to resolve from CWD.

worktree_get Get Worktree

Get full details for a specific worktree context by ID or name. Returns all worktree fields including index range, workflow state, and paths.

ParameterTypeDescription
worktree *stringWorktree ID or name to look up.
projectIdstringProject ID. Omit to resolve from CWD.

worktree_init Initialize Worktree

Create a new worktree context for a project. The first worktree triggers forward migration, moving existing workflow fields into the default worktree (`isDefault: true`, range 100-799). Returns the created worktree, whether migration occurred, and any index range overlaps.

ParameterTypeDescription
indexRange *stringSlice index range as "start-end" (e.g., "100-199").
name *stringDisplay name for the worktree context.
archDocstringArchitecture document reference.
developmentPhasestringInitial development phase.
overridebooleanSkip range-chopping and allow intentional overlap.
projectIdstringProject ID. Omit to resolve from CWD.
slicePlanstringSlice plan document reference.
worktreePathstringAbsolute path to the git worktree directory.

worktree_update Update Worktree

Update fields on an existing worktree context. Provide the worktree ID or name and any fields to change. Returns the full updated worktree context.

ParameterTypeDescription
worktree *stringWorktree ID or name to update.
activeSlicestringActive slice name.
activeTaskFilestringActive task file name.
archDocstringArchitecture document reference.
developmentPhasestringDevelopment phase.
indexRangestringNew index range as "start-end".
instructionstringInstruction type.
namestringNew display name.
projectIdstringProject ID. Omit to resolve from CWD.
rangeOverridebooleanAllow overlapping index ranges (skip range chopping).
slicePlanstringSlice plan document reference.
workTypestringWork type.
worktreePathstringNew worktree directory path.

worktree_rm Remove Worktree

Remove a worktree context from a project. If this is the last worktree, triggers reverse migration restoring workflow fields to the project. Returns the removed worktree and whether migration occurred. When other worktrees remain, restoredRange is the default worktree's (`isDefault: true`) new range after the removed range was handed back to it; rangeNotRestored { reason, defaultRange } says why it was not (range-override, not-adjacent, would-overlap). defaultWorktree { id, name } identifies that worktree whenever either is present.

ParameterTypeDescription
worktree *stringWorktree ID or name to remove.
projectIdstringProject ID. Omit to resolve from CWD.

config_get Get Config Value

Get configuration. With a key, returns that key's value, source, and description. Without a key, returns all keys with current values, sources, and defaults. Resolution order: project config → user config → built-in default.

ParameterTypeDescription
keystringConfig key to retrieve (e.g. "guide.source", "guide.git_strategy"). Omit to list all keys.
projectPathstringAbsolute path to project root, to include project-level config in resolution

config_set Set Config Value

Set a configuration key to a new value at user or project scope. Use scope="user" for machine-wide defaults, scope="project" to override for a specific project.

ParameterTypeDescription
key *stringConfig key to set (e.g. "guide.source", "guide.auto_update")
scope *stringScope: "user" writes to user-level config, "project" writes to project-level config
value *string | boolean | numberValue to set. Must match the key's expected type.
projectPathstringAbsolute path to project root. Required when scope is "project".

context_summarize Summarize Context

Update a project's session state summary. Persists the provided summary text as the project's recent events, which will be included in subsequent context_build output. Use this after significant work milestones, context switches, or to record session progress for continuity. Analogous to Claude Code's /compact but for project-level state.

ParameterTypeDescription
summary *stringSummary of recent events, session progress, or current project state. This replaces the current recentEvents field and will appear in subsequent context_build output.
additionalNotesstringOptional additional notes to persist alongside the summary. Replaces the current additionalNotes field if provided.
projectIdstringProject ID to update. Use project_list to find IDs. Omit to resolve from CWD.

server_version Server Version

Returns the Context Forge MCP server name and version.