mcp

v1.17.0
@chamba/mcp Checked 2 days ago Published 16 days ago

chamba 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).

ParameterTypeDescription
createVaultbooleanBootstrap an Obsidian vault at the root when none is found (default true).
rootstringWorkspace 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.

ParameterTypeDescription
task *stringThe task you are about to work on.
includeObsidianbooleanSearch the Obsidian vault for relevant notes (default true).
includeRulesbooleanInclude 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.

ParameterTypeDescription
task *stringThe task/ticket to find relevant skills for.
maxintegerMax 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)…

ParameterTypeDescription
task *stringThe task/ticket to find a relevant design source for.
maxintegerMax 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.

ParameterTypeDescription
mobilestringMobile (Expo/RN) architecture to save, e.g. "screens", "atomic".
webstringWeb 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.

ParameterTypeDescription
content *stringMarkdown body (summary, plan, decisions, next steps).
title *stringNote title.
aliasesarrayAliases Obsidian de la nota.
keywordsarrayPalabras clave (≤10, cada ≤40 chars).
projectSlugstringOptional slug for the filename.
relatedarrayRutas relativas al vault de notas relacionadas.
summarystringResumen de 1 línea (≤200 chars).
temasarray1 a 5 temas del vocabulario.
typestringTipo de nota (default: resumen).
workItemstringID 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.

ParameterTypeDescription
perWorkerMemMBintegerOverride the estimated RAM per worker, in MB (default 2048).
requestedintegerHow 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.

ParameterTypeDescription
task *stringWhat the plan should accomplish.
contextstringContext 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 }.

ParameterTypeDescription
plan *stringThe plan markdown to review.
task *stringThe task the plan is for.
contextstringContext 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.

ParameterTypeDescription
ticket *stringThe 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.

ParameterTypeDescription
task *stringDescripción de la tarea o ticket a clasificar.
acceptanceCriteriaarrayCriterios de aceptación del ticket (array de strings). ≥4 criterios implican ≥ substantial.
knownReposarrayRepos conocidos del workspace para detectar repos no previstos.
planTextstringTexto del plan si ya existe (-p flag).
reposarrayRepositorios 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.

ParameterTypeDescription
action *stringAcción a ejecutar.
workItem *stringID del ticket o tarea. Solo alfanumérico, guiones y puntos (ej: CHAMBA-020).
deliveredboolean[end] ¿Se entregó el ticket?
kindstring[event] planReview|verify|escalation|override|phase_start|phase_end|human_wait_start|human_wait_end.
overriddenboolean[start] ¿El agente cambió la ruta sugerida?
phasestring[event/phase_start|phase_end] Fase del flujo (enum cerrado).
qaResultstring[end] Resultado de QA.
reasonstring[event/human_wait_start] Motivo de la pausa al humano (enum cerrado).
routeFinal[start/end] Ruta final ejecutada (si difiere de routeSuggested).
routeSuggestedstring[start] Ruta sugerida por chamba_classify_task.
sourcestring[start] Fuente: "ticket" para /ticket, "orq" para /orq.
testsPassedboolean[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).

ParameterTypeDescription
action *string
workItem *string
acId
acUpdatesarray
approvedByUserboolean
changestring
checklistarray
criteriaarray
kindstring
nextStepstring
partialboolean
progressstring
reasonstring
reposarray
requeststring
requestedByUserboolean
routestring
sourcePathstring
textstring
titlestring
worktreePathstring

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.

ParameterTypeDescription
content *stringThe plan markdown (goal, acceptance criteria, subtasks…).
title *stringPlan title — usually the ticket id or task name.
aliasesarrayAliases Obsidian de la nota.
keywordsarrayPalabras clave (≤10, cada ≤40 chars).
projectSlugstringOptional slug for the filename.
relatedarrayRutas relativas al vault de notas relacionadas.
summarystringResumen de 1 línea (≤200 chars).
temasarray1 a 5 temas del vocabulario.
workItemstringID 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.

ParameterTypeDescription
taskSlug *stringShort task identifier (slugified for git).
workerId *stringWorker identifier, e.g. "implementer".
baseBranchstringBranch to base the worktree on.
workItemstringID 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.

ParameterTypeDescription
branch *stringBranch 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.

ParameterTypeDescription
ticket *stringTicket id, e.g. TICKET-123.
reposarrayRepos to act on; defaults to config.worktrees.repos or autodetected git repos.
workItemstringID 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.

ParameterTypeDescription
ticket *stringTicket id whose worktrees to remove.
reposarrayRepos 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.

ParameterTypeDescription
baseBranchstringBranch to compare against (default from config).
reposarrayRepo 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.

ParameterTypeDescription
baseBranchstringBase branch (default from config).
branchesarrayTopic 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.

ParameterTypeDescription
fromWorktreesbooleanUse observed changed files from git worktrees.
itemsarrayExplicit items to partition (wins over plan/worktrees).
planstringPlan markdown; extracts "files likely touched".
reposarray

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.

ParameterTypeDescription
reposarray
ticketstringAssign ports for this ticket's planned worktrees.
worktreePathstringAssign 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.

ParameterTypeDescription
content *stringWhat to remember (markdown).
key *stringShort identifier, e.g. "auth-decisions".
tagsarrayOptional 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/.

ParameterTypeDescription
query *stringKeywords 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.

ParameterTypeDescription
role *stringThe 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.

ParameterTypeDescription
code *stringInvite code (XXXX-XXXX) or full link (https://server/j/XXXX-XXXX).
email *stringYour email address.
name *stringYour display name for the group.
confirmUploadbooleanSet to true to confirm uploading existing files in the vault directory. Required when the vault has files and you want to proceed.
deviceLabelstringLabel for this device (default: hostname). Omit to use hostname.
dirstringAbsolute local path for the vault directory. ~ is expanded. Omit to use the default location (resolveVaultDir).
scopestringWhere to save the parche binding: "workspace" (inside the nearest .chamba/parche.json) or "global" (~/.chamba/parche.json). Required when inside a workspace.

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.

ParameterTypeDescription
slug *stringThe vault slug to resync.
confirmUploadbooleanSet 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.

ParameterTypeDescription
slugstringVault 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.

ParameterTypeDescription
fingerprint *stringThe 12-hex-char fingerprint reported for the finding (never the value).
path *stringThe 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…

ParameterTypeDescription
action *stringAcción a ejecutar.
aliasstringAlias a añadir (para alias).
descriptionstringDescripción del nodo (para add).
dryRunbooleanSi true (default para apply y promote), solo muestra el resultado sin escribir.
generar_basesbooleanSi true, genera archivos .base por tema raíz.
nodesarrayNodos para apply.
pathstringRuta del tema (para add/alias/promote).
replacebooleanPara apply: si true, sobreescribe VOCABULARIO.md existente.
umbral_dividirnumberMáximo de notas antes de dividir un tema.
umbral_promovernumberMí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.

ParameterTypeDescription
action *stringAcción: list para ver notas sin clasificar, apply para clasificarlas.
dryRunbooleanSi true (default), solo muestra el diff sin escribir.
entriesarrayEntradas a clasificar (para apply, máximo 50).
pagenumberPá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.

ParameterTypeDescription
paths *arrayRutas relativas al vault de las notas a promover.
dryRunbooleanSi 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.

ParameterTypeDescription
adoptManualarrayCarpetas 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.
dryRunbooleanSi true, calcula sin escribir. Default: false (salvo si se pasa adoptManual, donde default es true).

chamba_vault_navigate Vault navigate

Navega la red de conocimiento del vault de Obsidian. Flujo recomendado: 1) sin argumentos (o path:"INDEX.md") → vista raíz con temas, carpetas y conteos; 2) tema:"<ruta>" → vista de nodo con subtemas y notas directas; baja solo a subtemas cuya descripción sea pertinente; 3) path:"<nota>.md" readBody:true → lee el cuerpo de notas cuyo summary/keywords contengan ≥2 palabras clave de la tarea. Siempre empieza en raíz o en el mapa de chamba_load_context; evita readBody hasta confirmar pertinencia por summary.

ParameterTypeDescription
maxCharsintegerMáximo de caracteres del cuerpo (default 4000, máx 20000).
pathstringRuta relativa al vault (.md). "INDEX.md" → raíz; "temas/<nodo>.md" → nodo; otra ruta → nota.
readBodybooleanIncluir el cuerpo de la nota. Solo en vista de nota.
temastringRuta o alias de un tema (ej: "lms/cursos", "plataforma"). Resuelve alias.