mcp
v1.17.0chamba MCP server — orchestration, workspace, worktree and Obsidian tools for any MCP-capable editor
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chamba_workspace_show Show workspace
Show the current workspace map. Reads `.chamba/workspace.md` from the workspace root and returns its contents. If no workspace file exists yet, says so — the model can then run chamba_workspace_init to create one.
chamba_workspace_init Init workspace
Scan the workspace and generate `.chamba/workspace.md` (description, languages, framework, conventions, active projects, folder map). Respects .gitignore/.dockerignore and never reads node_modules or binaries. If the file already exists it is NOT overwritten — its current contents are returned. When no Obsidian vault is available, it bootstraps a GLOBAL vault outside your repos (~/.chamba/vault) and seeds a "Workspace overview" note; a vault found inside a git repo gets its artifacts gitignored (disable with createVault: false).
| Parameter | Type | Description |
|---|---|---|
createVault | boolean | Bootstrap an Obsidian vault at the root when none is found (default true). |
root | string | Workspace root to scan. Defaults to the directory chamba runs in. |
chamba_workspace_reload Reload workspace
Re-scan the workspace and return a diff against the current `.chamba/workspace.md`. NEVER overwrites the file — the user may have hand-edited it. The model decides whether to apply changes.
chamba_load_context Load context
Load context for a task: a summary of the workspace plus, when an Obsidian vault is available, a relevance map of topics and notes (mapa mode) or the most relevant notes (keyword search). Returns a markdown block the model can reason over before planning. When mapa is present in structuredContent, use chamba_vault_navigate on each nodo.ruta to explore the knowledge network.
| Parameter | Type | Description |
|---|---|---|
task * | string | The task you are about to work on. |
includeObsidian | boolean | Search the Obsidian vault for relevant notes (default true). |
includeRules | boolean | Include each repo's coding rules across editors (default true). |
chamba_load_skills Load skills
Find reusable skills/playbooks relevant to a task (NO LLM). Scans `.chamba/skills/*.md` (project, then ~/.chamba/skills), matches the task against each skill's description, and returns the best matches WITH their full body, plus the list of all available skills. Call it at the start of a task to reuse team conventions/playbooks. Ships empty — create `.chamba/skills/<name>.md` with frontmatter { name, description, scope? } to fill it.
| Parameter | Type | Description |
|---|---|---|
task * | string | The task/ticket to find relevant skills for. |
max | integer | Max skills to return with full body (default 3). |
chamba_load_design Load design source
Resolve the design source(s) relevant to a task (NO LLM). Scans `.chamba/design/*.md` (project, then ~/.chamba/design) — each pointer LINKS an external design: a Figma URL, a folder of mockups/specs, and/or a standalone prototype (.html/.zip). Returns the best matches with their brief, the Figma link, and a listing of the folder assets (image + prototype paths for the editor to open; specs inline), plus the saved UI-architecture preference. chamba links and lists — your editor's model + Figma MCP/browser does the visual work. Ships empty: create `.chamba/design/<name>.md` (or run /design)…
| Parameter | Type | Description |
|---|---|---|
task * | string | The task/ticket to find a relevant design source for. |
max | integer | Max design sources to return with assets (default 3). |
chamba_design_prefs Design architecture preference
Get or set the saved UI-architecture preference (NO LLM), so the planner asks once and reuses it. Call with no args to READ the current preference; pass `web` and/or `mobile` to SAVE it (e.g. web="atomic" for Atomic Design, mobile="screens" for Expo screens+components). Web and mobile are separate. Stored in `.chamba/design/conventions.json`. Suggested values are returned, but any string is accepted.
| Parameter | Type | Description |
|---|---|---|
mobile | string | Mobile (Expo/RN) architecture to save, e.g. "screens", "atomic". |
web | string | Web UI architecture to save, e.g. "atomic", "feature-sliced". |
chamba_summarize_to_vault Summarize to vault
Escribe una nota de resumen estructurada en el vault de Obsidian. Una sola nota puede tener varios temas (1-5); nunca crees notas separadas por tema. Lo desconocido va como propuesta, no lo inventes. Agrupa notas bajo `proyectos/[<owner-repo>/]<fecha>-<slug>.md` con frontmatter YAML válido. Devuelve la ruta escrita, advertencias, temas aplicados/propuestos, árbol compacto y 5 nodos más cercanos.
| Parameter | Type | Description |
|---|---|---|
content * | string | Markdown body (summary, plan, decisions, next steps). |
title * | string | Note title. |
aliases | array | Aliases Obsidian de la nota. |
keywords | array | Palabras clave (≤10, cada ≤40 chars). |
projectSlug | string | Optional slug for the filename. |
related | array | Rutas relativas al vault de notas relacionadas. |
summary | string | Resumen de 1 línea (≤200 chars). |
temas | array | 1 a 5 temas del vocabulario. |
type | string | Tipo de nota (default: resumen). |
workItem | string | ID del work item (hu-..., cu-...) que enlaza plan ↔ resumen. |
chamba_vault_status Vault status
Diagnose the Obsidian vault connection: workspace root and source (env/cwd), the active parche binding (workspace, global, or none), the resolved vault path, whether it was found, and the markdown notes chamba can actually see. Use this to confirm the vault points at the vault root (the folder containing `.obsidian`), not at `.obsidian` itself.
chamba_doctor Doctor
Run environment health checks (NO LLM) and return a pass/warn/fail report: Node version, git, whether the cwd is a git repo, the `.chamba/workspace.md` file, agent config validity, the Obsidian vault connection, the MCP registration (warns on duplicate/inconsistent chamba entries across editor configs), the log directory, and worktrees. Use it to see what to fix before orchestrating. Same checks as `npx @chamba/mcp doctor`.
chamba_resource_budget Resource budget (safe parallelism)
Compute a SAFE parallelism budget from the machine (NO LLM): reads live RAM, CPU cores and load, and returns how many worktrees/subagents to run in parallel before a multi-repo fan-out exhausts memory. Call it BEFORE launching per-repo workers in /ticket; if `recommended` < the repos you have, run them in waves of `recommended`. Respects `worktrees.maxParallel` / `worktrees.perWorkerMemMB` in .chamba/config.json.
| Parameter | Type | Description |
|---|---|---|
perWorkerMemMB | integer | Override the estimated RAM per worker, in MB (default 2048). |
requested | integer | How many workers you want to run (e.g. number of repos touched). |
chamba_qa_capabilities QA capabilities (web + mobile probe)
Probe what acceptance QA can run against this project + machine (NO LLM): detects whether it is web / mobile (React Native / Expo), which E2E tooling ships (Playwright/Cypress/Detox/Maestro/Appium), and enumerates the iOS simulators / Android emulators actually available (read-only: `xcrun simctl` / `adb` / `emulator -list-avds` — it lists, never boots). Call it at the start of a QA run so the qa agent picks the right mode. chamba doesn't drive the device — your editor's mobile MCP or the terminal does.
chamba_generate_plan Generate plan
Generate a structured plan TEMPLATE (not a finished plan) for a task: goal, acceptance criteria, subtasks with suggested workers, risks, and files likely touched. The editor model fills the placeholders, then calls chamba_review_plan. No LLM is used here.
| Parameter | Type | Description |
|---|---|---|
task * | string | What the plan should accomplish. |
context | string | Context from chamba_load_context, if any. |
chamba_review_plan Review plan
Review a plan with programmatic heuristics (NO LLM): checks for acceptance criteria, tests, subtasks with assigned workers, concrete descriptions, files outside the workspace, and risk assessment for sensitive areas. Returns { approved, issues, suggestions, riskFlags }.
| Parameter | Type | Description |
|---|---|---|
plan * | string | The plan markdown to review. |
task * | string | The task the plan is for. |
context | string | Context from chamba_load_context, if any. |
chamba_triage_ticket Triage ticket
Check a support/bug ticket for completeness with programmatic heuristics (NO LLM): flags whether it has reproduction steps, expected-vs-actual, environment, scope, acceptance criteria and severity. Returns { present, missing, questions, enoughToStart, score }. Use it in /triage to surface what the ticket is missing before diagnosing — the questions are ready to paste back to the reporter.
| Parameter | Type | Description |
|---|---|---|
ticket * | string | The ticket / bug report text to check for completeness. |
chamba_classify_task Classify task
Clasifica una tarea en una de 4 rutas (trivial, small, substantial, risky) usando heurísticas deterministas sin LLM: señales de riesgo (auth, DB, pagos, crypto, PII, prod, secrets), completitud del ticket, repos involucrados y señales de trivialidad. Devuelve { route, reasons (≤5, en español), signals, confidence, overridable }. Llámala después de triage_ticket para decidir el flujo de /ticket o /orq.
| Parameter | Type | Description |
|---|---|---|
task * | string | Descripción de la tarea o ticket a clasificar. |
acceptanceCriteria | array | Criterios de aceptación del ticket (array de strings). ≥4 criterios implican ≥ substantial. |
knownRepos | array | Repos conocidos del workspace para detectar repos no previstos. |
planText | string | Texto del plan si ya existe (-p flag). |
repos | array | Repositorios involucrados (nombres). ≥2 implica substantial. |
chamba_task_metrics Task metrics
Registra métricas de progreso para un ticket (sin texto libre, sin secretos). Acciones: start (inicia el seguimiento, abre la fase context), event (planReview|verify|escalation|override|phase_start|phase_end|human_wait_start|human_wait_end), end (cierra y persiste la métrica). `phase` y `reason` son enums cerrados. Los datos se guardan en <wsRoot>/.chamba/metrics/tasks.jsonl. chamba no ve tokens; usa este tool en cada hito del flujo /ticket o /orq.
| Parameter | Type | Description |
|---|---|---|
action * | string | Acción a ejecutar. |
workItem * | string | ID del ticket o tarea. Solo alfanumérico, guiones y puntos (ej: CHAMBA-020). |
delivered | boolean | [end] ¿Se entregó el ticket? |
kind | string | [event] planReview|verify|escalation|override|phase_start|phase_end|human_wait_start|human_wait_end. |
overridden | boolean | [start] ¿El agente cambió la ruta sugerida? |
phase | string | [event/phase_start|phase_end] Fase del flujo (enum cerrado). |
qaResult | string | [end] Resultado de QA. |
reason | string | [event/human_wait_start] Motivo de la pausa al humano (enum cerrado). |
routeFinal | [start/end] Ruta final ejecutada (si difiere de routeSuggested). | |
routeSuggested | string | [start] Ruta sugerida por chamba_classify_task. |
source | string | [start] Fuente: "ticket" para /ticket, "orq" para /orq. |
testsPassed | boolean | [end] ¿Pasaron todos los tests? |
toRoute | [event/escalation] Nueva ruta al escalar. |
chamba_task Task document
Documento de tarea vivo en el vault + cierre con evidencia real. Acciones: open (crea el documento, idempotente), update (progreso/siguiente paso/checklist/estado de AC — nunca cambia el texto de un AC ni lo descarta), scope_change (add|reopen|discard — única vía a «descartado», exige reason y requestedByUser en discard), evidence (copia evidencia QA con límites), verify (corre los comandos configurados en repos.<repo>.verify), close (compuerta: no cierra sin evidencia real, salvo partial+approvedByUser), get (estado + siguiente paso + worktreePath, para resume).
| Parameter | Type | Description |
|---|---|---|
action * | string | |
workItem * | string | |
acId | ||
acUpdates | array | |
approvedByUser | boolean | |
change | string | |
checklist | array | |
criteria | array | |
kind | string | |
nextStep | string | |
partial | boolean | |
progress | string | |
reason | string | |
repos | array | |
request | string | |
requestedByUser | boolean | |
route | string | |
sourcePath | string | |
text | string | |
title | string | |
worktreePath | string |
chamba_save_plan Save plan
Guarda un plan en el vault de Obsidian bajo `plans/[<owner-repo>/]<fecha>-<slug>.md`. Una sola nota puede tener varios temas (1-5); nunca crees notas separadas por tema. Lo desconocido va como propuesta, no lo inventes. Devuelve la ruta guardada, advertencias, temas aplicados/propuestos, árbol compacto y 5 nodos más cercanos.
| Parameter | Type | Description |
|---|---|---|
content * | string | The plan markdown (goal, acceptance criteria, subtasks…). |
title * | string | Plan title — usually the ticket id or task name. |
aliases | array | Aliases Obsidian de la nota. |
keywords | array | Palabras clave (≤10, cada ≤40 chars). |
projectSlug | string | Optional slug for the filename. |
related | array | Rutas relativas al vault de notas relacionadas. |
summary | string | Resumen de 1 línea (≤200 chars). |
temas | array | 1 a 5 temas del vocabulario. |
workItem | string | ID del work item (hu-..., cu-...) que enlaza plan ↔ resumen. |
chamba_create_worktree Create worktree
Create an isolated git worktree for a task/worker under `.chamba/worktrees/<task>/<worker>/` on branch `chamba/<date>-<task>/<worker>`. If the directory is not a git repo, returns an error and the worker should use the main cwd instead.
| Parameter | Type | Description |
|---|---|---|
taskSlug * | string | Short task identifier (slugified for git). |
workerId * | string | Worker identifier, e.g. "implementer". |
baseBranch | string | Branch to base the worktree on. |
workItem | string | ID de la tarea activa en chamba_task_metrics, para atribuir la duración de git a su fase `setup`. Opcional. |
chamba_list_worktrees List worktrees
List git worktrees with dirty/stale/ahead-behind flags and file overlap (NO LLM). Never merges. Prefer chamba_worktree_status for the full structured report.
chamba_cleanup_worktree Cleanup worktree
Remove a worktree directory while KEEPING its branch. Never deletes the branch and never merges — the branch stays for you to review and merge by hand. Runs `git worktree remove` without --force, so a dirty worktree fails loudly.
| Parameter | Type | Description |
|---|---|---|
branch * | string | Branch whose worktree directory should be removed. |
chamba_create_worktrees Create worktrees (multi-repo)
Create git worktrees for a ticket across the repos it touches, driven by the `worktrees` block of .chamba/config.json (layout, branch prefix, base branch, env copy, editor workspace, optional per-worktree PORT). Reuses an existing local/remote branch or forks a new one from the base. If `worktrees.command` is set, runs that command instead. Never merges, never pushes — branches are left open for you.
| Parameter | Type | Description |
|---|---|---|
ticket * | string | Ticket id, e.g. TICKET-123. |
repos | array | Repos to act on; defaults to config.worktrees.repos or autodetected git repos. |
workItem | string | ID de la tarea activa en chamba_task_metrics, para atribuir la duración de git a su fase `setup`. Opcional. |
chamba_cleanup_worktrees Cleanup worktrees (multi-repo)
Remove a ticket's git worktrees across its repos. Removes only the worktree directories (no --force), KEEPS every branch for you to review and merge by hand. Returns the suggested `git merge --no-ff` command per repo.
| Parameter | Type | Description |
|---|---|---|
ticket * | string | Ticket id whose worktrees to remove. |
repos | array | Repos to clean; defaults like create. |
chamba_worktree_status Worktree status (overlap)
Inspect git worktrees (NO LLM): dirty, ahead/behind base, unpushed, stale, changed files, and file overlap across worktrees. Never merges. Call this before fanning out workers; if files overlap, run those worktrees sequentially.
| Parameter | Type | Description |
|---|---|---|
baseBranch | string | Branch to compare against (default from config). |
repos | array | Repo names or paths; default autodetect or the current git repo. |
chamba_conflict_preview Conflict preview (merge-tree)
Dry-run merge conflicts with `git merge-tree` (NO LLM, NEVER merges): each worktree branch vs the base branch, plus pairwise among topic branches. Returns conflicted paths so you can sequence work instead of resolving later.
| Parameter | Type | Description |
|---|---|---|
baseBranch | string | Base branch (default from config). |
branches | array | Topic branches to compare; default: non-primary worktree branches. |
chamba_partition Partition parallel work
Partition work into parallel waves (NO LLM) so overlapping file sets do not run together. Observed paths (from worktrees) can block when failOnOverlap is on; paths predicted from a plan are warnings only.
| Parameter | Type | Description |
|---|---|---|
fromWorktrees | boolean | Use observed changed files from git worktrees. |
items | array | Explicit items to partition (wins over plan/worktrees). |
plan | string | Plan markdown; extracts "files likely touched". |
repos | array |
chamba_worktree_env Worktree env (ports)
Assign a unique localhost PORT per worktree and upsert it in `.env.local` (NO LLM). Skips occupied ports; never kills a process. No-op unless `worktrees.ports.enabled` is true. Does not copy node_modules.
| Parameter | Type | Description |
|---|---|---|
repos | array | |
ticket | string | Assign ports for this ticket's planned worktrees. |
worktreePath | string | Assign a port for a single worktree directory. |
chamba_remember Remember
Persist a piece of knowledge across sessions as an editable markdown file. With an active parche vault: writes to `<vault>/memory/<key>.md` and syncs. Without parche: writes to `.chamba/memory/<key>.md` in the cwd. Re-remembering an existing key appends a timestamped section instead of overwriting.
| Parameter | Type | Description |
|---|---|---|
content * | string | What to remember (markdown). |
key * | string | Short identifier, e.g. "auth-decisions". |
tags | array | Optional tags for search. |
chamba_recall Recall
Search persisted memories (case-insensitive substring over key, tags and content). With an active parche vault: pulls if stale, then searches both the vault memory (labelled "grupo <slug>") and personal local memory (labelled "personal, solo esta máquina"). Without parche: searches only the local .chamba/memory/.
| Parameter | Type | Description |
|---|---|---|
query * | string | Keywords to search for. |
chamba_get_agent_config Get agent config
Return the configured model + effort hint for a given agent role (orchestrator, planner, reviewer, implementer, tester, summarizer, researcher). chamba does not call any model — this is guidance the editor's own model can use to decide how to delegate. Reads ~/.chamba/config.json and ./.chamba/config.json (project overrides global); falls back to built-in defaults.
| Parameter | Type | Description |
|---|---|---|
role * | string | The agent role to get a model + effort hint for. |
chamba_vault_join Vault join
Join a parche group vault using an invite code or link. Creates the local vault, saves credentials, and runs the first sync. If the vault directory has existing files, returns needsConfirmation unless confirmUpload:true. The token is never returned. Note: to use a vault directory inside a git repo, use the CLI with --allow-in-repo.
| Parameter | Type | Description |
|---|---|---|
code * | string | Invite code (XXXX-XXXX) or full link (https://server/j/XXXX-XXXX). |
email * | string | Your email address. |
name * | string | Your display name for the group. |
confirmUpload | boolean | Set to true to confirm uploading existing files in the vault directory. Required when the vault has files and you want to proceed. |
deviceLabel | string | Label for this device (default: hostname). Omit to use hostname. |
dir | string | Absolute local path for the vault directory. ~ is expanded. Omit to use the default location (resolveVaultDir). |
scope | string | Where to save the parche binding: "workspace" (inside the nearest .chamba/parche.json) or "global" (~/.chamba/parche.json). Required when inside a workspace. |
chamba_vault_link Vault link
Re-link an existing parche vault credential to a new local directory. Resets the sync state and runs the adoption gate. If the directory has existing files, returns needsConfirmation unless confirmUpload:true. Does not move or delete the old directory. Note: to link inside a git repo, use the CLI with --allow-in-repo.
| Parameter | Type | Description |
|---|---|---|
dir * | string | Absolute local path for the vault directory. ~ is expanded. |
slug * | string | The vault slug to re-link. |
confirmUpload | boolean | Set to true to confirm uploading existing files. Required when the vault has files and you want to proceed. |
chamba_vault_unlink Vault unlink
Remove the parche.json binding for the given scope (workspace or global). Does not remove credentials or vault files — only the binding file.
| Parameter | Type | Description |
|---|---|---|
scope | string | Which binding to remove: "workspace" (.chamba/parche.json in the workspace root) or "global" (~/.chamba/parche.json). Defaults to "workspace" if inside a workspace, otherwise "global". |
chamba_vault_resync Vault resync
Reset a vault state in-place and re-adopt it (re-download from the server). Useful when local state is corrupted. If the vault has existing files, returns needsConfirmation unless confirmUpload:true. Does not change the vault directory or credentials.
| Parameter | Type | Description |
|---|---|---|
slug * | string | The vault slug to resync. |
confirmUpload | boolean | Set to true to confirm uploading existing files. Required when the vault has files and you want to proceed. |
chamba_vault_sync Vault sync
Sync one or all parche group vaults with the remote server. Without a slug, syncs every vault that has a credential.
| Parameter | Type | Description |
|---|---|---|
slug | string | Vault slug to sync. Omit to sync all vaults. |
chamba_vault_allow_secret Vault allow-secret (command only)
Mark a secret-scanner finding as a false positive. This tool does NOT write anything — it validates the fingerprint/path and returns the exact `vault allow-secret` CLI command. Only a person running that command in their own interactive terminal (retyping the path to confirm) can actually exempt the finding — this prevents an agent from self-confirming a possible secret for upload.
| Parameter | Type | Description |
|---|---|---|
fingerprint * | string | The 12-hex-char fingerprint reported for the finding (never the value). |
path * | string | The vault-relative path the finding was reported for. |
chamba_parche_status Parche status
Show status for all parche group vaults: server, slug, role, last sync, pending changes, and vault path. Does not return the token.
chamba_vault_topics Vault topics
Gestiona el vocabulario de temas del vault de Obsidian. Acciones: list (árbol + sugerencias), bootstrap (estadísticas para /vault init), apply (escribir VOCABULARIO.md — dryRun:true por defecto, muestra el contenido exacto; NUNCA llames apply con dryRun:false en el mismo turno que bootstrap ni sin aprobación explícita del usuario en un turno aparte), add/alias (modifican VOCABULARIO.md — dryRun:true por defecto, muestra el VOCABULARIO.md resultante; solo escribe con dryRun:false tras confirmación explícita del usuario), promote (mueve un TEMA propuesto al vocabulario — dryRun:true…
| Parameter | Type | Description |
|---|---|---|
action * | string | Acción a ejecutar. |
alias | string | Alias a añadir (para alias). |
description | string | Descripción del nodo (para add). |
dryRun | boolean | Si true (default para apply y promote), solo muestra el resultado sin escribir. |
generar_bases | boolean | Si true, genera archivos .base por tema raíz. |
nodes | array | Nodos para apply. |
path | string | Ruta del tema (para add/alias/promote). |
replace | boolean | Para apply: si true, sobreescribe VOCABULARIO.md existente. |
umbral_dividir | number | Máximo de notas antes de dividir un tema. |
umbral_promover | number | Mínimo de notas para promover un tema. |
chamba_vault_classify Vault classify
Clasifica notas sin tema del vault de Obsidian. list: muestra notas sin clasificar (paginadas, 50 por página). apply: asigna temas a las notas indicadas. IMPORTANTE: dryRun:true por defecto — muestra el diff sin escribir. La confirmación explícita del usuario es obligatoria antes de llamar con dryRun:false. Máximo 50 entradas por llamada.
| Parameter | Type | Description |
|---|---|---|
action * | string | Acción: list para ver notas sin clasificar, apply para clasificarlas. |
dryRun | boolean | Si true (default), solo muestra el diff sin escribir. |
entries | array | Entradas a clasificar (para apply, máximo 50). |
page | number | Página (para list, default 1). |
chamba_vault_promote Vault promote (note)
Promueve una o más NOTAS de `estado: propuesto` a `estado: canonico` (marca que un humano ya las revisó). No confundir con `chamba_vault_topics action:'promote'`, que promueve un TEMA propuesto al vocabulario — esta tool nunca toca temas/VOCABULARIO.md. IMPORTANTE: dryRun:true por defecto — muestra el diff sin escribir. La confirmación explícita del usuario es obligatoria antes de llamar con dryRun:false.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Rutas relativas al vault de las notas a promover. |
dryRun | boolean | Si true (default), solo muestra el diff sin escribir. |
chamba_vault_reindex Vault reindex
Reconstruye los archivos derivados del vault (INDEX.md generados, hubs de temas, bases). Sin adoptManual: corre reindex normal (dryRun:false por defecto). Con adoptManual: muestra el plan de adopción primero (dryRun:true por defecto) y solo adopta tras la confirmación explícita del usuario con dryRun:false. NUNCA automático. La adopción renombra INDEX.md manual a "INDEX (manual).md" y genera uno nuevo.
| Parameter | Type | Description |
|---|---|---|
adoptManual | array | Carpetas cuyo INDEX.md manual se adoptará. Con adoptManual, dryRun es true por defecto. Requiere confirmación explícita del usuario antes de pasar dryRun:false. |
dryRun | boolean | Si true, calcula sin escribir. Default: false (salvo si se pasa adoptManual, donde default es true). |