@squadrules/mcp 5.3.0 → 5.4.0
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 +33 -78
- package/dist/.tsbuildinfo +1 -1
- package/dist/config/mem-boot.d.ts +3 -0
- package/dist/config/mem-boot.d.ts.map +1 -0
- package/dist/config/mem-boot.js +21 -0
- package/dist/config/mem-boot.js.map +1 -0
- package/dist/embed-docs/mem/README.md +13 -6
- package/dist/embed-docs/mem/adapter-migration.md +20 -19
- package/dist/embed-docs/mem/bulk-insert-adapters-via-cli.md +9 -8
- package/dist/embed-docs/mem/challenge-type-guide.md +4 -4
- package/dist/embed-docs/mem/create-new-protocol.md +42 -33
- package/dist/embed-docs/mem/critic-loop-guide.md +263 -0
- package/dist/embed-docs/mem/{phase-critic.md → critic-loop.md} +46 -22
- package/dist/embed-docs/mem/protocol-linking-guide.md +4 -4
- package/dist/embed-docs/mem/refine-search.md +1 -1
- package/dist/embed-docs/mem/skill-format-guide.md +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/resources/embedded-mcp-resources.d.ts +2 -2
- package/dist/resources/embedded-mcp-resources.js +12 -12
- package/dist/resources/embedded-mcp-resources.js.map +1 -1
- package/dist/resources/mem-resources-boot.d.ts.map +1 -1
- package/dist/resources/mem-resources-boot.js +19 -14
- package/dist/resources/mem-resources-boot.js.map +1 -1
- package/dist/services/memory/memory-accessors.d.ts +10 -0
- package/dist/services/memory/memory-accessors.d.ts.map +1 -1
- package/dist/services/memory/memory-accessors.js +19 -0
- package/dist/services/memory/memory-accessors.js.map +1 -1
- package/dist/services/memory/store.d.ts.map +1 -1
- package/dist/services/memory/store.js +2 -2
- package/dist/services/memory/store.js.map +1 -1
- package/dist/services/vector-store/lancedb/lance-records-reads.d.ts.map +1 -1
- package/dist/services/vector-store/lancedb/lance-records-reads.js +2 -2
- package/dist/services/vector-store/lancedb/lance-records-reads.js.map +1 -1
- package/dist/tools/mcp-tool-input-teaching.js +8 -8
- package/dist/tools/mcp-tool-input-teaching.js.map +1 -1
- package/dist/tools/review-evidence-check.d.ts +1 -1
- package/dist/tools/review-evidence-check.js +4 -4
- package/dist/tools/review-evidence-check.js.map +1 -1
- package/dist/tools/train_schema.js +4 -4
- package/dist/tools/train_schema.js.map +1 -1
- package/dist/tools/tune_schema.js +3 -3
- package/dist/tools/tune_schema.js.map +1 -1
- package/dist/ui/assets/{AccountPage-DhaO-G9K.js → AccountPage-r5IOzWyQ.js} +1 -1
- package/dist/ui/assets/{index-BtwABqCT.js → index-B80vBrUV.js} +2 -2
- package/dist/ui/assets/index-CSUUmfdT.css +2 -0
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/embed-docs/mem/phase-critic-guide.md +0 -199
- package/dist/ui/assets/index-fBTJW4Qq.css +0 -2
package/README.md
CHANGED
|
@@ -1,108 +1,63 @@
|
|
|
1
1
|
# SquadRules
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
their team's preferences and procedures. AI agents are its only users. One AI
|
|
5
|
-
and one human already form a team; ideally, the human never needs to know
|
|
6
|
-
SquadRules exists.
|
|
3
|
+
Help your AI remember how you like things done.
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
SquadRules gives AI assistants a shared place to keep your preferences and your
|
|
6
|
+
team's ways of working. Instead of explaining the same things in every chat,
|
|
7
|
+
your AI can find that knowledge and keep it up to date as your needs change.
|
|
8
|
+
Even you and one AI assistant are a team.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
stored adapters: instructions for applying preferences and executing workflows.
|
|
10
|
+
Your AI does the work of maintaining this knowledge, so you do not have to
|
|
11
|
+
manage it yourself.
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
when missing, ambiguous, or outdated instructions prevent autonomous execution.
|
|
16
|
-
Routine adapter maintenance belongs to the agent's work; it should not become
|
|
17
|
-
a separate task for the human.
|
|
13
|
+
## Manual installation
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
one. Learning a preference does not authorize an unrelated action.
|
|
15
|
+
You need [Node.js](https://nodejs.org/) 24 or newer and an AI app that supports
|
|
16
|
+
MCP, the connection that lets your AI use SquadRules.
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
### 1. Connect SquadRules
|
|
24
19
|
|
|
25
|
-
|
|
26
|
-
- **Execute:** `forward` supplies a layer's contract and guides continuation.
|
|
27
|
-
- **Finalize:** `reward` records the run's outcome.
|
|
28
|
-
- **Maintain:** `train`, `tune`, `export`, `delete`, and `spaces` support adapter
|
|
29
|
-
and space management according to their tool contracts.
|
|
30
|
-
|
|
31
|
-
Semantic search discovers relevant knowledge. Explicit links compose known
|
|
32
|
-
workflow dependencies. Agents perform the work required by each layer and
|
|
33
|
-
submit evidence; advancing through a workflow does not itself prove that the
|
|
34
|
-
underlying task succeeded.
|
|
35
|
-
|
|
36
|
-
Use the connected server's schemas and returned instructions for actual calls.
|
|
37
|
-
The [SquadRules skill](.agents/skills/squadrules/SKILL.md) contains agent entry
|
|
38
|
-
instructions; [tool documentation](src/embed-docs/tools/) and
|
|
39
|
-
[built-in adapters](src/embed-docs/mem/) live with the implementation.
|
|
40
|
-
|
|
41
|
-
## Local setup
|
|
42
|
-
|
|
43
|
-
Requires Node.js 24 or newer. Install the package:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
npm install -g @squadrules/mcp
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Configure the agent host to launch the MCP server:
|
|
20
|
+
Add this to your AI app's MCP configuration:
|
|
50
21
|
|
|
51
22
|
```json
|
|
52
23
|
{
|
|
53
24
|
"mcpServers": {
|
|
54
|
-
"
|
|
55
|
-
"command": "
|
|
56
|
-
"args": [
|
|
57
|
-
|
|
25
|
+
"squadrules": {
|
|
26
|
+
"command": "npx",
|
|
27
|
+
"args": [
|
|
28
|
+
"-y",
|
|
29
|
+
"@squadrules/mcp@latest"
|
|
30
|
+
]
|
|
58
31
|
}
|
|
59
32
|
}
|
|
60
33
|
}
|
|
61
34
|
```
|
|
62
35
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
36
|
+
Restart the app if it asks you to. The first start may take a little longer
|
|
37
|
+
while SquadRules downloads what it needs.
|
|
38
|
+
|
|
39
|
+
### 2. Add the skill
|
|
67
40
|
|
|
68
|
-
|
|
41
|
+
The skill tells your AI when to use SquadRules. Run this in a terminal and
|
|
42
|
+
follow the prompts to select your AI app:
|
|
69
43
|
|
|
70
44
|
```bash
|
|
71
45
|
npx skills add SquadRules/mcp --skill squadrules
|
|
72
46
|
```
|
|
73
47
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## Runtime modes
|
|
79
|
-
|
|
80
|
-
| Mode | Behavior |
|
|
81
|
-
| --- | --- |
|
|
82
|
-
| Local stdio | Host launches `squadrules serve`; embedded storage, authentication off, no HTTP listener. |
|
|
83
|
-
| HTTP | `squadrules serve --transport http`; serves MCP at `/mcp`, REST at `/api/*`, and the UI at `/ui`; authentication defaults on. |
|
|
84
|
-
|
|
85
|
-
Local stdio rejects `AUTH_ENABLED=true` and a nonempty `QDRANT_URL`. Configure
|
|
86
|
-
HTTP mode for an authenticated deployment or an external Qdrant backend.
|
|
87
|
-
See [runtime configuration](src/config/runtime-mode.ts) and the
|
|
88
|
-
[environment template](scripts/env/.env.template) for settings.
|
|
89
|
-
For CLI commands, run `squadrules --help`.
|
|
48
|
+
Use an app that supports both MCP and skills. If you are unsure where to add
|
|
49
|
+
the configuration or run the command, ask your AI assistant to help you set up
|
|
50
|
+
SquadRules for your app.
|
|
90
51
|
|
|
91
|
-
|
|
92
|
-
[SquadRules/containers](https://github.com/SquadRules/containers) and
|
|
93
|
-
[SquadRules/charts](https://github.com/SquadRules/charts).
|
|
52
|
+
## Try it
|
|
94
53
|
|
|
95
|
-
|
|
54
|
+
> Let's build our first SquadRules flow together. Ask me what I do often,
|
|
55
|
+
> help me improve it, and save the flow for next time.
|
|
96
56
|
|
|
97
|
-
|
|
98
|
-
[AGENTS.md](AGENTS.md) for repository agent instructions.
|
|
99
|
-
[Architecture decisions](docs/adr/) remain available as reference material.
|
|
100
|
-
Documents under `docs-to-be-reviewed/` are pending review and must not be used
|
|
101
|
-
as authoritative instructions.
|
|
57
|
+
## Contributing
|
|
102
58
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
not a claim that runtime enforcement is already complete.
|
|
59
|
+
See [Contributing](CONTRIBUTING.md) and our
|
|
60
|
+
[development principles](AGENTS.md#development-constitution).
|
|
106
61
|
|
|
107
62
|
## License and trademark
|
|
108
63
|
|