qcoda-mcp

v0.1.0
qcoda-mcp Checked 1 day ago Published 3 months ago

QCoda MCP server + CLI — manage QCoda work items, pipelines, concerns, and PM config from AI coding tools (Claude Code, Cursor, JetBrains, aider) over stdio.

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

list_work_items

List work items (features) in QCoda. Filters by project, context, or status. Args: project: Project ID or name (optional — auto-detected from git repo if omitted) context: Context ID (optional) status: Filter by status: DRAFT, NEEDS_CLARIFICATION, ANALYSIS, APPROVED, READY_FOR_DEV, IN_DEV, DONE, ACCEPTED (optional)

ParameterTypeDescription
contextstring
projectstring
statusstring

create_work_item

Create a new work item and start the analysis pipeline. The intake clarity gate checks for ambiguous titles. If ambiguous, returns interpretations for you to choose from — use clarify_work_item to resolve. Args: title: Short, descriptive title for the work item description: Detailed description with requirements and acceptance criteria project: Project ID (optional — auto-detected from git repo) context: Context ID (optional — auto-detected from git branch) external_ref: PM system ticket ID, e.g. OP#421 or JIRA-123 (optional)

ParameterTypeDescription
description *string
title *string
contextstring
external_refstring
projectstring

clarify_work_item

Resolve an ambiguous work item that is awaiting clarification. Args: feature_id: The feature ID returned by create_work_item title: The clarified title (pick from the interpretations or write your own) description: Updated description (optional — keeps existing if omitted)

ParameterTypeDescription
feature_id *string
title *string
descriptionstring

get_pipeline_status

Get the pipeline status for a work item — per-agent progress, scores, and concerns. Args: feature_id: QCoda feature ID external_ref: PM ticket ID (e.g. OP#421) — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

get_spec

Get the generated spec for a work item (SPEC_GEN report). Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

get_agent_report

Get the full report an analysis agent wrote for a work item. Returns the decrypted report markdown (Enriched Spec, Alignment review, Feasibility assessment, generated Spec, ...) — not the concern list (use get_concerns) and not the execution trace. Args: agent_name: INTAKE, ENRICHMENT, ALIGNMENT, FEASIBILITY, or SPEC_GEN feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
agent_name *string
external_refstring
feature_idstring

get_concerns

List open concerns for a work item or project. Args: feature_id: Filter by specific feature external_ref: PM ticket ID — used to look up the feature if feature_id not provided severity: Filter by severity: RED, ORANGE, YELLOW, GREEN (optional) project: Project ID for broader filtering (optional)

ParameterTypeDescription
external_refstring
feature_idstring
projectstring
severitystring

resolve_concern

Resolve a concern with a note explaining the resolution. Args: concern_id: The concern ID to resolve resolution_note: Explanation of the resolution (will be committed to the feature branch) resolution_type: One of: REQUIREMENT_CHANGE, CLARIFICATION, DECISION, DISMISSED (default: CLARIFICATION)

ParameterTypeDescription
concern_id *string
resolution_note *string
resolution_typestring

approve_for_build

Approve a work item for build. Requires ANALYSIS status with no RED concerns. In Mode A (auto_code enabled): starts the AUTO_CODE + QC pipeline. In Mode B (auto_code disabled): publishes the spec to the feature branch for human coding. Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

trigger_qc

Run QC against your in-progress dev branch (Mode B — QC agent ONLY). Use after you (a human) or another coding tool have written code on the feature branch, to validate it against the spec WITHOUT re-running AUTO_CODE (it does NOT regenerate or overwrite your code). The feature must be in READY_FOR_DEV or IN_DEV status. Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

resume_from_agent

Resume a pipeline from a specific agent — re-runs that agent and all subsequent ones, PRESERVING the agents that already completed. Use this instead of restart_analysis when an item stalled or you want to re-run from a midpoint, so earlier successful agents are NOT re-burned. Valid agents: ENRICHMENT, ALIGNMENT, FEASIBILITY, SPEC_GEN (analysis); AUTO_CODE, QC (build). Args: agent_name: the agent to resume from (case-insensitive) feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided…

ParameterTypeDescription
agent_name *string
external_refstring
feature_idstring

get_run_history

Show the per-run execution history for a work item — the WHY behind a slow or stuck pipeline. Each agent attempt is a row with its exit_code, outcome_reason, and error_detail — which narrates the model ladder (e.g. "CAPACITY gpt-oss-20b:free (provider 429); LADDER gpt-oss-20b:free→llmesh; CAPACITY llmesh (unreachable) → WAITING_CAPACITY"). Use this to diagnose why an item is in WAITING_CAPACITY (free-tier rate-limit? fallback rung unreachable?). Requires the project's `ui.run_history_enabled` flag. Args: feature_id: QCoda feature ID ex…

ParameterTypeDescription
external_refstring
feature_idstring

restart_analysis

Restart the analysis pipeline from scratch. Clears open concerns and re-runs all analysis agents (ENRICHMENT, ALIGNMENT, FEASIBILITY, SPEC_GEN). Resolved and ignored concerns are preserved. Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

retry_intake

Re-run the INTAKE clarity gate for a work item stuck in DRAFT because intake failed (e.g. no serving endpoint, LLMesh outage). INTAKE is not a pipeline agent, so restart_analysis / resume_from_agent cannot re-run it — this is the only way. Only works while the item is in DRAFT with a failed intake. On success the item advances to analysis (or NEEDS_CLARIFICATION). If intake is still failing, fix the org's intake model/endpoint at /admin/endpoints first (see get_run_history). Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used t…

ParameterTypeDescription
external_refstring
feature_idstring

clear_error

Un-flag a work item's ERROR state WITHOUT re-running any agent. Dismisses a stale/triaged error flag (nulls last_error) so the item leaves the ERROR state. Does NOT touch concerns, executions, or status. Use when the failure is being handled out-of-band and you just want the flag gone. To instead RE-RUN, use retry_intake (intake) or resume_from_agent / restart_analysis. Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

list_work_item_relations

List the relation edges for a work item — outbound and inbound. Inbound edges are shown from this work item's perspective (e.g. another item's DEPENDS_ON appears here as BLOCKS). Args: feature_id: QCoda feature ID external_ref: PM ticket ID — used to look up the feature if feature_id not provided

ParameterTypeDescription
external_refstring
feature_idstring

list_scopes

List every scope the user can ask QCoda about. A "scope" is one ledger surface, identified by `<org>:<project>:<context>` (e.g. `Acme:QCoda:qcoda-next`). Pick one of these strings and pass it as `scope` to `ask_qcoda`. No need for separate project/context lookups.

get_pm_config

Read a project's PM integration config (`pm.*` keys) — provider, base URL, triggers, lists, project identifier, and the webhook routing context (`pm.context_id`). Secret values (API token, webhook secret) are shown only as `<set>` / absent, never their plaintext. Args: project: Project ID (blank = auto-detect from the current git repo).

ParameterTypeDescription
projectstring

set_pm_config

Set NON-SECRET PM config keys for a project. Only the fields you pass (non-empty) are written. Use `context_id` to route webhook-created work items to a specific context — it is validated to belong to the project (fail-closed). Secrets (PM API token, webhook secret) CANNOT be set here — use the project config form in the web app for those. Args: project: Project ID (blank = auto-detect from the current git repo). context_id: ProjectContext id webhook items route into (`pm.context_id`). trigger_status/trigger_approve/trigger_accept: PM status/li…

ParameterTypeDescription
base_urlstring
context_idstring
dashboard_urlstring
done_liststring
projectstring
project_identifierstring
providerstring
rejected_liststring
spec_complete_liststring
trigger_acceptstring
trigger_approvestring
trigger_statusstring

ask_qcoda

Ask a question about a project's ledger (decisions, architecture, flows, capabilities, feature status). The QCoda ledger is the durable institutional memory of a software project: every architectural decision, every shipped feature, every convention, every flow, every integration. Use this tool when the user asks "why was X decided", "do we already have Y", "what's the status of feature Z", "what's our policy on W". Returns a citation-grounded answer — every factual claim references a specific ledger chunk by file + chunk index. If the ledger doesn't cov…

ParameterTypeDescription
question *string
scopestring
top_kinteger

ledger_status

Report the master QCoda ledger's current framework version + vector count (D-162 P2). Use this to check whether a ledger-framework update is available: compare the returned `framework_version` against your project's stamped `lvr-version` / `framework_version` (in `.qcoda/ledger.manifest.json`). For a per-vector diff of what changed, run `qcoda-ledger status` locally.