loopctl-mcp-server 3.20.0 → 3.20.2
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.
- package/README.md +2 -2
- package/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,9 +205,9 @@ 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`. |
|
|
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
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. |
|
|
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). |
|
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: {
|
|
@@ -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: {
|
|
@@ -9443,7 +9443,8 @@ const TOOLS = [
|
|
|
9443
9443
|
"to no source refuses 409 `no_intake_source`, and one bound to two refuses 409 " +
|
|
9444
9444
|
"`ambiguous_intake_source`; this tool is what those two refusals mean by enrolling a " +
|
|
9445
9445
|
"source. Bind the repository to the project that already holds its repo_url; a pr or chg source on that repo's kb scope promotes the scope to a work project (US-52.3). " +
|
|
9446
|
-
"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)." +
|
|
9446
|
+
"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). " +
|
|
9447
|
+
"And a project holds one repo: a project whose repo_url names a DIFFERENT repo is refused 422 on repo_full_name (#1072)." +
|
|
9447
9448
|
"\n\n" +
|
|
9448
9449
|
"THE WEBHOOK SECRET IS RETURNED ONCE AND CAN NEVER BE READ AGAIN. The column is " +
|
|
9449
9450
|
"encrypted at rest and redacted on the schema, so neither intake_source_list nor " +
|