@gempack/squad-mcp 0.3.1
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/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +20 -0
- package/CHANGELOG.md +282 -0
- package/LICENSE +201 -0
- package/NOTICE +11 -0
- package/README.md +164 -0
- package/agents/PO.md +84 -0
- package/agents/Senior-Architect.md +121 -0
- package/agents/Senior-DBA.md +137 -0
- package/agents/Senior-Dev-Reviewer.md +104 -0
- package/agents/Senior-Dev-Security.md +134 -0
- package/agents/Senior-Developer.md +180 -0
- package/agents/Senior-QA.md +146 -0
- package/agents/Skill-Squad-Dev.md +369 -0
- package/agents/Skill-Squad-Review.md +267 -0
- package/agents/TechLead-Consolidator.md +117 -0
- package/agents/TechLead-Planner.md +90 -0
- package/agents/_Severity-and-Ownership.md +68 -0
- package/commands/squad-review.md +68 -0
- package/commands/squad.md +81 -0
- package/dist/config/ownership-matrix.d.ts +48 -0
- package/dist/config/ownership-matrix.js +197 -0
- package/dist/config/ownership-matrix.js.map +1 -0
- package/dist/errors.d.ts +7 -0
- package/dist/errors.js +14 -0
- package/dist/errors.js.map +1 -0
- package/dist/exec/git.d.ts +17 -0
- package/dist/exec/git.js +0 -0
- package/dist/exec/git.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/observability/logger.d.ts +23 -0
- package/dist/observability/logger.js +93 -0
- package/dist/observability/logger.js.map +1 -0
- package/dist/prompts/registry.d.ts +21 -0
- package/dist/prompts/registry.js +183 -0
- package/dist/prompts/registry.js.map +1 -0
- package/dist/resources/agent-loader.d.ts +20 -0
- package/dist/resources/agent-loader.js +122 -0
- package/dist/resources/agent-loader.js.map +1 -0
- package/dist/resources/registry.d.ts +13 -0
- package/dist/resources/registry.js +67 -0
- package/dist/resources/registry.js.map +1 -0
- package/dist/tools/agents.d.ts +22 -0
- package/dist/tools/agents.js +32 -0
- package/dist/tools/agents.js.map +1 -0
- package/dist/tools/classify-work-type.d.ts +28 -0
- package/dist/tools/classify-work-type.js +0 -0
- package/dist/tools/classify-work-type.js.map +1 -0
- package/dist/tools/compose-advisory-bundle.d.ts +75 -0
- package/dist/tools/compose-advisory-bundle.js +68 -0
- package/dist/tools/compose-advisory-bundle.js.map +1 -0
- package/dist/tools/compose-squad-workflow.d.ts +84 -0
- package/dist/tools/compose-squad-workflow.js +0 -0
- package/dist/tools/compose-squad-workflow.js.map +1 -0
- package/dist/tools/consolidate.d.ts +97 -0
- package/dist/tools/consolidate.js +75 -0
- package/dist/tools/consolidate.js.map +1 -0
- package/dist/tools/detect-changed-files.d.ts +35 -0
- package/dist/tools/detect-changed-files.js +0 -0
- package/dist/tools/detect-changed-files.js.map +1 -0
- package/dist/tools/registry.d.ts +26 -0
- package/dist/tools/registry.js +169 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/score-risk.d.ts +38 -0
- package/dist/tools/score-risk.js +34 -0
- package/dist/tools/score-risk.js.map +1 -0
- package/dist/tools/select-squad.d.ts +46 -0
- package/dist/tools/select-squad.js +0 -0
- package/dist/tools/select-squad.js.map +1 -0
- package/dist/tools/slice-files.d.ts +34 -0
- package/dist/tools/slice-files.js +0 -0
- package/dist/tools/slice-files.js.map +1 -0
- package/dist/tools/validate-plan-text.d.ts +24 -0
- package/dist/tools/validate-plan-text.js +0 -0
- package/dist/tools/validate-plan-text.js.map +1 -0
- package/dist/util/path-safety.d.ts +28 -0
- package/dist/util/path-safety.js +0 -0
- package/dist/util/path-safety.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gempack",
|
|
3
|
+
"owner": {
|
|
4
|
+
"name": "Gustavo",
|
|
5
|
+
"email": "next.uh@gmail.com"
|
|
6
|
+
},
|
|
7
|
+
"plugins": [
|
|
8
|
+
{
|
|
9
|
+
"name": "squad",
|
|
10
|
+
"source": {
|
|
11
|
+
"source": "github",
|
|
12
|
+
"repo": "ggemba/squad-mcp"
|
|
13
|
+
},
|
|
14
|
+
"description": "Squad-dev workflow: deterministic classification, risk scoring, agent selection, advisory orchestration over MCP, plus /squad and /squad-review slash commands.",
|
|
15
|
+
"version": "0.3.1",
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"homepage": "https://github.com/ggemba/squad-mcp"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "squad",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Squad-dev workflow as a Claude Code plugin: classification, risk scoring, agent selection, advisory orchestration. Bundles an MCP server and the /squad and /squad-review slash commands.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Gustavo",
|
|
8
|
+
"email": "next.uh@gmail.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/ggemba/squad-mcp#readme",
|
|
11
|
+
"repository": "https://github.com/ggemba/squad-mcp",
|
|
12
|
+
"keywords": ["mcp", "squad-dev", "code-review", "advisory", "agent"],
|
|
13
|
+
"commands": "./commands/",
|
|
14
|
+
"mcpServers": {
|
|
15
|
+
"squad": {
|
|
16
|
+
"command": "node",
|
|
17
|
+
"args": ["${CLAUDE_PLUGIN_ROOT}/dist/index.js"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `squad-mcp` are documented in this file.
|
|
4
|
+
|
|
5
|
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
6
|
+
this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
Planned for `0.4.0`:
|
|
11
|
+
|
|
12
|
+
- Promote bundled agent markdowns to Claude Code native plugin agents (rename to
|
|
13
|
+
kebab-case + add YAML frontmatter), with a migration path for existing
|
|
14
|
+
`%APPDATA%\squad-mcp\agents` overrides.
|
|
15
|
+
- Retire the legacy `/squad` and `/squad-review` skills now that the plugin
|
|
16
|
+
ships them as slash commands.
|
|
17
|
+
|
|
18
|
+
## [0.3.1] - 2026-05-02
|
|
19
|
+
|
|
20
|
+
First public release on npm and as a Claude Code plugin.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
#### Workflow composers
|
|
25
|
+
|
|
26
|
+
- `compose_squad_workflow` — single deterministic pipeline that runs
|
|
27
|
+
`detect_changed_files` → `classify_work_type` → `score_risk` →
|
|
28
|
+
`select_squad` and returns the union of their outputs. Risk signals
|
|
29
|
+
(`touches_auth`, `touches_money`, `touches_migration`, `new_module`,
|
|
30
|
+
`api_contract_change`) are auto-inferred from the changed-file paths;
|
|
31
|
+
callers can override any of them, override `work_type`, or pass
|
|
32
|
+
`force_agents`.
|
|
33
|
+
- `compose_advisory_bundle` — chains `compose_squad_workflow` with a
|
|
34
|
+
`slice_files_for_agent` call per selected agent and a `validate_plan_text`
|
|
35
|
+
pass on the supplied plan. Returns a single bundle ready for the host LLM
|
|
36
|
+
to dispatch parallel advisory reviews.
|
|
37
|
+
|
|
38
|
+
#### Distribution
|
|
39
|
+
|
|
40
|
+
- Public npm package `@gempack/squad-mcp` with [provenance attestations](https://docs.npmjs.com/generating-provenance-statements).
|
|
41
|
+
Any MCP-capable client (Claude Desktop, Cursor, Warp, …) can install with
|
|
42
|
+
`npx -y @gempack/squad-mcp`.
|
|
43
|
+
- Claude Code plugin packaging: `.claude-plugin/plugin.json` registers the
|
|
44
|
+
bundled MCP server (`${CLAUDE_PLUGIN_ROOT}/dist/index.js`) plus the
|
|
45
|
+
`/squad` and `/squad-review` slash commands. Marketplace manifest at
|
|
46
|
+
`.claude-plugin/marketplace.json` exposes the plugin under the `gempack`
|
|
47
|
+
marketplace; users install via `/plugin marketplace add ggemba/squad-mcp`
|
|
48
|
+
followed by `/plugin install squad@gempack`.
|
|
49
|
+
- Slash commands `commands/squad.md` and `commands/squad-review.md` codify
|
|
50
|
+
the squad-dev orchestration flow as user-invocable commands inside the
|
|
51
|
+
plugin. They reference the MCP tools and the inviolable rules
|
|
52
|
+
(no-implementation-before-approval, Codex-requires-consent,
|
|
53
|
+
TechLead-Consolidator-owns-final-verdict).
|
|
54
|
+
|
|
55
|
+
#### Continuous integration
|
|
56
|
+
|
|
57
|
+
- `.github/workflows/ci.yml` — runs `npm run lint`, `npm test`, and
|
|
58
|
+
`npm run build` on every pull request and `main` push, on Linux + Windows,
|
|
59
|
+
Node 20 + 22.
|
|
60
|
+
- `.github/workflows/release.yml` — triggered by tags matching `v*.*.*`.
|
|
61
|
+
Verifies that `package.json` version matches the tag, then publishes to
|
|
62
|
+
npm with `--access public --provenance` using `NPM_TOKEN` and the
|
|
63
|
+
workflow's OIDC `id-token` permission.
|
|
64
|
+
|
|
65
|
+
#### Licensing
|
|
66
|
+
|
|
67
|
+
- Apache-2.0 `LICENSE` and `NOTICE` files added.
|
|
68
|
+
- `package.json` declares `"license": "Apache-2.0"`, `repository`, `bugs`,
|
|
69
|
+
`homepage`, `keywords`, `author`, and a `publishConfig` block with
|
|
70
|
+
`access: "public"` and `provenance: true`.
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
|
|
74
|
+
- Package renamed from `@gustavo/squad-mcp` (private) to
|
|
75
|
+
`@gempack/squad-mcp` (public).
|
|
76
|
+
- `package.json` `files` array extended to ship `commands/`, `skills/`,
|
|
77
|
+
`.claude-plugin/`, `LICENSE`, `NOTICE`, and `CHANGELOG.md` alongside
|
|
78
|
+
`dist/` and `agents/`.
|
|
79
|
+
- `.npmrc` access changed from `restricted` to `public`.
|
|
80
|
+
- `SERVER_VERSION` in `src/index.ts` bumped to `0.3.1`.
|
|
81
|
+
- README rewritten around the new install paths (Claude Code plugin first,
|
|
82
|
+
then `npx -y @gempack/squad-mcp` for other clients) and includes
|
|
83
|
+
badges for npm version, CI, and license.
|
|
84
|
+
- `tests/integration/server-lifecycle.test.ts` and `tests/smoke.mjs` updated
|
|
85
|
+
to assert the full set of 12 registered tools.
|
|
86
|
+
|
|
87
|
+
## [0.3.0] - 2026-05-02
|
|
88
|
+
|
|
89
|
+
This release consolidates the work originally tracked as `0.2.0` (hardening,
|
|
90
|
+
observability, error model) with the new `0.3.0` capabilities (cross-stack
|
|
91
|
+
classification, changed-file detection, plan-text validation, multi-stack
|
|
92
|
+
content signals). No `0.2.0` git tag was created; that scope ships as part of
|
|
93
|
+
`0.3.0`.
|
|
94
|
+
|
|
95
|
+
### Added
|
|
96
|
+
|
|
97
|
+
#### New MCP tools
|
|
98
|
+
|
|
99
|
+
- `classify_work_type` — heuristic classifier mapping a user prompt + changed
|
|
100
|
+
file paths to a `WorkType` (`Feature`, `Bug Fix`, `Refactor`, `Performance`,
|
|
101
|
+
`Security`, `Business Rule`) with `Low`/`Medium`/`High` confidence and a
|
|
102
|
+
per-signal evidence trail. Treated as a suggestion; the host can override.
|
|
103
|
+
- `detect_changed_files` — wraps a hardened `git diff --name-status` to return
|
|
104
|
+
the changed files for a workspace. Supports `base_ref` (allowlisted refs
|
|
105
|
+
only — no leading `-`, no `..` substring, no `@{`, max 200 chars) and
|
|
106
|
+
`staged_only=true`. Default base is `HEAD~1..HEAD`. Enforces a 10s timeout
|
|
107
|
+
and a 1MB stdout cap.
|
|
108
|
+
- `validate_plan_text` — advisory-only check for inviolable-rule violations in
|
|
109
|
+
a plan text: `git commit`/`git push` fences inside code blocks, emojis in
|
|
110
|
+
code blocks, non-English identifiers in code blocks, and implementation
|
|
111
|
+
directives appearing before any approval marker. Never blocking — caller
|
|
112
|
+
decides what to do with findings.
|
|
113
|
+
|
|
114
|
+
#### Cross-stack detection
|
|
115
|
+
|
|
116
|
+
- `CONTENT_SIGNALS` extended beyond .NET with patterns for:
|
|
117
|
+
- **TypeScript / Node**: Express, Prisma, TypeORM, Sequelize, Mongoose,
|
|
118
|
+
bcrypt, Passport, JWT (`jsonwebtoken`), React hooks, Next.js.
|
|
119
|
+
- **Python**: SQLAlchemy, Django/Flask/FastAPI, Alembic, pytest, unittest,
|
|
120
|
+
`@app.route` / `@router.<verb>` HTTP routes.
|
|
121
|
+
- **Go**: GORM, sqlx, gin, chi, echo.
|
|
122
|
+
- `ContentSignal.ext_filter` (optional list of lowercase extensions) gates
|
|
123
|
+
patterns to specific file types so cross-stack tokens (e.g. `Schema(`,
|
|
124
|
+
`describe(...)`) do not fire in unrelated languages.
|
|
125
|
+
- `PATH_HINTS` extended with `models/`, `api/`, `handlers/`, `middleware/`,
|
|
126
|
+
`services/` folder conventions.
|
|
127
|
+
- `AGENT_NAMES` and `AGENT_NAMES_TUPLE` exported from `ownership-matrix.ts` so
|
|
128
|
+
zod schemas and external consumers can derive the canonical agent list from
|
|
129
|
+
a single source of truth.
|
|
130
|
+
|
|
131
|
+
#### Error model
|
|
132
|
+
|
|
133
|
+
- `SquadError` class with stable `SquadErrorCode` codes:
|
|
134
|
+
`PATH_TRAVERSAL_DENIED`, `PATH_REQUIRES_WORKSPACE`, `PATH_INVALID`,
|
|
135
|
+
`AGENT_DIR_MISSING`, `UNKNOWN_AGENT`, `INVALID_INPUT`, `INTERNAL_ERROR`,
|
|
136
|
+
`GIT_EXEC_DENIED`, `GIT_EXEC_TIMEOUT`, `GIT_NOT_FOUND`,
|
|
137
|
+
`GIT_OUTPUT_TOO_LARGE`, `GIT_NOT_A_REPO`. Codes propagate to MCP tool
|
|
138
|
+
responses as `{ error: { code, message, details } }`.
|
|
139
|
+
|
|
140
|
+
#### Hardened git execution
|
|
141
|
+
|
|
142
|
+
- `src/exec/git.ts` provides a single `runGit(subcommand, args, cwd, opts)`
|
|
143
|
+
entry point with multiple defenses:
|
|
144
|
+
- **Subcommand allowlist**: only `diff` and `status`.
|
|
145
|
+
- **Argument validation**: rejects `-c`, `--config`, `--exec-path`,
|
|
146
|
+
`--upload-pack`, `--receive-pack`, and arguments containing NUL bytes.
|
|
147
|
+
- **Ref validation**: regex allowlist, no leading `-`, no `..`/`@{`/`.lock`
|
|
148
|
+
substrings, no trailing `.`, max 200 chars.
|
|
149
|
+
- **CWD validation**: must be absolute, must exist, must be a directory,
|
|
150
|
+
must contain a `.git` entry. Resolved via `realpath`.
|
|
151
|
+
- **Hardening prefix**: every invocation prepends `-c core.fsmonitor=false
|
|
152
|
+
-c diff.external= -c core.hooksPath=NUL` (or `/dev/null`).
|
|
153
|
+
- **Environment scrub**: drops user env, sets `GIT_TERMINAL_PROMPT=0`,
|
|
154
|
+
`GIT_OPTIONAL_LOCKS=0`, `GIT_CONFIG_NOSYSTEM=1`,
|
|
155
|
+
`GIT_CEILING_DIRECTORIES=<parent of cwd>`.
|
|
156
|
+
- **Resource caps**: 10s default timeout, 1MB stdout cap, 256KB stderr cap.
|
|
157
|
+
Oversize output and timeout each kill the child (SIGTERM, then SIGKILL
|
|
158
|
+
after 1s) and surface as distinct error codes.
|
|
159
|
+
- **Binary resolution**: resolves `git` from `PATH` once and caches; on
|
|
160
|
+
Windows requires a `.exe` extension.
|
|
161
|
+
|
|
162
|
+
#### Path safety
|
|
163
|
+
|
|
164
|
+
- `src/util/path-safety.ts` exposes `resolveSafePath(workspaceRoot, file, ctx)`
|
|
165
|
+
with two modes:
|
|
166
|
+
- When `workspaceRoot` is `undefined`, the path is returned verbatim and
|
|
167
|
+
callers must treat it as path-only (no fs reads). Absolute or
|
|
168
|
+
`..`-bearing paths are rejected.
|
|
169
|
+
- When `workspaceRoot` is set, both the root and the candidate are
|
|
170
|
+
resolved through `realpath` and the relative result is checked
|
|
171
|
+
lexically. Symlink escape is rejected.
|
|
172
|
+
- Rejects malformed input up front: NUL bytes, leading `~`, NTFS Alternate
|
|
173
|
+
Data Stream markers (`:` after drive letter).
|
|
174
|
+
- `readSnippet(absPath)` reads up to `MAX_BYTES` (16 KB) from a previously
|
|
175
|
+
validated path and returns `null` for missing/unreadable files (silent).
|
|
176
|
+
- Documented residual TOCTOU window between `realpath()` and `fs.open()` —
|
|
177
|
+
acceptable for a single-user dev tool.
|
|
178
|
+
|
|
179
|
+
#### Structured observability
|
|
180
|
+
|
|
181
|
+
- `src/observability/logger.ts` provides a JSON-line logger that writes to
|
|
182
|
+
**stderr only** (stdout is reserved for JSON-RPC frames in stdio mode).
|
|
183
|
+
- Levels: `error` / `warn` / `info` / `debug`. Active level is read from
|
|
184
|
+
`SQUAD_LOG_LEVEL` env var (defaults to `info`) and can be overridden via
|
|
185
|
+
`setLogLevel`.
|
|
186
|
+
- `LogEntry` carries `tool`, `request_id`, `duration_ms`, `outcome`
|
|
187
|
+
(`success` / `tool_error` / `invalid_input` / `unknown_tool` /
|
|
188
|
+
`internal_error`), `input_shape`, `output_shape`, `error_code`, `details`.
|
|
189
|
+
- Free-form values are truncated to 256 chars and arrays/objects are reduced
|
|
190
|
+
to shape descriptors so logs cannot leak full inputs.
|
|
191
|
+
- `setupProcessHandlers()` installs `unhandledRejection` and
|
|
192
|
+
`uncaughtException` handlers that emit a final structured record before
|
|
193
|
+
exiting with code `1`.
|
|
194
|
+
|
|
195
|
+
#### Tool dispatcher tracing
|
|
196
|
+
|
|
197
|
+
- `dispatchTool` now generates a `request_id` per call and emits one log
|
|
198
|
+
entry on entry, one on validation failure, and one on completion (with
|
|
199
|
+
`duration_ms` and `outcome`). Errors are mapped: `SquadError` → tool
|
|
200
|
+
response with the original code; everything else → `INTERNAL_ERROR` with a
|
|
201
|
+
redacted message.
|
|
202
|
+
- Resource registry mirrors the same pattern for `agent://*` and
|
|
203
|
+
`severity://*` URIs.
|
|
204
|
+
|
|
205
|
+
#### Tests
|
|
206
|
+
|
|
207
|
+
- `tests/path-safety.test.ts` (15 tests).
|
|
208
|
+
- `tests/exec-git.test.ts` (21 tests).
|
|
209
|
+
- `tests/classify-work-type.test.ts` (11 tests).
|
|
210
|
+
- `tests/validate-plan-text.test.ts` (26 tests).
|
|
211
|
+
- `tests/dispatch-tool.test.ts` (5 tests).
|
|
212
|
+
- `tests/consolidate-extended.test.ts` (3 tests).
|
|
213
|
+
- `tests/select-squad-extended.test.ts` (6 tests).
|
|
214
|
+
- `tests/integration/stdout-purity.test.ts` — guards that the server emits
|
|
215
|
+
only JSON-RPC frames on stdout under both happy and failure paths.
|
|
216
|
+
- `tests/integration/server-lifecycle.test.ts` — drives a real stdio server
|
|
217
|
+
through `initialize`, `tools/list`, `tools/call`, `resources/list`,
|
|
218
|
+
`prompts/list`, and clean shutdown; includes a cross-stack fixture
|
|
219
|
+
scenario (`tests/fixtures/express.ts`, `fastapi.py`, `gin.go`).
|
|
220
|
+
|
|
221
|
+
#### Tooling
|
|
222
|
+
|
|
223
|
+
- `tools/sync-agents.mjs` mirrors the bundled `agents/` markdowns into
|
|
224
|
+
`~/.claude/agents/<agent>.md`, normalizing each file's frontmatter so the
|
|
225
|
+
Claude Code native agent loader can pick them up. Also copies
|
|
226
|
+
`_Severity-and-Ownership.md`, `Skill-Squad-Dev.md`, and
|
|
227
|
+
`Skill-Squad-Review.md` into `~/.claude/agents/_squad-shared/`.
|
|
228
|
+
|
|
229
|
+
### Changed
|
|
230
|
+
|
|
231
|
+
- `ContentSignal` interface gains the optional `ext_filter: string[]`
|
|
232
|
+
property. Existing signals without `ext_filter` continue to match all file
|
|
233
|
+
types — purely additive.
|
|
234
|
+
- `dispatchTool` wraps every handler in a uniform error envelope and stops
|
|
235
|
+
surfacing raw `Error.message` text on the wire. Callers depending on the
|
|
236
|
+
old plain-text errors must read `error.code` instead.
|
|
237
|
+
- Resource registry uses `SquadError('UNKNOWN_AGENT', …)` instead of
|
|
238
|
+
throwing a plain `Error` for unknown URIs.
|
|
239
|
+
|
|
240
|
+
### Fixed
|
|
241
|
+
|
|
242
|
+
- `SERVER_VERSION` in `src/index.ts` is now `0.3.0`, matching `package.json`.
|
|
243
|
+
Previously it lagged at `0.2.0` and the MCP `initialize` response
|
|
244
|
+
advertised the wrong version to clients.
|
|
245
|
+
|
|
246
|
+
## [0.1.0] - 2026-05-02
|
|
247
|
+
|
|
248
|
+
Initial scaffold. Marked here for completeness — no `0.1.0` git tag was
|
|
249
|
+
created; the scaffold lives at commit `548adc2` and the agent guardrail
|
|
250
|
+
update at commit `052c2ad`.
|
|
251
|
+
|
|
252
|
+
### Added
|
|
253
|
+
|
|
254
|
+
- MCP server skeleton over stdio with `@modelcontextprotocol/sdk` and Zod
|
|
255
|
+
schemas.
|
|
256
|
+
- Deterministic tools: `score_risk`, `select_squad`,
|
|
257
|
+
`slice_files_for_agent`, `apply_consolidation_rules`.
|
|
258
|
+
- Agent registry tools: `list_agents`, `get_agent_definition`,
|
|
259
|
+
`init_local_config` (copies bundled defaults to
|
|
260
|
+
`%APPDATA%\squad-mcp\agents` or `$XDG_CONFIG_HOME/squad-mcp/agents`).
|
|
261
|
+
- Agent loader with override priority: `$SQUAD_AGENTS_DIR` env var → local
|
|
262
|
+
config dir → bundled `agents/`.
|
|
263
|
+
- 9 agent markdowns + 3 shared docs bundled: `PO`, `TechLead-Planner`,
|
|
264
|
+
`TechLead-Consolidator`, `Senior-Architect`, `Senior-DBA`,
|
|
265
|
+
`Senior-Developer`, `Senior-Dev-Reviewer`, `Senior-Dev-Security`,
|
|
266
|
+
`Senior-QA`, `_Severity-and-Ownership`, `Skill-Squad-Dev`,
|
|
267
|
+
`Skill-Squad-Review`.
|
|
268
|
+
- Resources for each agent (`agent://<name>`) and shared spec
|
|
269
|
+
(`severity://<slug>`).
|
|
270
|
+
- Prompts: `squad_orchestration`, `agent_advisory`, `consolidator`.
|
|
271
|
+
- Domain-specific guardrails added to senior agents (`052c2ad`):
|
|
272
|
+
Senior-DBA query budget + concurrency, Senior-Developer
|
|
273
|
+
application-level concurrency + failure-mode analysis, Senior-Architect
|
|
274
|
+
conformance audit, Senior-Dev-Security dependency CVE scanning,
|
|
275
|
+
Senior-QA property-based testing.
|
|
276
|
+
- Smoke test (`tests/smoke.mjs`) plus initial unit tests for `score_risk`,
|
|
277
|
+
`select_squad`, `consolidate`.
|
|
278
|
+
|
|
279
|
+
[Unreleased]: https://github.com/ggemba/squad-mcp/compare/v0.3.1...HEAD
|
|
280
|
+
[0.3.1]: https://github.com/ggemba/squad-mcp/releases/tag/v0.3.1
|
|
281
|
+
[0.3.0]: https://github.com/ggemba/squad-mcp/releases/tag/v0.3.0
|
|
282
|
+
[0.1.0]: https://github.com/ggemba/squad-mcp/commit/548adc2
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for describing the origin of the Work and
|
|
141
|
+
reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Support. While redistributing the Work or
|
|
166
|
+
Derivative Works thereof, You may choose to offer, and charge a
|
|
167
|
+
fee for, acceptance of support, warranty, indemnity, or other
|
|
168
|
+
liability obligations and/or rights consistent with this License.
|
|
169
|
+
However, in accepting such obligations, You may act only on Your
|
|
170
|
+
own behalf and on Your sole responsibility, not on behalf of any
|
|
171
|
+
other Contributor, and only if You agree to indemnify, defend, and
|
|
172
|
+
hold each Contributor harmless for any liability incurred by, or
|
|
173
|
+
claims asserted against, such Contributor by reason of your accepting
|
|
174
|
+
any such warranty or support.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Gustavo
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
200
|
+
implied. See the License for the specific language governing
|
|
201
|
+
permissions and limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
squad-mcp
|
|
2
|
+
Copyright 2026 Gustavo
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Gustavo and contributors,
|
|
5
|
+
distributed under the terms of the Apache License, Version 2.0 (see LICENSE).
|
|
6
|
+
|
|
7
|
+
Third-party dependencies retain their own licenses; see node_modules or
|
|
8
|
+
package-lock.json for the full list. Notable runtime dependencies:
|
|
9
|
+
|
|
10
|
+
- @modelcontextprotocol/sdk (MIT, https://github.com/modelcontextprotocol/typescript-sdk)
|
|
11
|
+
- zod (MIT, https://github.com/colinhacks/zod)
|