mcp
v0.19.31MCP 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.
| Parameter | Type | Description |
|---|---|---|
projectName | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project display name (required) |
developmentPhase | string | Initial development phase. Defaults to "Phase 0: Concept". |
projectPath | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
id | string | Project ID (e.g., project_1739...). Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
customData | object | Custom data fields for context generation |
dateProject | string | Project date string |
developmentPhase | string | Current development phase |
fileArch | string | Path to architecture document (relative to project root) |
fileComprehension | string | Path to the codebase comprehension doc: root-relative or absolute, must be an existing file inside the project root. Empty string clears it. |
fileConcept | string | Path to concept document (relative to project root) |
fileHLD | string | Path to HLD document (relative to project root) |
fileSlice | string | Current slice name |
fileSlicePlan | string | Path to slice plan (relative to project root) |
fileSpec | string | Path to project spec (relative to project root) |
fileTasks | string | Task file name |
id | string | Project ID to update. Omit to resolve from CWD. |
instruction | string | Instruction type (e.g., implementation, design, review) |
name | string | Project display name |
projectPath | string | Absolute path to project root |
template | string | Template name |
workType | string | Whether starting or continuing work |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute 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…
| Parameter | Type | Description |
|---|---|---|
includeMarkdown | boolean | Include markdown summary field in response. Default: true. |
projectId | string | Project ID. Omit to resolve from CWD. |
status | string | Filter 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 }.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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…
| Parameter | Type | Description |
|---|---|---|
fix | boolean | Apply non-destructive corrections to fixable findings. Default: false (or workflow.auto_fix config). |
noCommit | boolean | With fix, write fixes but commit nothing in any checkout, leaving the files uncommitted for the caller. Default: false. |
projectId | string | Project ID. Omit to resolve from CWD. |
sliceIndex | number | Check 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.
| Parameter | Type | Description |
|---|---|---|
additionalInstructions | string | Additional instructions to append to the generated context |
developmentPhase | string | Override the current development phase |
fileSlice | string | Override the current slice name |
fileTasks | string | Override the task file name |
instruction | string | Override the instruction type (e.g., implementation, design, review) |
instructionType | string | Override instruction type for profile-aware filtering (ephemeral — does not write to store). Takes precedence over instruction if both are provided. |
projectId | string | Project ID. Use project_list to find IDs. Omit to resolve from CWD. |
workType | string | Override whether starting or continuing work |
worktree | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
additionalInstructions | string | Additional instructions to append to the generated context |
developmentPhase | string | Override the current development phase |
fileSlice | string | Override the current slice name |
fileTasks | string | Override the task file name |
instruction | string | Override the instruction type (e.g., implementation, design, review) |
instructionType | string | Override instruction type for profile-aware filtering (ephemeral — does not write to store). Takes precedence over instruction if both are provided. |
projectId | string | Project ID. Use project_list to find IDs. Omit to resolve from CWD. |
workType | string | Override whether starting or continuing work |
worktree | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
templateName * | string | Template name or key to match. Use prompt_list to see available templates. |
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project ID or name. Omit to resolve from CWD. |
source | string | Source 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… |
strategy | string | Installation strategy. Overrides guide.git_strategy config for this call. 'manual' is a deprecated alias for 'tarball'. |
version | string | Release 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).
| Parameter | Type | Description |
|---|---|---|
confirm | boolean | Set 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… |
projectId | string | Project ID or name. Omit to resolve from CWD. |
source | string | Source 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… |
version | string | Release 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.
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path to the target file. Overrides projectId + path. |
path | string | Relative path from project root to the target file. |
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path to the target file. Overrides projectId + path. |
path | string | Relative path from project root to the target file. |
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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).
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path to the target file. Overrides projectId + path. |
path | string | Relative path from project root to the target file. |
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
sliceIndex * | number | Numeric slice index to check (e.g., 163). |
projectId | string | Project ID. Omit to resolve from CWD. |
projectPath | string | Absolute path to project root. Overrides projectId. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path to the target file. Overrides projectId + path. |
nextIndex | number | Starting index for auto-numbering unnumbered items. |
path | string | Relative path from project root to the target file. |
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
all | boolean | Scan all worktree paths and aggregate results. |
description | string | Override project description in output. |
name | string | Override project name in output. |
projectId | string | Project ID. Omit to resolve from CWD. |
worktreeId | string | Worktree 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.
| Parameter | Type | Description |
|---|---|---|
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
worktree * | string | Worktree ID or name to look up. |
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
indexRange * | string | Slice index range as "start-end" (e.g., "100-199"). |
name * | string | Display name for the worktree context. |
archDoc | string | Architecture document reference. |
developmentPhase | string | Initial development phase. |
override | boolean | Skip range-chopping and allow intentional overlap. |
projectId | string | Project ID. Omit to resolve from CWD. |
slicePlan | string | Slice plan document reference. |
worktreePath | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
worktree * | string | Worktree ID or name to update. |
activeSlice | string | Active slice name. |
activeTaskFile | string | Active task file name. |
archDoc | string | Architecture document reference. |
developmentPhase | string | Development phase. |
indexRange | string | New index range as "start-end". |
instruction | string | Instruction type. |
name | string | New display name. |
projectId | string | Project ID. Omit to resolve from CWD. |
rangeOverride | boolean | Allow overlapping index ranges (skip range chopping). |
slicePlan | string | Slice plan document reference. |
workType | string | Work type. |
worktreePath | string | New 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.
| Parameter | Type | Description |
|---|---|---|
worktree * | string | Worktree ID or name to remove. |
projectId | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
key | string | Config key to retrieve (e.g. "guide.source", "guide.git_strategy"). Omit to list all keys. |
projectPath | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
key * | string | Config key to set (e.g. "guide.source", "guide.auto_update") |
scope * | string | Scope: "user" writes to user-level config, "project" writes to project-level config |
value * | string | boolean | number | Value to set. Must match the key's expected type. |
projectPath | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
summary * | string | Summary of recent events, session progress, or current project state. This replaces the current recentEvents field and will appear in subsequent context_build output. |
additionalNotes | string | Optional additional notes to persist alongside the summary. Replaces the current additionalNotes field if provided. |
projectId | string | Project 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.