squally-mcp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/instructions.js +3 -0
- package/dist/tools.d.ts +13 -0
- package/dist/tools.js +14 -0
- package/package.json +17 -2
package/README.md
CHANGED
|
@@ -24,11 +24,12 @@ Worth knowing before you hand a key to an assistant. Through this server an
|
|
|
24
24
|
agent can read:
|
|
25
25
|
|
|
26
26
|
- your **projects**, their names and stable branches;
|
|
27
|
-
- your **CI runs** — commit SHA, branch, author,
|
|
27
|
+
- your **CI runs** — commit SHA and message, branch, author, pull request,
|
|
28
|
+
timing, pass/fail counts;
|
|
28
29
|
- **per-test results** for a run, including which shard ran what;
|
|
29
|
-
- for a failing attempt: the **error message and stack**, the **
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
- for a failing attempt: the **error message and stack**, the **code snippet**
|
|
31
|
+
— **verbatim source code from your test file** — and the **Copy-for-AI
|
|
32
|
+
prompt**, which carries the same snippet plus an **ARIA snapshot of your
|
|
32
33
|
application at the moment of failure** (whatever was on screen, truncated to
|
|
33
34
|
3000 characters);
|
|
34
35
|
- **flakiness verdicts** and how much time each flaky test has cost;
|
|
@@ -118,7 +119,7 @@ restart the app:
|
|
|
118
119
|
| `squally-list-projects` | Which projects exist. **Start here** — every other tool needs a `projectId` from it. | cheap |
|
|
119
120
|
| `squally-find-run` | Which runs happened — latest, or by branch, commit SHA or status. Counters only. | cheap |
|
|
120
121
|
| `squally-get-run` | One run with its per-test rows, across all shards. Which test is red. | cheap |
|
|
121
|
-
| `squally-debug-failure` | Every attempt of one test in one run: error, stack,
|
|
122
|
+
| `squally-debug-failure` | Every attempt of one test in one run: error, stack, Copy-for-AI prompt. | cheap |
|
|
122
123
|
| `squally-get-test-status` | The stored flakiness status of **one** test. | cheap — one lookup |
|
|
123
124
|
| `squally-list-flaky-tests` | The ranked flaky/broken list with time lost. | **expensive — one engine pass** |
|
|
124
125
|
| `squally-list-errors` | Error signatures in a period: what keeps failing, grouped. | cheap |
|
package/dist/instructions.js
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
// projectId (which every other tool needs), reaching for the expensive ranking
|
|
6
6
|
// to ask about one test, guessing at an ambiguous test name instead of passing
|
|
7
7
|
// filePath, and ignoring the action the API already put in the error.
|
|
8
|
+
//
|
|
9
|
+
// Exported as `squally-mcp/instructions` (package.json), so it stays a plain
|
|
10
|
+
// constant - test/exports.test.js imports it through the package name.
|
|
8
11
|
export const INSTRUCTIONS = [
|
|
9
12
|
"Start with squally-list-projects; every other tool needs a projectId from it.",
|
|
10
13
|
"For one test, use squally-get-test-status (cheap), not squally-list-flaky-tests",
|
package/dist/tools.d.ts
CHANGED
|
@@ -10,5 +10,18 @@ export type ToolDefinition = {
|
|
|
10
10
|
title: string;
|
|
11
11
|
operationId: string;
|
|
12
12
|
description: string;
|
|
13
|
+
/**
|
|
14
|
+
* FOR PEOPLE, NOT THE MODEL: what the tool answers, in one line - the
|
|
15
|
+
* README's tool table and the docs' tool list. Never sent to a client:
|
|
16
|
+
* toolList() (server.ts) copies the wire fields one by one, and the digest
|
|
17
|
+
* pinned in test/tools.test.js would catch a leak.
|
|
18
|
+
*/
|
|
19
|
+
answers: string;
|
|
20
|
+
/**
|
|
21
|
+
* FOR PEOPLE: "expensive" is the one engine pass (§4.2.2), everything else
|
|
22
|
+
* is "cheap". The model learns the same from `description` and the server
|
|
23
|
+
* instructions, not from this.
|
|
24
|
+
*/
|
|
25
|
+
cost: "cheap" | "expensive";
|
|
13
26
|
};
|
|
14
27
|
export declare const TOOLS: ToolDefinition[];
|
package/dist/tools.js
CHANGED
|
@@ -16,6 +16,8 @@ export const TOOLS = [
|
|
|
16
16
|
operationId: "listProjects",
|
|
17
17
|
description: "Lists the projects in your Squally organization. Start here: every other tool needs a " +
|
|
18
18
|
"projectId, and this is the only tool that produces one.",
|
|
19
|
+
answers: "Which projects exist. Start here — every other tool needs a projectId from it.",
|
|
20
|
+
cost: "cheap",
|
|
19
21
|
},
|
|
20
22
|
{
|
|
21
23
|
name: "squally-find-run",
|
|
@@ -24,6 +26,8 @@ export const TOOLS = [
|
|
|
24
26
|
description: "Finds CI runs of a project - the latest, or filtered by branch, commit SHA or status. " +
|
|
25
27
|
"One row per logical run: a sharded run is collapsed into a single entry. Returns summary " +
|
|
26
28
|
"counters only; use squally-get-run for the per-test rows.",
|
|
29
|
+
answers: "Which runs happened — latest, or by branch, commit SHA or status. Counters only.",
|
|
30
|
+
cost: "cheap",
|
|
27
31
|
},
|
|
28
32
|
{
|
|
29
33
|
name: "squally-get-run",
|
|
@@ -31,6 +35,8 @@ export const TOOLS = [
|
|
|
31
35
|
operationId: "getRun",
|
|
32
36
|
description: "One run with its per-test result rows, across every shard. Use this to find out which " +
|
|
33
37
|
"test is red in a run; the run list carries only the counters.",
|
|
38
|
+
answers: "One run with its per-test rows, across all shards. Which test is red.",
|
|
39
|
+
cost: "cheap",
|
|
34
40
|
},
|
|
35
41
|
{
|
|
36
42
|
name: "squally-debug-failure",
|
|
@@ -39,6 +45,8 @@ export const TOOLS = [
|
|
|
39
45
|
description: "Every attempt of one test in one run, oldest first, each with the error, the stack and " +
|
|
40
46
|
"the Copy-for-AI prompt (the same text the Squally UI puts on the clipboard). This is the " +
|
|
41
47
|
"tool for 'why did this test fail'. If the test name is ambiguous, pass filePath.",
|
|
48
|
+
answers: "Every attempt of one test in one run: error, stack, Copy-for-AI prompt.",
|
|
49
|
+
cost: "cheap",
|
|
42
50
|
},
|
|
43
51
|
{
|
|
44
52
|
name: "squally-get-test-status",
|
|
@@ -47,6 +55,8 @@ export const TOOLS = [
|
|
|
47
55
|
description: "The stored flakiness status and active signals for ONE test. Cheap - one findUnique. " +
|
|
48
56
|
"Use this when you are asking about a single test; do not reach for " +
|
|
49
57
|
"squally-list-flaky-tests, which is expensive.",
|
|
58
|
+
answers: "The stored flakiness status of one test.",
|
|
59
|
+
cost: "cheap",
|
|
50
60
|
},
|
|
51
61
|
{
|
|
52
62
|
name: "squally-list-flaky-tests",
|
|
@@ -55,6 +65,8 @@ export const TOOLS = [
|
|
|
55
65
|
description: "The project's flaky and broken tests, ranked, with the time each has cost (timeLostMs). " +
|
|
56
66
|
"Expensive - one engine pass over the project's recent runs. For a single test use " +
|
|
57
67
|
"squally-get-test-status instead.",
|
|
68
|
+
answers: "The ranked flaky/broken list with time lost.",
|
|
69
|
+
cost: "expensive",
|
|
58
70
|
},
|
|
59
71
|
{
|
|
60
72
|
name: "squally-list-errors",
|
|
@@ -63,5 +75,7 @@ export const TOOLS = [
|
|
|
63
75
|
description: "The project's error signatures in a period: failures grouped by fingerprint, with how " +
|
|
64
76
|
"often and how recently each occurred. Answers 'is this failure one instance of something " +
|
|
65
77
|
"that keeps happening' - a grouping no agent can compute from the repository alone.",
|
|
78
|
+
answers: "Error signatures in a period: what keeps failing, grouped.",
|
|
79
|
+
cost: "cheap",
|
|
66
80
|
},
|
|
67
81
|
];
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squally-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local MCP server for Squally — read-only access to your Playwright test runs, flaky tests and failures.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Squally",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://docs.squally.dev/agents/mcp-server/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/squallydev-admin/squally-mcp.git"
|
|
@@ -25,6 +25,21 @@
|
|
|
25
25
|
},
|
|
26
26
|
"main": "dist/index.js",
|
|
27
27
|
"types": "dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./tools": {
|
|
34
|
+
"types": "./dist/tools.d.ts",
|
|
35
|
+
"default": "./dist/tools.js"
|
|
36
|
+
},
|
|
37
|
+
"./instructions": {
|
|
38
|
+
"types": "./dist/instructions.d.ts",
|
|
39
|
+
"default": "./dist/instructions.js"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
28
43
|
"files": [
|
|
29
44
|
"dist"
|
|
30
45
|
],
|