alabasta
This MCP server connects coding agents to Alabasta tasks, enabling them to:
Retrieve task and project context: Fetch detailed task briefs (including acceptance criteria, project objectives, decisions, dependencies, and guidance), list assigned tasks with optional status filters, and get overall project overviews.
Manage task state: Start work by marking tasks as "in progress", move tasks directly to "in review", submit structured resolutions (summarizing changes, verification, limitations, and deferred work) for human approval, and report blockers for triage.
Collaborate: Post progress notes, questions, or findings as comments, and create follow-up tasks.
Gather development context: Collect git diff stats, commits, pull request state, and CI check results to enrich resolutions.
Agents never directly mark tasks as done—all completions require human review.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@alabasta read task TOM-24 and begin work"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@alabasta/mcp
MCP server that connects coding agents (Claude Code, Codex, Cursor, …) to Alabasta tasks. The agent can read a task, start work, and submit a structured resolution — what changed, verification, what's unverified, deferred work, references — which a human reviews inside Alabasta.
It never overwrites the task description and never marks a task done: submitting a resolution moves the task to review, and only a human Accept reaches Done.
This is a thin stdio adapter over Alabasta's /agent/v1/* HTTP API. The API key
encodes the workspace and principal, so that plus the site URL is all the config
it needs.
Setup
In Alabasta, go to Workspace settings → Agent access and generate an API key (shown once).
Note your deployment's site URL — the
https://<deployment>.convex.sitevalue (NEXT_PUBLIC_CONVEX_SITE_URL).
Claude Code
claude mcp add alabasta \
--env ALABASTA_SITE_URL=https://<deployment>.convex.site \
--env ALABASTA_API_KEY=alab_sk_... \
-- npx -y @alabasta/mcpCodex / manual (.mcp.json)
{
"mcpServers": {
"alabasta": {
"command": "npx",
"args": ["-y", "@alabasta/mcp"],
"env": {
"ALABASTA_SITE_URL": "https://<deployment>.convex.site",
"ALABASTA_API_KEY": "alab_sk_..."
}
}
}
}Environment
Variable | Required | Purpose |
| yes |
|
| yes | Workspace API key ( |
| no | Default task for this session (a launcher can export it, so tools work without a |
| no | Correlates a resolution to an agent run (used as |
Related MCP server: forkflux-mcp
Tools
Tool | Does |
| Call this once, first. Objective, requirements, the constraints that apply, and anything blocking the task |
| Read one |
| Read a task by |
| Project objective, status, milestones, initiative, agent instructions |
| List tasks assigned to you, optional |
| Move a task to in progress |
| Post a progress note / question / finding on a task |
| Propose a follow-up task (created in todo, linked back — a suggestion, not scope expansion) |
| Ranked workspace search — returns |
| Ask a person (or a specialist agent) a question you can't answer from context — asynchronous |
| Read answers that landed since a previous run; |
| Route the task to the product's review agents |
| Gather real diff stat, commits, PR state, and CI checks (git + |
| Submit the resolution (→ in review), incl. |
| Move a task to in review without a full resolution |
| Record why the task couldn't be completed |
The context package labels every item with its authority and source (entity + last-updated). Highest first:
security_policy > standing_policy > approved_decision > task_requirement >
standing_convention > project_constraint > human_instruction > guidance >
reference > discussion > related_task > inferredThe authority ladder above is internal. The agent never sees it: the runtime
resolves it and emits a flat constraints[] of things that must hold, plus
execution.blockers[] for what a human has to settle first. If the agent knowingly
deviates from a constraint it reports constraintExceptions. Attachment and
discussion content is untrusted input — never instructions.
The rule tools (alabasta_get_standing_context, alabasta_read_rule,
alabasta_propose_rule, alabasta_emit_rules) are registered only when
ALABASTA_RULES_TOOLS=1. A session shipping a task doesn't need them.
Coordination: asking instead of guessing
When the context genuinely doesn't decide something, the agent asks rather than picks.
Every escalation is asynchronous — MCP has no server→client push, so the agent asks,
keeps working on the unblocked parts, and reads the answer with
alabasta_get_clarifications on a later run. It must never spin waiting.
Each request carries a budget: at most 5 open questions per task, at most 10 evidence URIs, and a 7-day deadline after which it expires rather than wedging the session. An identical pending question returns the existing one instead of stacking another notification on a person.
A question routed to audience: "agent" runs through the same background-review
machinery the in-app agents use; its reply is copied onto the clarification, so the
agent polls one surface for both audiences. Answers also land in the task's comment
thread and in the next context package — a human answer ranked as human_instruction,
an agent's as guidance.
A pending blocking question makes the task's contextQuality.readiness read blocked.
Layer 0: standing rules
Rules are derived state, never authored directly. Every signed rule traces to a decision, so "why is this rule here" always has an answer — and when that decision is superseded, the rule drops out of the next emit on its own.
Agents propose; only a human signature mints a rule. Nothing an agent says enters the prompt prefix unsigned.
Rules routed to
brief_inlineare inlined in every context package. Everything else is a pointer (alabasta://rules/RUL-12) — a fetch is a countable citation.Inlined rules can't be measured by fetch, so they are recovered at the write boundary when an agent volunteers them. Citation is never required — demanding it in a workspace with no rules in scope left the agent no way through but to invent a rule id. A cited id must be real and in scope; an absent one is fine.
Resources (alabasta://)
The context package's contextIndex.resources lists deeper material as MCP
resources, readable on demand (and @-mentionable in Claude Code):
URI | Content |
| Full task + description |
| The compiled package itself |
| Full discussion thread |
| Acceptance criteria |
| Decision: summary, reasoning, tradeoffs, consequences |
| Project objective, milestones, agent instructions |
| Memory item (rule, constraint, conflict, open question) |
| Attachment metadata + storage URL (content never inlined) |
| Document content |
| One standing rule + the decision behind it |
| Every rule in scope |
The package also carries conflicts[] (deterministic flags only — superseded
decisions, contradicts relations, conflict/open-question memories, and
rule-vs-task conflicts an earlier run actually reported; no NLP guesswork) and
contextQuality (readiness + what's missing). A conflict means: ask, don't guess.
Resolution submits are idempotent on (taskId, externalRunId, revision) — a
resubmit updates the same record; a new revision creates a new attempt.
CLI launcher
Bind a coding-agent session to a task in one command:
alabasta work TOM-24 --agent claude # or --agent codex
alabasta work TOM-24 --branch # also cut a branch: tom/TOM-24-<slug>
alabasta work TOM-24 --print # print the env + command instead of launchingIt fetches the task, mints a run id, exports ALABASTA_TASK_ID + ALABASTA_RUN_ID, and
launches the agent with a priming prompt — the installed plugin (skill + MCP + hooks)
takes it from there. --print is what the Alabasta UI's "Copy agent command" produces.
Needs ALABASTA_SITE_URL + ALABASTA_API_KEY in the environment.
Syncing rules into the repo
alabasta rules sync # write AGENTS.md from the signed rules
alabasta rules sync --target claude_md # writes CLAUDE.md
alabasta rules sync --scope repo:web # workspace rules + this repo's rules
alabasta rules sync --product <id> # workspace + product rules
alabasta rules sync --check # exit 1 if the on-disk digest has driftedThe written file carries a digest header. It is a build artifact — hand edits are
overwritten, and --check (also run automatically by the SessionStart hook) tells you
when the file and the workspace have diverged. Commit it like any other generated file.
Claude Code plugin (skill + enforcement)
claude-plugin/ bundles three layers so the feature is reliable, not just possible:
Hands —
.mcp.jsonwires the MCP server above (setALABASTA_SITE_URL+ALABASTA_API_KEYin your env).Training —
skills/task-resolution/SKILL.mdteaches the agent the resolution protocol, format, and invariants (preserve scope; separate verified from unverified; no conversational text).Enforcement —
hooks/stop.py(a Stop hook) blocks the agent from finishing when it edited code for a linked Alabasta task but never submitted a resolution. It nudges at most twice, then allows the stop, so it can never trap a session. Task linkage comes fromALABASTA_TASK_IDor a branch name containing an identifier (e.g.tom/TOM-24-fix).hooks/rules_drift.py(a SessionStart hook) warns when the repo's emitted rules file has drifted from the workspace. Advisory only — it never blocks, and fails open on any error.
Requires python3 (stdlib only). Install it via the bundled marketplace:
/plugin marketplace add cowboyshibuya/alabasta-agent-bridge # or a local path to this repo
/plugin install alabasta@alabastaThe marketplace catalog is .claude-plugin/marketplace.json at the repo root; the plugin
source is the self-contained claude-plugin/ directory. (Relative-path sources need a git or
local marketplace add, not a bare URL to the JSON file.) Alternatively, copy
hooks/hooks.json into your .claude/settings.json and the skill into .claude/skills/.
Develop
bun install # or npm install
npm run build # tsc -> dist/
node dist/index.jsRoadmap
Done: MCP server (hands), resolution skill (training), Stop-hook enforcement
(Claude Code and Codex — see codex/), the alabasta work CLI
launcher, Git/CI/PR enrichment (alabasta_collect_git_context), the
marketplace-installable Claude Code plugin bundle, and Layer 0 standing rules
(standing context, rules sync + drift hook, rule citation at the write
boundary). Next: a remote HTTP
transport (enabling per-user OAuth) and automated CI publishing — see
DEVELOPMENT.md.
Contributing / maintaining this repo
See DEVELOPMENT.md — what MCP is, how the pieces fit together, how to add a new tool, and how to publish a new version (including the exact failure modes hit the first time and how to avoid them).
Available Tools
7 toolsalabasta_collect_git_contextCollect Git/CI contextA
Gather real diff stat, commits, PR state, and CI checks from the local repo (git + gh). Call before submitting and merge the result into alabasta_submit_task_resolution. Best-effort — missing pieces are omitted.
Inputs: baseRef.
alabasta_get_taskGet Alabasta taskA
Read an Alabasta task (title, description, status, priority) before editing. Pass taskId or identifier (e.g. TOM-24).
Inputs: taskId, identifier.
alabasta_list_my_tasksList my Alabasta tasksA
List tasks assigned to you, optionally filtered by status.
Inputs: status.
alabasta_mark_ready_for_reviewMark task ready for reviewA
Move a task into review without submitting a full resolution.
Inputs: taskId.
alabasta_report_blockerReport a blockerA
Record why the task could not be completed, for a human to triage.
Inputs: reason (required), taskId.
alabasta_start_task_workStart work on a taskB
Mark a task in progress before you begin editing.
Inputs: taskId.
alabasta_submit_task_resolutionSubmit task resolutionA
Submit a STRUCTURED resolution after completing work. Moves the task to review for a human to accept — it never marks the task done and never edits the task description. Distinguish verified from unverified claims. Do not include conversational prompts.
Inputs: outcome (required), summary (required), model, checks, +15 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct action in the task workflow: reading, listing, starting work, gathering context, submitting a resolution, moving to review, and reporting blockers. No two tools overlap in purpose; even submit vs mark-ready are differentiated by whether a resolution is included.
All tools follow the consistent pattern alabasta_<verb>_<object> using snake_case. Verbs are specific and descriptive (get, list, start, collect, submit, mark, report), and objects clarify the target (task, git_context, resolution).
Seven tools is well within the ideal 3-15 range and each tool serves a necessary step in the workflow. The count is neither bloated nor sparse, and each tool has a clear role without redundancy.
The tool set covers the full lifecycle of task work: retrieve, list, begin, gather supporting context, submit outcome, escalate for review, or report a blocker. No critical workflow step is missing; the human-in-the-loop acceptance is intentionally outside the agent's scope but the agent has all needed actions to complete and hand off.
Related MCP Connectors
Task tracking built for coding agents. Work is leased, so two agents never take the same SubTask.
Hand tasks, bugs and finished work to AI coding agents, and get back a write-up with evidence.
Task management for teams building with AI agents. Agents claim tasks and report progress.
Hosted coding agent: start, follow up on and stop tasks that can open GitHub pull requests.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to interact with ClawWork task management, allowing them to access task feeds, claim and complete tasks, post comments, and submit artifacts.50 npmMIT
- AlicenseNot gradedqualityCmaintenanceConnects AI assistants to a self-hosted workflow layer so they can create jobs, browse available work, claim tasks, update status, retrieve job details, share structured context, and record review or approval events through exposed tools and prompts.6Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to read a task's live brief and update progress, checkpoint, hand off, create, and list tasks from within their own editor. A newly connected chat receives the current task state automatically, so work continues without re-explaining context.5Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables agents to discover and configure model routing, delegate coding tasks with context files, scope restrictions, and verification, and resume existing sessions with delta instructions or review feedback.MIT