specguard-mcp 0.1.36 → 0.1.38
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
|
@@ -36,7 +36,7 @@ refuses to boot and takes the tools that needed no configuration down with 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
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
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
|
-
| `SPECGUARD_LINT_COMMAND` | `lint_intent_annotations` | `specguard-lint` | the command that runs the linter. Most Ruby projects need `bundle exec specguard-lint` |
|
|
39
|
+
| `SPECGUARD_LINT_COMMAND` | `lint_intent_annotations` | `specguard-lint` | the command that runs the linter — the one switch between the Ruby and the JS/TS client. Most Ruby projects need `bundle exec specguard-lint`; a JS/TS project sets `npx -p @yatfa/specguard specguard lint` (and needs the validator backend: a `validate-intent` binary whose path `SPECGUARD_VALIDATE_INTENT` names — today the only way to supply it) |
|
|
40
40
|
| `SPECGUARD_TIMEOUT_MS` | HTTP tools | `30000` | how long a call to SpecGuard may take |
|
|
41
41
|
|
|
42
42
|
`SPECGUARD_ENDPOINT` and `SPECGUARD_API_KEY` are the same variables
|
|
@@ -69,22 +69,33 @@ Register it with your MCP client — for Claude Code:
|
|
|
69
69
|
|
|
70
70
|
### `lint_intent_annotations`
|
|
71
71
|
|
|
72
|
-
Validates the `@intent:` annotations in a
|
|
72
|
+
Validates the `@intent:` annotations in a project's test files against the
|
|
73
73
|
[OpenTestIntent](https://github.com/yatfa-ai/open-test-intent) schema, by running that project's own
|
|
74
|
-
|
|
74
|
+
linter with `--json` — `specguard-lint` (Ruby/RSpec, `*_spec.rb`) or `specguard lint` (JS/TS,
|
|
75
|
+
`@yatfa/specguard`; `.ts`/`.tsx`/`.js`/`.jsx`/`.mjs`/`.cjs`). `SPECGUARD_LINT_COMMAND` selects which;
|
|
76
|
+
the server does not auto-detect it. A JS/TS run needs the validator backend: a `validate-intent` binary
|
|
77
|
+
whose path `SPECGUARD_VALIDATE_INTENT` names (install it with open-test-intent's `scripts/install.sh`). That variable is
|
|
78
|
+
today the only way to supply it — the npm package's auto-resolution is a seam that resolves nothing yet — and without a
|
|
79
|
+
binary the linter exits `2` and says why (see the specguard-ts README, "The validate-intent binary"). Findings come back as data — file, line, failure kind, every violated rule
|
|
75
80
|
— rather than as a prose report to regex.
|
|
76
81
|
|
|
77
82
|
| argument | |
|
|
78
83
|
| --- | --- |
|
|
79
84
|
| `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
|
-
| `paths` | specific
|
|
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); `--exclude-standard` keeps `.gitignore`d paths out of the untracked leg alone, and a tracked file is never subject to `.gitignore`, so the dependency/build directory fence holds ignored tracked paths out |
|
|
85
|
+
| `paths` | specific test files, relative to `project_dir`; omit to check every spec file outside dependency/build directories. An empty list is an error rather than a synonym for "everything", because a run that selected nothing must not come back clean |
|
|
86
|
+
| `changed` | check what the branch changed since the merge base with the default branch — CI's mode; **needs a linter version that ships `--changed`**: the Ruby gem and `@yatfa/specguard` main do, `@yatfa/specguard` 0.1.1 on npm does not (exit `2`, `invalid option: --changed`); untracked spec files count too (no `git add` needed); `--exclude-standard` keeps `.gitignore`d paths out of the untracked leg alone, and a tracked file is never subject to `.gitignore`, so the dependency/build directory fence holds ignored tracked paths out |
|
|
82
87
|
| `base` | diff `changed` against this ref instead |
|
|
83
88
|
|
|
89
|
+
The report is the linter's own document, echoed untouched, so its `summary` keys and finding kinds
|
|
90
|
+
differ per client — Ruby reports `files`/`annotations`/`failed`; JS/TS reports
|
|
91
|
+
`files`/`annotations`/`malformed`/`unreadable`. Both clients can emit an `unreachable` finding kind (an
|
|
92
|
+
annotation extraction can never claim: stacked, separated, shadowed, or trailing on a group line); JS/TS
|
|
93
|
+
additionally emits `no-match`, which Ruby folds into `read` — read the report rather than assuming one shape.
|
|
94
|
+
|
|
84
95
|
Needs no SpecGuard deployment and no API key. A **missing** annotation is never a failure: adoption
|
|
85
96
|
is gradual by design, so a suite with no annotations lints clean.
|
|
86
97
|
|
|
87
|
-
**The exit code is a verdict, and the mapping matters.**
|
|
98
|
+
**The exit code is a verdict, and the mapping matters.** Either linter exits `0` clean, `1` on a
|
|
88
99
|
malformed annotation, and `2` when it could not do its job. Exit `1` comes back as a **successful**
|
|
89
100
|
tool call carrying findings — an agent told "the tool failed" retries the tool, where an agent handed
|
|
90
101
|
a finding fixes the annotation. Only exit `2` is a tool error, and it carries the linter's stderr,
|
package/dist/src/config.d.ts
CHANGED
|
@@ -93,7 +93,8 @@ export interface Config {
|
|
|
93
93
|
/**
|
|
94
94
|
* The command that runs the `@intent` linter, already tokenised.
|
|
95
95
|
*
|
|
96
|
-
* Defaults to `["specguard-lint"]
|
|
96
|
+
* Defaults to `["specguard-lint"]` (the Ruby client; a JS/TS project sets
|
|
97
|
+
* `npx -p @yatfa/specguard specguard lint`). Most Ruby projects need the gem resolved
|
|
97
98
|
* through their bundle, which is a deployment fact this server cannot guess —
|
|
98
99
|
* set `SPECGUARD_LINT_COMMAND="bundle exec specguard-lint"` for those. It is
|
|
99
100
|
* tokenised here rather than handed to a shell, so nothing an agent passes as
|
package/dist/src/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA6G1C,MAAM,CAAC,MAAM,oBAAoB,GAAsB,CAAC,gBAAgB,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEjD,2EAA2E;AAC3E,MAAM,UAAU,UAAU,CAAC,MAAyB,OAAO,CAAC,GAAG;IAC7D,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC,CAAC;IAC5D,6EAA6E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AC,GAAG,CAAC,CAAC;IAC5B,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,KAA4B,CAAC;IACjC,IAAI,OAAO,GAAG,KAAK,CAAC;IAEpB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,IAAI,IAAI,KAAK,KAAK;gBAAE,KAAK,GAAG,SAAS,CAAC;;gBACjC,OAAO,IAAI,IAAI,CAAC;YACrB,SAAS;QACX,CAAC;QAED,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;YACjC,KAAK,GAAG,IAAI,CAAC;YACb,OAAO,GAAG,IAAI,CAAC;YACf,SAAS;QACX,CAAC;QAED,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACpB,IAAI,OAAO;gBAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,GAAG,KAAK,CAAC;YAChB,SAAS;QACX,CAAC;QAED,OAAO,IAAI,IAAI,CAAC;QAChB,OAAO,GAAG,IAAI,CAAC;IACjB,CAAC;IAED,IAAI,OAAO;QAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAElC,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ToolDefinition } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* `specguard-lint --json`
|
|
4
|
-
*
|
|
3
|
+
* `specguard-lint --json` (Ruby) or `specguard lint --json` (JS/TS) as a tool —
|
|
4
|
+
* the `@intent` linter, shipped in `specguard-ruby` (`bin/specguard-lint`,
|
|
5
|
+
* SPGD-12 §1) and in `@yatfa/specguard` (`specguard lint`). Which one runs is
|
|
6
|
+
* decided by `SPECGUARD_LINT_COMMAND` alone; this file does not detect it.
|
|
5
7
|
*
|
|
6
8
|
* == Why this wraps the JSON renderer and not the human one
|
|
7
9
|
*
|
|
@@ -4,8 +4,10 @@ import { ArgumentError, CommandError } from "../errors.js";
|
|
|
4
4
|
import { EXIT_CLOSE_GRACE_MS, MAX_OUTPUT_BYTES } from "../support/run-command.js";
|
|
5
5
|
import { optionalBoolean, optionalString } from "./args.js";
|
|
6
6
|
/**
|
|
7
|
-
* `specguard-lint --json`
|
|
8
|
-
*
|
|
7
|
+
* `specguard-lint --json` (Ruby) or `specguard lint --json` (JS/TS) as a tool —
|
|
8
|
+
* the `@intent` linter, shipped in `specguard-ruby` (`bin/specguard-lint`,
|
|
9
|
+
* SPGD-12 §1) and in `@yatfa/specguard` (`specguard lint`). Which one runs is
|
|
10
|
+
* decided by `SPECGUARD_LINT_COMMAND` alone; this file does not detect it.
|
|
9
11
|
*
|
|
10
12
|
* == Why this wraps the JSON renderer and not the human one
|
|
11
13
|
*
|
|
@@ -48,32 +50,45 @@ import { optionalBoolean, optionalString } from "./args.js";
|
|
|
48
50
|
const lintIntentAnnotations = {
|
|
49
51
|
name: "lint_intent_annotations",
|
|
50
52
|
title: "Lint @intent annotations",
|
|
51
|
-
description: "Validate the `@intent:` annotations in a
|
|
52
|
-
"OpenTestIntent schema, using that project's own `specguard-lint
|
|
53
|
-
"
|
|
53
|
+
description: "Validate the `@intent:` annotations in a project's test files against the " +
|
|
54
|
+
"OpenTestIntent schema, using that project's own SpecGuard linter: `specguard-lint` for Ruby " +
|
|
55
|
+
"(RSpec, *_spec.rb) or `specguard lint` for JS/TS (@yatfa/specguard; .ts/.tsx/.js/.jsx/.mjs/.cjs). " +
|
|
56
|
+
"SPECGUARD_LINT_COMMAND picks which one runs; a JS/TS run also needs the validator backend, " +
|
|
57
|
+
"a validate-intent binary whose path SPECGUARD_VALIDATE_INTENT names (today the only way to supply it; " +
|
|
58
|
+
"there is no prebuilt auto-resolution yet), otherwise the linter exits 2 and says why. " +
|
|
59
|
+
"Returns each finding as " +
|
|
60
|
+
"structured data — file, line, failure kind (schema / extraction / parse / read / unreachable, " +
|
|
61
|
+
"the last being an annotation extraction can never claim — stacked, separated, shadowed, or " +
|
|
62
|
+
"trailing on a group line — which both clients can report; JS/TS also reports no-match), and every " +
|
|
54
63
|
"violated rule — so a malformed annotation can be fixed without reading a CI log. " +
|
|
55
64
|
"Use it after writing or editing `@intent:` annotations, or to audit a suite. " +
|
|
56
65
|
"A MISSING annotation is never a failure: adoption is gradual by design, so a suite with no " +
|
|
57
|
-
"annotations at all lints clean.
|
|
66
|
+
"annotations at all lints clean. The report is the linter's own document, echoed untouched, so " +
|
|
67
|
+
"its summary keys and finding kinds differ per client — read the report rather than assuming " +
|
|
68
|
+
"one shape. Runs locally and needs no SpecGuard deployment or API key.",
|
|
58
69
|
inputSchema: {
|
|
59
70
|
type: "object",
|
|
60
71
|
properties: {
|
|
61
72
|
project_dir: {
|
|
62
73
|
type: "string",
|
|
63
|
-
description: "Absolute path to the
|
|
64
|
-
"
|
|
74
|
+
description: "Absolute path to the project to lint — the Ruby project root (Gemfile, spec/) or the " +
|
|
75
|
+
"JS/TS project root (package.json, test sources). Defaults to the directory this server " +
|
|
76
|
+
"was started in.",
|
|
65
77
|
},
|
|
66
78
|
paths: {
|
|
67
79
|
type: "array",
|
|
68
80
|
items: { type: "string" },
|
|
69
|
-
description: "Specific
|
|
70
|
-
"under it outside dependency/build directories.
|
|
81
|
+
description: "Specific test files to check, relative to project_dir. Omit to check every spec file " +
|
|
82
|
+
"under it outside dependency/build directories (*_spec.rb for specguard-lint; " +
|
|
83
|
+
".ts/.tsx/.js/.jsx/.mjs/.cjs for specguard lint). An empty list is an error, not a way " +
|
|
71
84
|
"to say 'everything'. Cannot be combined with `changed`.",
|
|
72
85
|
},
|
|
73
86
|
changed: {
|
|
74
87
|
type: "boolean",
|
|
75
88
|
description: "Check the spec files the branch changed since the merge base with the default branch — " +
|
|
76
|
-
"the mode CI uses.
|
|
89
|
+
"the mode CI uses. Needs a linter version that ships --changed: the Ruby gem and " +
|
|
90
|
+
"@yatfa/specguard main do, but @yatfa/specguard 0.1.1 on npm does not and exits 2 with " +
|
|
91
|
+
"`invalid option: --changed`. Untracked spec files count as changed too, so a brand-new spec needs " +
|
|
77
92
|
"no `git add`; `--exclude-standard` keeps `.gitignore`d paths out of the untracked leg " +
|
|
78
93
|
"alone, and a tracked file is never subject to `.gitignore`, so the dependency/build " +
|
|
79
94
|
"directory fence is what holds ignored tracked paths out of the selection. When " +
|
|
@@ -141,8 +156,9 @@ export default lintIntentAnnotations;
|
|
|
141
156
|
* names one tool's variable would misdirect every later tool that spawns
|
|
142
157
|
* something else.
|
|
143
158
|
*/
|
|
144
|
-
const LINT_COMMAND_HINT = "Set SPECGUARD_LINT_COMMAND to the command that runs
|
|
145
|
-
'
|
|
159
|
+
const LINT_COMMAND_HINT = "Set SPECGUARD_LINT_COMMAND to the command that runs the linter here — " +
|
|
160
|
+
'for a bundled Ruby project that is usually "bundle exec specguard-lint", ' +
|
|
161
|
+
'for a JS/TS project "npx -p @yatfa/specguard specguard lint".';
|
|
146
162
|
/**
|
|
147
163
|
* `project_dir` names a directory that exists, or the failure says exactly that.
|
|
148
164
|
*
|
|
@@ -167,14 +183,14 @@ async function requireProjectDir(projectDir) {
|
|
|
167
183
|
}
|
|
168
184
|
catch {
|
|
169
185
|
throw new CommandError(`\`project_dir\` ${JSON.stringify(projectDir)} does not exist${resolvedNote(projectDir)}. ` +
|
|
170
|
-
"Pass the absolute path of the project root — the directory holding its Gemfile
|
|
171
|
-
"
|
|
186
|
+
"Pass the absolute path of the project root — the directory holding its Gemfile " +
|
|
187
|
+
"(Ruby) or package.json (JS/TS) — or omit `project_dir` to lint the directory this server was started in. " +
|
|
172
188
|
"(specguard-lint itself was not the problem.)");
|
|
173
189
|
}
|
|
174
190
|
if (!isDirectory) {
|
|
175
191
|
throw new CommandError(`\`project_dir\` ${JSON.stringify(projectDir)} is not a directory${resolvedNote(projectDir)}. ` +
|
|
176
|
-
"Pass the project root — the directory holding its Gemfile
|
|
177
|
-
"it. To lint one file, pass it in `paths` instead.");
|
|
192
|
+
"Pass the project root — the directory holding its Gemfile (Ruby) or package.json " +
|
|
193
|
+
"(JS/TS) — not a file inside it. To lint one file, pass it in `paths` instead.");
|
|
178
194
|
}
|
|
179
195
|
}
|
|
180
196
|
/**
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,qBAAqB,GAAmB;IAC5C,IAAI,EAAE,yBAAyB;IAE/B,KAAK,EAAE,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