specguard-mcp 0.1.21 → 0.1.22

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 CHANGED
@@ -34,8 +34,8 @@ refuses to boot and takes the tools that needed no configuration down with it.
34
34
  | --- | --- | --- | --- |
35
35
  | `SPECGUARD_ENDPOINT` | `get_repository_overview`, `list_repositories`, `add_repository`, `registrable_repositories` | — | your SpecGuard instance's root URL, **including the scheme** — e.g. `https://specguard.example.com`, or `http://localhost:3000`. A value with no scheme is refused by name (`SPECGUARD_ENDPOINT is not a usable URL: "sg.example.com"`) rather than surfacing later as an opaque failure. `SPECGUARD_URL` is accepted as an alias, and is the name every message uses when it is the one you set. A blank value counts as unset, so leaving `SPECGUARD_ENDPOINT` empty in a templated config falls through to `SPECGUARD_URL` instead of suppressing it |
36
36
  | `SPECGUARD_API_KEY` | `get_repository_overview`, `near_duplicate_clusters` (default calls) | — | an agent/CI API key (`sgk_…`) issued by that deployment — a **per-repository** key, which is the single repository those tools answer about by default |
37
- | `SPECGUARD_USER_API_KEY` | `list_repositories` (fallback), `add_repository`, `registrable_repositories`, `remove_repository` (fallback), `create_repository_api_key` (fallback), `revoke_repository_api_key` (fallback), `list_repository_agent_keys` (fallback), `revoke_repository_agent_key` (fallback), `list_repository_agent_keys_presented_revoked` (fallback), `list_repository_members` (fallback), `add_repository_member` (fallback), `update_repository_member_permissions` (fallback), `remove_repository_member` (fallback), `get_repository_overview` / `near_duplicate_clusters` **with** `repository` (fallback), `rename_repository` | — | a **user** API key (`sgu_…`), minted from that deployment's account page. A different credential from the one above, not a second place to put the same value: SpecGuard decides which of them a request may use from the token's prefix, before it reads anything, and answers `401` for the other one. Set whichever your tools need — both, if you use both |
38
- | `SPECGUARD_AGENT_API_KEY` | `list_repositories` (preferred), `remove_repository` (preferred), `create_repository_api_key` (preferred), `revoke_repository_api_key` (preferred), `list_repository_agent_keys` (preferred), `revoke_repository_agent_key` (preferred), `list_repository_agent_keys_presented_revoked` (preferred), `list_repository_members` (preferred), `add_repository_member` (preferred), `update_repository_member_permissions` (preferred), `remove_repository_member` (preferred), `get_repository_overview` / `near_duplicate_clusters` **with** `repository` (preferred) | — | an **agent** API key (`sga_…`), minted from that deployment's account page (Agent keys panel) with an explicit set of repositories and permissions. It speaks for nobody: its reach is exactly the set granted onto it, fixed at mint time, and every read is bounded by that set server-side. This is the credential to give an automated agent — one key, many repositories, none of a person's rights. When it and `SPECGUARD_USER_API_KEY` are both set, every tool that answers either key — `list_repositories`, `remove_repository`, the members tools, the key-lifecycle tools, and `get_repository_overview` / `near_duplicate_clusters` **with** `repository` — uses **this** one, so discovery stays inside the set the other tools can reach |
37
+ | `SPECGUARD_USER_API_KEY` | `list_repositories` (fallback), `add_repository`, `registrable_repositories`, `remove_repository` (fallback), `create_repository_api_key` (fallback), `revoke_repository_api_key` (fallback), `list_repository_api_keys` (fallback), `list_repository_agent_keys` (fallback), `revoke_repository_agent_key` (fallback), `list_repository_agent_keys_presented_revoked` (fallback), `list_repository_members` (fallback), `add_repository_member` (fallback), `update_repository_member_permissions` (fallback), `remove_repository_member` (fallback), `get_repository_overview` / `near_duplicate_clusters` **with** `repository` (fallback), `rename_repository` | — | a **user** API key (`sgu_…`), minted from that deployment's account page. A different credential from the one above, not a second place to put the same value: SpecGuard decides which of them a request may use from the token's prefix, before it reads anything, and answers `401` for the other one. Set whichever your tools need — both, if you use both |
38
+ | `SPECGUARD_AGENT_API_KEY` | `list_repositories` (preferred), `remove_repository` (preferred), `create_repository_api_key` (preferred), `revoke_repository_api_key` (preferred), `list_repository_api_keys` (preferred), `list_repository_agent_keys` (preferred), `revoke_repository_agent_key` (preferred), `list_repository_agent_keys_presented_revoked` (preferred), `list_repository_members` (preferred), `add_repository_member` (preferred), `update_repository_member_permissions` (preferred), `remove_repository_member` (preferred), `get_repository_overview` / `near_duplicate_clusters` **with** `repository` (preferred) | — | an **agent** API key (`sga_…`), minted from that deployment's account page (Agent keys panel) with an explicit set of repositories and permissions. It speaks for nobody: its reach is exactly the set granted onto it, fixed at mint time, and every read is bounded by that set server-side. This is the credential to give an automated agent — one key, many repositories, none of a person's rights. When it and `SPECGUARD_USER_API_KEY` are both set, every tool that answers either key — `list_repositories`, `remove_repository`, the members tools, the key-lifecycle tools, and `get_repository_overview` / `near_duplicate_clusters` **with** `repository` — uses **this** one, so discovery stays inside the set the other tools can reach |
39
39
  | `SPECGUARD_LINT_COMMAND` | `lint_intent_annotations` | `specguard-lint` | the command that runs the linter. Most Ruby projects need `bundle exec specguard-lint` |
40
40
  | `SPECGUARD_TIMEOUT_MS` | HTTP tools | `30000` | how long a call to SpecGuard may take |
41
41
 
@@ -78,7 +78,7 @@ Validates the `@intent:` annotations in a Ruby project's spec files against the
78
78
  | --- | --- |
79
79
  | `project_dir` | the project to lint; defaults to the server's working directory. A path that does not exist, or is not a directory, is refused by name — never reported as a missing linter |
80
80
  | `paths` | specific spec files, relative to `project_dir`; omit to check all of them. An empty list is an error rather than a synonym for "everything", because a run that selected nothing must not come back clean |
81
- | `changed` | check only what differs from the merge base with the default branch — CI's mode |
81
+ | `changed` | check what the branch changed since the merge base with the default branch — CI's mode; untracked spec files count too (no `git add` needed), `.gitignore`d paths never enter the selection |
82
82
  | `base` | diff `changed` against this ref instead |
83
83
 
84
84
  Needs no SpecGuard deployment and no API key. A **missing** annotation is never a failure: adoption
@@ -581,17 +581,20 @@ reads. With both set the **agent** key wins, so the removal answers inside the s
581
581
 
582
582
  ### `create_repository_api_key`
583
583
 
584
- Mints a new CI API key (`sgk_…`) for a SpecGuard repository and returns it alongside the
585
- repository's existing keys. Minting does not disturb existing keys each key on a repository
586
- authenticates independently until revoked.
584
+ Mints a new CI API key (`sgk_…`) for a SpecGuard repository, returning the new key **alone** in
585
+ an `api_key` block — the repository's full key set (keys minted in the web panel or in an
586
+ earlier session included) is `list_repository_api_keys`' answer, never this response's.
587
+ Minting does not disturb existing keys — each key on a repository authenticates independently
588
+ until revoked.
587
589
 
588
590
  | argument | |
589
591
  | --- | --- |
590
592
  | `repository_id` | the repository to mint the key for — its numeric `id`, as `add_repository` returns and `list_repositories` reports, not the `org/repo` handle |
591
593
  | `name` | an optional label for the key; omit it to let SpecGuard use its default name |
592
594
 
593
- The body comes back as SpecGuard serves it: an `api_key` block (`name`, `token`, `hint`,
594
- `created_at`) — the same shape `add_repository` serves.
595
+ The body comes back as SpecGuard serves it: an `api_key` block (`id`, `name`, `token`, `hint`,
596
+ `created_at`) — the same shape `add_repository` serves. `id` is the key's durable handle (the
597
+ token is reveal-once); every **other** key's id comes from `list_repository_api_keys`.
595
598
 
596
599
  > ⚠️ **`api_key.token` is shown once and never again.** Nothing stores it and no endpoint can
597
600
  > re-serve it. Hand it to the person you are working for in your reply. If it is dropped, the
@@ -611,6 +614,45 @@ reads. With both set the **agent** key wins, so the mint answers inside the same
611
614
  key's **owner** (the server's `attributed_user` rule), so minted-key counts keep naming a person
612
615
  rather than nobody.
613
616
 
617
+ ### `list_repository_api_keys`
618
+
619
+ Lists a SpecGuard repository's CI API keys (`sgk_…` keys) — every row of the repository's own key
620
+ set, **live and revoked alike** (unlike the `sga_` listing `list_repository_agent_keys`, which
621
+ serves live rows only). One row per key: `id`, `name`, `token_hint`, `created_at`, `created_by`,
622
+ `last_used_at` — `null` meaning the key has never presented, the negative served rather than
623
+ omitted — `rotated_at`, and `rotated_and_unused` (live-scoped: the stranded shape
624
+ `get_repository_overview`'s `credential_health` reports, at row grain). `status` is
625
+ `live`/`revoked`, with `revoked_at` present only on revoked rows — a revoked `sgk_` row is not a
626
+ credential either, but the rotation's story lives in the population.
627
+
628
+ | argument | |
629
+ | --- | --- |
630
+ | `repository_id` | the repository whose API keys to list — its numeric `id`, as `add_repository` returns and `list_repositories` reports, not the `org/repo` handle |
631
+
632
+ **This is the verify step of the mint-and-replace rotation.** After minting a replacement with
633
+ `create_repository_api_key` and deploying it, list here and check the replacement's
634
+ `last_used_at` BEFORE revoking the old key — `null` means the new token has not presented itself
635
+ yet, and cutting the old key then locks the repository's CI out until a human mints in a browser.
636
+ Neither the mint response (point-in-time by construction: it describes only the key it just made)
637
+ nor `credential_health` (findings only — a never-presented replacement is neither stranded nor
638
+ presented-revoked) can answer this.
639
+
640
+ **This is the id source for every row this session did not mint.** The mint response carries the
641
+ id of the key IT minted (SPGD-993); a key minted in the web panel, or in an earlier session, has
642
+ no other bridge-learnable id — list here to name a `key_id` for `revoke_repository_api_key`.
643
+
644
+ `token_hint` is a hint, never the token — the plaintext existed for exactly one response at mint
645
+ time and nothing persisted it. There is no regenerate: rotation is mint-and-replace
646
+ (`create_repository_api_key` → deploy → verify here → `revoke_repository_api_key`).
647
+
648
+ It reads either of two credentials, whichever is set — and a different one from the `sgk_…` key
649
+ `get_repository_overview` uses. `SPECGUARD_AGENT_API_KEY` (`sga_…`) when it is set: the call then
650
+ reaches only the repositories granted onto that key at mint time, and only where the grant carries
651
+ `keys.manage` — a repository outside that set is answered `404` in SpecGuard's own words.
652
+ `SPECGUARD_USER_API_KEY` (`sgu_…`) when no agent key is set: the same **person** key
653
+ `add_repository` reads. With both set the **agent** key wins, so the listing answers inside the
654
+ same set `list_repositories` reports.
655
+
614
656
  ### `revoke_repository_api_key`
615
657
 
616
658
  Revokes one CI API key on a SpecGuard repository. The key stops authenticating immediately; every
@@ -26,14 +26,18 @@ import { optionalString, requireString } from "./args.js";
26
26
  const createRepositoryApiKey = {
27
27
  name: "create_repository_api_key",
28
28
  title: "Create repository API key",
29
- description: "Mints a new CI API key (an sgk_… key) for a SpecGuard repository, and returns it " +
30
- "alongside the repository's existing keys. " +
29
+ description: "Mints a new CI API key (an sgk_… key) for a SpecGuard repository, returning the new key " +
30
+ "ALONE in an `api_key` block — the repository's full key set (keys minted in the web panel " +
31
+ "or in an earlier session included) is `list_repository_api_keys`' answer, never this " +
32
+ "response's. " +
31
33
  "⚠️ `api_key.token` is shown THIS ONCE AND NEVER AGAIN — nothing stores it and no " +
32
34
  "endpoint can re-serve it, so hand it to the user in your reply rather than assuming " +
33
35
  "it can be fetched later. If it is dropped, the recovery is minting another key with " +
34
36
  "this same tool (the platform has no regenerate), then revoking the orphaned one. " +
35
- "On success the response carries an `api_key` block (`name`, `token`, `hint`, " +
36
- "`created_at`) — the same reveal-once shape `add_repository` serves. " +
37
+ "On success the response carries an `api_key` block (`id`, `name`, `token`, `hint`, " +
38
+ "`created_at`) — the same reveal-once shape `add_repository` serves; `id` is the key's " +
39
+ "durable handle (the token is reveal-once), and every OTHER key's id comes from " +
40
+ "`list_repository_api_keys`. " +
37
41
  "Minting does not disturb existing keys: each key on a repository authenticates " +
38
42
  "independently until revoked. " +
39
43
  "Takes `repository_id` (the numeric id `list_repositories` reports) and an optional " +
@@ -1 +1 @@
1
- {"version":3,"file":"create-repository-api-key.js","sourceRoot":"","sources":["../../../src/tools/create-repository-api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,sBAAsB,GAAmB;IAC7C,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,2BAA2B;IAClC,WAAW,EACT,mFAAmF;QACnF,4CAA4C;QAC5C,mFAAmF;QACnF,sFAAsF;QACtF,sFAAsF;QACtF,mFAAmF;QACnF,+EAA+E;QAC/E,sEAAsE;QACtE,iFAAiF;QACjF,+BAA+B;QAC/B,qFAAqF;QACrF,kDAAkD;QAClD,qFAAqF;QACrF,4BAA4B;QAC5B,8FAA8F;QAC9F,8FAA8F;QAC9F,wFAAwF;QACxF,6FAA6F;QAC7F,kFAAkF;QAClF,8FAA8F;QAC9F,8FAA8F;QAC9F,+FAA+F;QAC/F,2CAA2C;QAC3C,wEAAwE;QACxE,8EAA8E;IAChF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2EAA2E;oBAC3E,qEAAqE;aACxE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gFAAgF;oBAChF,6EAA6E;aAChF;SACF;QACD,QAAQ,EAAE,CAAC,eAAe,CAAC;QAC3B,4EAA4E;QAC5E,+EAA+E;QAC/E,oBAAoB,EAAE,KAAK;KAC5B;IAED,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO;QACrB,MAAM,YAAY,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC;QAC3E,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;QAElD,MAAM,GAAG,GAAG,2BAA2B,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAExD,2EAA2E;QAC3E,qEAAqE;QACrE,0DAA0D;QAC1D,MAAM,OAAO,GAAG,MAAM,cAAc,CAClC,GAAG,EACH,wBAAwB,kBAAkB,CAAC,YAAY,CAAC,WAAW,EACnE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAClC,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,wEAAwE;QACxE,yEAAyE;QACzE,kCAAkC;QAClC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;YACtC,UAAU,EAAE,OAAO;SACpB,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"create-repository-api-key.js","sourceRoot":"","sources":["../../../src/tools/create-repository-api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,M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EAAqE;QACrE,0DAA0D;QAC1D,MAAM,OAAO,GAAG,MAAM,cAAc,CAClC,GAAG,EACH,wBAAwB,kBAAkB,CAAC,YAAY,CAAC,WAAW,EACnE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAClC,OAAO,CAAC,KAAK,CACd,CAAC;QAEF,wEAAwE;QACxE,yEAAyE;QACzE,kCAAkC;QAClC,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;YACtC,UAAU,EAAE,OAAO;SACpB,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -100,6 +100,12 @@ import type { ToolDefinition } from "./types.js";
100
100
  * returns the raw body text instead of routing an empty 204 through
101
101
  * `requestJson`'s JSON parse.
102
102
  *
103
+ * - `list_repository_api_keys` wraps the same controller's inventory read
104
+ * (`GET repositories/:repository_id/api_keys`; shipped: SPGD-993,
105
+ * specguard) — the verify step of the mint-and-replace rotation the pair
106
+ * above prescribe, and the id source for every `sgk_` row this session
107
+ * did not mint.
108
+ *
103
109
  * The standing rule itself is unchanged and still binding — which still keeps
104
110
  * out `/check-intent`: it has no backing endpoint (`routes.rb:113` mounts it
105
111
  * as a comment only). A tool advertised in `tools/list` remains a promise an
@@ -5,6 +5,7 @@ import lintIntentAnnotations from "./lint-intent-annotations.js";
5
5
  import listRepositories from "./list-repositories.js";
6
6
  import listRepositoryAgentKeys from "./list-repository-agent-keys.js";
7
7
  import listRepositoryAgentKeysPresentedRevoked from "./list-repository-agent-keys-presented-revoked.js";
8
+ import listRepositoryApiKeys from "./list-repository-api-keys.js";
8
9
  import listRepositoryMembers from "./list-repository-members.js";
9
10
  import nearDuplicateClusters from "./near-duplicate-clusters.js";
10
11
  import getRepositoryOverview from "./repository-overview.js";
@@ -116,6 +117,12 @@ import updateRepositoryMemberPermissions from "./update-repository-member-permis
116
117
  * returns the raw body text instead of routing an empty 204 through
117
118
  * `requestJson`'s JSON parse.
118
119
  *
120
+ * - `list_repository_api_keys` wraps the same controller's inventory read
121
+ * (`GET repositories/:repository_id/api_keys`; shipped: SPGD-993,
122
+ * specguard) — the verify step of the mint-and-replace rotation the pair
123
+ * above prescribe, and the id source for every `sgk_` row this session
124
+ * did not mint.
125
+ *
119
126
  * The standing rule itself is unchanged and still binding — which still keeps
120
127
  * out `/check-intent`: it has no backing endpoint (`routes.rb:113` mounts it
121
128
  * as a comment only). A tool advertised in `tools/list` remains a promise an
@@ -200,6 +207,7 @@ export const TOOLS = [
200
207
  removeRepository,
201
208
  createRepositoryApiKey,
202
209
  revokeRepositoryApiKey,
210
+ listRepositoryApiKeys,
203
211
  nearDuplicateClusters,
204
212
  listRepositoryMembers,
205
213
  addRepositoryMember,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,mBAAmB,MAAM,4BAA4B,CAAC;AAC7D,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,uBAAuB,MAAM,iCAAiC,CAAC;AACtE,OAAO,uCAAuC,MAAM,mDAAmD,CAAC;AACxG,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,qBAAqB,MAAM,8BAA8B,CAAC;AACjE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,uBAAuB,MAAM,+BAA+B,CAAC;AACpE,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,sBAAsB,MAAM,+BAA+B,CAAC;AACnE,OAAO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AACxE,OAAO,sBA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AO,gBAAgB,MAAM,wBAAwB,CAAC;AACtD,OAAO,wBAAwB,MAAM,kCAAkC,CAAC;AACxE,OAAO,sBAAsB,MAAM,gCAAgC,CAAC;AACpE,OAAO,iCAAiC,MAAM,2CAA2C,CAAC;AAG1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqLG;AACH,MAAM,CAAC,MAAM,KAAK,GAA8B;IAC9C,qBAAqB;IACrB,qBAAqB;IACrB,gBAAgB;IAChB,aAAa;IACb,uBAAuB;IACvB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,mBAAmB;IACnB,iCAAiC;IACjC,sBAAsB;IACtB,gBAAgB;IAChB,uBAAuB;IACvB,uCAAuC;IACvC,wBAAwB;CACzB,CAAC"}
@@ -72,8 +72,10 @@ const lintIntentAnnotations = {
72
72
  },
73
73
  changed: {
74
74
  type: "boolean",
75
- description: "Check only spec files that differ from the merge base with the default branch — the " +
76
- "mode CI uses. Cannot be combined with `paths`.",
75
+ description: "Check the spec files the branch changed since the merge base with the default branch — " +
76
+ "the mode CI uses. Untracked spec files count as changed too, so a brand-new spec needs " +
77
+ "no `git add`; `.gitignore`d paths never enter the selection. Cannot be combined with " +
78
+ "`paths`.",
77
79
  },
78
80
  base: {
79
81
  type: "string",
@@ -231,8 +233,9 @@ function parseReport(result) {
231
233
  if (truncated) {
232
234
  throw new CommandError(`specguard-lint produced more than ${MAX_OUTPUT_BYTES / 1024 / 1024} MB of output, so ` +
233
235
  "this bridge truncated it and the JSON document is incomplete — no findings could be " +
234
- "read from it. Narrow the run with `paths`, or with `changed` to check only what " +
235
- "differs from the merge base.");
236
+ "read from it. Narrow the run with `paths`, or with `changed` to check what the " +
237
+ "branch changed the diff since the merge base plus untracked spec files; " +
238
+ "`.gitignore`d paths never enter the selection.");
236
239
  }
237
240
  // The same reasoning one rung further out, and it is ordered AFTER truncation
238
241
  // deliberately: both mean "this bridge stopped reading", but truncation is
@@ -1 +1 @@
1
- {"version":3,"file":"lint-intent-annotations.js","sourceRoot":"","sources":["../../../src/tools/lint-intent-annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAsB,MAAM,2BAA2B,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,yBAAyB;IAE/B,KAAK,EAAE,0BAA0B;IAEjC,WAAW,EACT,kFAAkF;QAClF,4FAA4F;QAC5F,6FAA6F;QAC7F,mFAAmF;QACnF,+EAA+E;QAC/E,6FAA6F;QAC7F,4FAA4F;IAE9F,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oFAAoF;oBACpF,8DAA8D;aACjE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,WAAW,EACT,uFAAuF;oBACvF,sEAAsE;oBACtE,oCAAoC;aACvC;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,sFAAsF;oBACtF,gDAA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YACxF,0FAA0F;YAC1F,gEAAgE,CACnE,CAAC;IACJ,CAAC;IAED,4EAA4E;IAC5E,8EAA8E;IAC9E,8EAA8E;IAC9E,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;QAC7B,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,YAAY,CACpB,KAAK,KAAK,4DAA4D,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAChG,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { ToolDefinition } from "./types.js";
2
+ /**
3
+ * `GET /api/v1/repositories/:repository_id/api_keys` as a tool — shipped in
4
+ * the platform (`specguard/config/routes.rb:233`,
5
+ * `Api::V1::UserRepositoryApiKeysController#index`, SPGD-993).
6
+ *
7
+ * == The verify step of the rotation this bridge otherwise cannot see
8
+ *
9
+ * The README prescribes the `sgk_` rotation — mint a replacement with
10
+ * `create_repository_api_key`, deploy it, THEN revoke the old one — but until
11
+ * this tool the bridge could not answer the question the middle step turns
12
+ * on: has the replacement presented itself? The mint response is
13
+ * point-in-time by construction (an `api_key` block describing only the new
14
+ * key; usage accrues after it), and the one other read that touches keys,
15
+ * `get_repository_overview`, serves findings only — its `credential_health`
16
+ * is stranded + presented-revoked, and a replacement that never presented is
17
+ * neither. Revoking first would lock the repository's CI out until a human
18
+ * mints in a browser, so the listing is the check to run BEFORE the cut.
19
+ *
20
+ * == The id source for every row this session did not mint
21
+ *
22
+ * `revoke_repository_api_key`'s `key_id` is documented as coming from
23
+ * `add_repository`'s or `create_repository_api_key`'s response — i.e. keys
24
+ * this session minted. A key minted by a person in the panel, or in an
25
+ * earlier session, has no bridge-learnable id except through this listing.
26
+ * The mint response does carry the id of the key IT minted (SPGD-993); this
27
+ * listing is the id source for every OTHER row.
28
+ *
29
+ * == Rows, pass-through
30
+ *
31
+ * The endpoint answers `{api_keys: [...]}` over the repository's key set —
32
+ * LIVE AND REVOKED rows alike, unlike the `sga_` listing
33
+ * (`list_repository_agent_keys`), which deliberately serves live rows only.
34
+ * A revoked `sgk_` row is not a credential either, but the rotation's story
35
+ * lives in the population: `status` (`live`/`revoked`, with `revoked_at`
36
+ * present only on revoked rows) is what tells a replacement apart from its
37
+ * predecessor. Each row serves the controller's own serialization: `id`,
38
+ * `name`, `token_hint`, `created_at`, `created_by`, `last_used_at`
39
+ * (null meaning the key has NEVER presented — the negative is served, not
40
+ * omitted), `rotated_at` (null until `regenerate!` retired a token), and
41
+ * `rotated_and_unused` (live-scoped — the stranded shape `credential_health`
42
+ * reports, served here at row grain). `token_hint` is a hint and never the
43
+ * token: the plaintext existed for exactly one response at mint time and
44
+ * nothing persisted it. Passed through UNRESHAPED — the rows are the
45
+ * controller's own serialization, and reshaping is how a field the revoke
46
+ * needs gets dropped.
47
+ *
48
+ * == No client-side capability probing
49
+ *
50
+ * The server gates at `current_repository(:keys_manage)` — the same gate the
51
+ * create/revoke pair answers to. A caller without `keys_manage` is refused
52
+ * 403 in SpecGuard's own words; a repository outside the credential's reach
53
+ * answers the nil-is-404 fork. This tool predicts neither; it reports what
54
+ * came back.
55
+ */
56
+ declare const listRepositoryApiKeys: ToolDefinition;
57
+ export default listRepositoryApiKeys;
@@ -0,0 +1,119 @@
1
+ import { getJsonObject, requireUserOrAgentApiConfig } from "../support/specguard-api.js";
2
+ import { requireString } from "./args.js";
3
+ /**
4
+ * `GET /api/v1/repositories/:repository_id/api_keys` as a tool — shipped in
5
+ * the platform (`specguard/config/routes.rb:233`,
6
+ * `Api::V1::UserRepositoryApiKeysController#index`, SPGD-993).
7
+ *
8
+ * == The verify step of the rotation this bridge otherwise cannot see
9
+ *
10
+ * The README prescribes the `sgk_` rotation — mint a replacement with
11
+ * `create_repository_api_key`, deploy it, THEN revoke the old one — but until
12
+ * this tool the bridge could not answer the question the middle step turns
13
+ * on: has the replacement presented itself? The mint response is
14
+ * point-in-time by construction (an `api_key` block describing only the new
15
+ * key; usage accrues after it), and the one other read that touches keys,
16
+ * `get_repository_overview`, serves findings only — its `credential_health`
17
+ * is stranded + presented-revoked, and a replacement that never presented is
18
+ * neither. Revoking first would lock the repository's CI out until a human
19
+ * mints in a browser, so the listing is the check to run BEFORE the cut.
20
+ *
21
+ * == The id source for every row this session did not mint
22
+ *
23
+ * `revoke_repository_api_key`'s `key_id` is documented as coming from
24
+ * `add_repository`'s or `create_repository_api_key`'s response — i.e. keys
25
+ * this session minted. A key minted by a person in the panel, or in an
26
+ * earlier session, has no bridge-learnable id except through this listing.
27
+ * The mint response does carry the id of the key IT minted (SPGD-993); this
28
+ * listing is the id source for every OTHER row.
29
+ *
30
+ * == Rows, pass-through
31
+ *
32
+ * The endpoint answers `{api_keys: [...]}` over the repository's key set —
33
+ * LIVE AND REVOKED rows alike, unlike the `sga_` listing
34
+ * (`list_repository_agent_keys`), which deliberately serves live rows only.
35
+ * A revoked `sgk_` row is not a credential either, but the rotation's story
36
+ * lives in the population: `status` (`live`/`revoked`, with `revoked_at`
37
+ * present only on revoked rows) is what tells a replacement apart from its
38
+ * predecessor. Each row serves the controller's own serialization: `id`,
39
+ * `name`, `token_hint`, `created_at`, `created_by`, `last_used_at`
40
+ * (null meaning the key has NEVER presented — the negative is served, not
41
+ * omitted), `rotated_at` (null until `regenerate!` retired a token), and
42
+ * `rotated_and_unused` (live-scoped — the stranded shape `credential_health`
43
+ * reports, served here at row grain). `token_hint` is a hint and never the
44
+ * token: the plaintext existed for exactly one response at mint time and
45
+ * nothing persisted it. Passed through UNRESHAPED — the rows are the
46
+ * controller's own serialization, and reshaping is how a field the revoke
47
+ * needs gets dropped.
48
+ *
49
+ * == No client-side capability probing
50
+ *
51
+ * The server gates at `current_repository(:keys_manage)` — the same gate the
52
+ * create/revoke pair answers to. A caller without `keys_manage` is refused
53
+ * 403 in SpecGuard's own words; a repository outside the credential's reach
54
+ * answers the nil-is-404 fork. This tool predicts neither; it reports what
55
+ * came back.
56
+ */
57
+ const listRepositoryApiKeys = {
58
+ name: "list_repository_api_keys",
59
+ title: "List repository API keys",
60
+ description: "Lists a SpecGuard repository's CI API keys (`sgk_…` keys) — the verify step of the " +
61
+ "mint-and-replace rotation. After minting a replacement with `create_repository_api_key` " +
62
+ "and deploying it, list HERE and check the replacement's `last_used_at` before revoking the " +
63
+ "old key: `null` means the new token has not presented itself yet, and cutting the old key " +
64
+ "then locks the repository's CI out until a human mints in a browser. " +
65
+ "The mint response carries the id of the key IT minted (in its `api_key` block); THIS " +
66
+ "listing is the id source for every other row — keys minted in the web panel or in an " +
67
+ "earlier session have no other bridge-learnable id, so list here to name a `key_id` for " +
68
+ "`revoke_repository_api_key`. " +
69
+ "The population is LIVE AND REVOKED rows alike — `status` (`live`/`revoked`), with " +
70
+ "`revoked_at` present only on revoked rows — a deliberate contrast with the `sga_` listing " +
71
+ "`list_repository_agent_keys`, which serves live rows only: a revoked `sgk_` row is not a " +
72
+ "credential either, but the rotation's story lives in the population. Each row serves " +
73
+ "`id`, `name`, `token_hint`, `created_at`, `created_by`, `last_used_at` (null meaning the " +
74
+ "key has never presented), `rotated_at`, and `rotated_and_unused` — the stranded shape " +
75
+ "`get_repository_overview`'s `credential_health` reports, at row grain. " +
76
+ "`token_hint` is a hint, never the token — the plaintext existed for exactly one response " +
77
+ "at mint time and nothing persisted it. " +
78
+ "Takes `repository_id` (the numeric id `list_repositories` reports, not the `org/repo` handle). " +
79
+ "It authenticates with EITHER of this server's two key-administration credentials, whichever " +
80
+ "is set: SPECGUARD_AGENT_API_KEY (an sga_… key — the call then reaches only the repositories " +
81
+ "granted onto that key at mint time, and only where the grant carries `keys.manage`; a caller " +
82
+ "without that capability is refused 403 in SpecGuard's own words, and a repository outside " +
83
+ "the credential's reach answers 404 — this tool predicts neither) and, " +
84
+ "when that is not set, SPECGUARD_USER_API_KEY (an sgu_… key, the same credential the other " +
85
+ "key-administration tools read). With both set the agent key wins, so the answer stays " +
86
+ "inside the same set `list_repositories` reports. " +
87
+ "Either way it is a DIFFERENT credential from the sgk_… repository key `get_repository_overview` " +
88
+ "uses; SpecGuard refuses each in the other's place.",
89
+ inputSchema: {
90
+ type: "object",
91
+ properties: {
92
+ repository_id: {
93
+ type: "string",
94
+ description: "The repository whose API keys to list — its numeric id, as `add_repository` " +
95
+ "returns and `list_repositories` reports, not the `org/repo` handle.",
96
+ },
97
+ },
98
+ required: ["repository_id"],
99
+ // Closed for the reason every tool here states: `server.ts` forwards
100
+ // `arguments` unvalidated, so an open schema would let a misspelled argument
101
+ // be dropped silently.
102
+ additionalProperties: false,
103
+ },
104
+ async run(args, context) {
105
+ const repositoryId = requireString(args["repository_id"], "repository_id");
106
+ const api = requireUserOrAgentApiConfig(context.config);
107
+ const body = await getJsonObject(api, `/api/v1/repositories/${encodeURIComponent(repositoryId)}/api_keys`, {}, context.fetch);
108
+ // Passed through unreshaped, the standing rule (`types.ts`: "A thin client
109
+ // that reshapes its upstream is not thin") — the rows are the controller's
110
+ // own serialization, and the `id` the revoke needs on a key this session
111
+ // did not mint is one of the fields a reshape could drop.
112
+ return {
113
+ text: JSON.stringify(body, null, 2),
114
+ structured: body,
115
+ };
116
+ },
117
+ };
118
+ export default listRepositoryApiKeys;
119
+ //# sourceMappingURL=list-repository-api-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-repository-api-keys.js","sourceRoot":"","sources":["../../../src/tools/list-repository-api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,0BAA0B;IAChC,KAAK,EAAE,0BAA0B;IACjC,WAAW,EACT,qFAAqF;QACrF,0FAA0F;QAC1F,6FAA6F;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AAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specguard-mcp",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "MCP server exposing SpecGuard suite intelligence to AI coding agents",
5
5
  "license": "ISC",
6
6
  "type": "module",