loopctl-mcp-server 3.20.1 → 3.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -205,10 +205,10 @@ tool parameter.
205
205
  | `list_projects` | List all projects in the current tenant. |
206
206
  | `resolve_project` | Resolve a repo to its `project_id` in one cheap call — provide any of `slug`, `repo_url` (`git@github.com:owner/repo.git`, `https://github.com/owner/repo`, and bare `owner/repo` all match), or `name`. Precedence `slug > repo_url > name`, first match wins. Use the returned `id` to scope captures/recall (`memory_*`, `recall_context`). `404` `not_found` if nothing matches, `422` `no_identifier` if none supplied, `409` if a fuzzy identifier matches more than one active project. |
207
207
  | `create_project` | Create a new **work** project (epics/stories/custody). Requires orchestrator+ **and** a `human_anchored` tenant; an agent-rooted tenant gets `403 custody_tier_required` and should use `create_kb_scope`. |
208
- | `delete_project` | **Needs a user-role key:** `LOOPCTL_USER_KEY` verbatim when set, else the default key (orchestrator role is 403 `insufficient_role`). Archives the project (status `archived`); no rows are removed and its slug stays taken. |
208
+ | `delete_project` | **Needs a user-role key:** `LOOPCTL_USER_KEY` verbatim when set, else the default key (orchestrator role is 403 `insufficient_role`). Archives the project (status `archived`); no rows are removed and its slug stays taken. Refused 409 `repo_held_by_intake_source` while a live pr or chg intake source is bound to the project; revoke it first. |
209
209
  | `restore_project` | Restore an archived `kind: work` project, the reverse of `delete_project`; audited as `unarchived`. Orchestrator role or higher on a human-anchored tenant. Rejected (422) at the tenant's `max_projects` cap and for a kb scope (use `restore_kb_scope`). The only way to change a project's status back: PATCH refuses `status` with 422. |
210
- | `update_project` | PATCH a project's `name`, `slug`, `repo_url`, `description`, `tech_stack`, `mission` or `metadata`; a field left out is left alone, and a call naming none is refused locally. Status is never set here. Orchestrator role or higher on a human-anchored tenant, sent with `LOOPCTL_ORCH_KEY` verbatim (else `LOOPCTL_USER_KEY`). A `repo_url` another active project holds is refused 409 `repo_already_has_project`, naming that project in `existing_project_id`. |
211
- | `merge_project` | Merge one project into another (`POST /api/v1/projects/:id/merge_into`): every row moves to `target_project_id` in one transaction, the source is archived with `metadata.merged_into`, and a kb target becomes a work project when the source was one. `dry_run: true` reports per-table counts and conflicts and writes nothing. User role on a human-anchored tenant, sent with `LOOPCTL_USER_KEY` verbatim. 409 `merge_conflicts` lists rows both projects hold under one per-project unique key. |
210
+ | `update_project` | PATCH a project's `name`, `slug`, `repo_url`, `description`, `tech_stack`, `mission` or `metadata`; a field left out is left alone, and a call naming none is refused locally. Status is never set here. Orchestrator role or higher on a human-anchored tenant, sent with `LOOPCTL_ORCH_KEY` verbatim (else `LOOPCTL_USER_KEY`). A `repo_url` another active project holds is refused 409 `repo_already_has_project`, naming that project in `existing_project_id`. A `repo_url` change, clearing included, is refused 409 `repo_held_by_intake_source` while a live pr or chg intake source on the project names another repo (`intake_source_id`); revoke it first. |
211
+ | `merge_project` | Merge one project into another (`POST /api/v1/projects/:id/merge_into`): every row moves to `target_project_id` in one transaction, the source is archived with `metadata.merged_into`, and a kb target becomes a work project when the source was one. `dry_run: true` reports per-table counts and conflicts and writes nothing. User role on a human-anchored tenant, sent with `LOOPCTL_USER_KEY` verbatim. 409 `merge_conflicts` lists rows both projects hold under one per-project unique key. 409 `merge_strands_intake_source` when a live pr/chg intake source names a repo the target does not hold; a target with no repo claims the sources' repo (409 `repo_already_has_project` when another project holds it). |
212
212
  | `get_progress` | Get progress summary for a project, including story counts by status. Pass `include_cost=true` for cost data. |
213
213
  | `import_stories` | Import stories into a project from a structured payload (Epic 12 import format). Pass `merge: true` to add stories to epics that already exist (otherwise duplicates return 409). For large payloads, use `payload_path` to read JSON from disk instead of passing it inline. With `merge: true`, `report_orphans: true` adds `stories_orphaned` (the project's stories the payload does not mention; nothing is detached) — a signal only on a FULL round-trip of an export; without it the key is absent (#880). |
214
214
 
package/index.js CHANGED
@@ -4370,7 +4370,7 @@ const TOOLS = [
4370
4370
  {
4371
4371
  name: "delete_project",
4372
4372
  description:
4373
- "ARCHIVE a project (DELETE /api/v1/projects/:id sets status to archived; it removes no rows). Its epics, stories and audit entries stay, and an already-archived project is a no-op. The SLUG stays taken: slugs are unique per tenant across archived projects too, resolve_project by that slug still returns the archived project, create_project with it is refused 422, and archiving never releases it, so a new project needs a different one. The one way a slug is freed: update_project renaming the project's slug releases the old one. The way back: restore_project for a work project, restore_kb_scope for a kb scope. Sent with LOOPCTL_USER_KEY verbatim when it is set (a global LOOPCTL_API_KEY does not displace it), else with the default key. Refusals: 403 insufficient_role below user role, 403 custody_tier_required on an agent-rooted tenant (the human-anchor gate), 404 for an id not in your tenant.",
4373
+ "ARCHIVE a project (DELETE /api/v1/projects/:id sets status to archived; it removes no rows). Its epics, stories and audit entries stay, and an already-archived project is a no-op. The SLUG stays taken: slugs are unique per tenant across archived projects too, resolve_project by that slug still returns the archived project, create_project with it is refused 422, and archiving never releases it, so a new project needs a different one. The one way a slug is freed: update_project renaming the project's slug releases the old one. The way back: restore_project for a work project, restore_kb_scope for a kb scope. Sent with LOOPCTL_USER_KEY verbatim when it is set (a global LOOPCTL_API_KEY does not displace it), else with the default key. Refusals: 403 insufficient_role below user role, 403 custody_tier_required on an agent-rooted tenant (the human-anchor gate), 404 for an id not in your tenant, 409 repo_held_by_intake_source while a live pr or chg intake source is bound to the project (error.intake_source_id names it; revoke it with intake_source_revoke first).",
4374
4374
  inputSchema: {
4375
4375
  type: "object",
4376
4376
  properties: {
@@ -4401,7 +4401,7 @@ const TOOLS = [
4401
4401
  {
4402
4402
  name: "merge_project",
4403
4403
  description:
4404
- "MERGE one project into another (POST /api/v1/projects/:id/merge_into, US-52.2): every row of project_id (stories, epics, intake sources, channel posts and claims, articles, memories and the rest) moves to target_project_id in one transaction, project_id is archived with metadata.merged_into, and a kb target becomes a work project when project_id was one. The audit log and search telemetry keep naming project_id. Use it when a repo has two projects (a kb scope holding the repo_url and a '-delivery' work project): merge the work project INTO the kb scope, which keeps the channel id sessions already use. Run with dry_run: true first: it returns per-table counts and conflicts and writes nothing. A repeat call on an already-merged project returns already_merged: true and moves only rows written to the archived project since (run it again to sweep stragglers). A project-scoped token budget moves too. Sent with LOOPCTL_USER_KEY verbatim, else the default key. Refusals: 409 merge_conflicts when both projects hold a row under one per-project unique key (a story or epic number, a claim ref, a keyed channel post), with error.conflicts listing each; nothing moves. 422 for the same project twice, an archived target, or an archived project_id not merged into this target. 403 insufficient_role below user role, 403 custody_tier_required on an agent-rooted tenant, 404 for an id not in your tenant.",
4404
+ "MERGE one project into another (POST /api/v1/projects/:id/merge_into, US-52.2): every row of project_id (stories, epics, intake sources, channel posts and claims, articles, memories and the rest) moves to target_project_id in one transaction, project_id is archived with metadata.merged_into, and a kb target becomes a work project when project_id was one. The audit log and search telemetry keep naming project_id. Use it when a repo has two projects (a kb scope holding the repo_url and a '-delivery' work project): merge the work project INTO the kb scope, which keeps the channel id sessions already use. Run with dry_run: true first: it returns per-table counts and conflicts and writes nothing. A repeat call on an already-merged project returns already_merged: true and moves only rows written to the archived project since (run it again to sweep stragglers). A project-scoped token budget moves too. Sent with LOOPCTL_USER_KEY verbatim, else the default key. Refusals: 409 merge_conflicts when both projects hold a row under one per-project unique key (a story or epic number, a claim ref, a keyed channel post), with error.conflicts listing each; nothing moves. 409 merge_strands_intake_source when a live pr or chg intake source on project_id names a repo the target does not hold (error.intake_source_id): merge into the project that holds that repo, or revoke the source first. A target with no repo_url claims the sources' repo, refused 409 repo_already_has_project when another active project holds it. dry_run applies both refusals. 422 for the same project twice, an archived target, or an archived project_id not merged into this target. 403 insufficient_role below user role, 403 custody_tier_required on an agent-rooted tenant, 404 for an id not in your tenant.",
4405
4405
  inputSchema: {
4406
4406
  type: "object",
4407
4407
  properties: {
@@ -4422,7 +4422,7 @@ const TOOLS = [
4422
4422
  name: "update_project",
4423
4423
  description:
4424
4424
  "UPDATE a project's fields (PATCH /api/v1/projects/:id): name, slug, repo_url, description, tech_stack, mission, metadata. Send only what changes; a field left out is left alone, and a call naming none is refused locally. A slug change renames the project's channel (kb scope or work project); when no name is sent and the name equaled the old slug, the name follows. A kb name different from its slug is 422, and a slug another project holds (archived included) is 422. Status is not settable here (archive with delete_project, restore with restore_project). Setting repo_url makes resolve_project({repo_url}) and SessionStart find the project. Sent with LOOPCTL_ORCH_KEY verbatim, else LOOPCTL_USER_KEY, else the default key. Refusals: 403 insufficient_role below orchestrator role, 403 custody_tier_required on an agent-rooted tenant (the human-anchor gate), 404 for an id not in your tenant, 422 for an invalid field. " +
4425
- "A repo has one project: a repo_url another active project of the tenant already holds is refused 409 repo_already_has_project, and error.existing_project_id names the project to use instead (resolve_project({repo_url}) finds it too).",
4425
+ "A repo has one project: a repo_url another active project of the tenant already holds is refused 409 repo_already_has_project, and error.existing_project_id names the project to use instead (resolve_project({repo_url}) finds it too). A repo_url change, clearing included, is refused 409 repo_held_by_intake_source while a live pr or chg intake source on the project names another repo; error.intake_source_id names it, and intake_source_revoke frees the project.",
4426
4426
  inputSchema: {
4427
4427
  type: "object",
4428
4428
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loopctl-mcp-server",
3
- "version": "3.20.1",
3
+ "version": "3.20.3",
4
4
  "description": "MCP server for loopctl — structural trust for AI development loops",
5
5
  "type": "module",
6
6
  "main": "index.js",