@vitest-agent/mcp 6.1.5 → 6.1.7
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/index.d.ts +19 -3
- package/main.d.ts +18 -0
- package/package.json +11 -11
- package/version.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vitest-agent/mcp
|
|
3
|
+
*
|
|
4
|
+
* Model Context Protocol server for vitest-agent, built on Effect's
|
|
5
|
+
* native `McpServer` (`effect/ai`). Exposes 30 tools (one
|
|
6
|
+
* tool per file under `tools/`, assembled in `toolkit.ts` and registered
|
|
7
|
+
* strict-by-default through `@effected/mcp-kit`'s `McpToolkit.layer`)
|
|
8
|
+
* plus six framing prompts (`prompts/layer.ts`) over stdio, giving agents
|
|
9
|
+
* structured access to test data, coverage, history, trends, errors,
|
|
10
|
+
* notes and the TDD lifecycle — backed by the SQLite database that the
|
|
11
|
+
* reporter writes during test runs.
|
|
12
|
+
*
|
|
13
|
+
* The default entry point is `bin.ts` (registered as the
|
|
14
|
+
* `vitest-agent-mcp` bin) over `main.ts` (published as `./main` so the
|
|
15
|
+
* carrier can ship the same bin); this barrel re-exports the supporting
|
|
16
|
+
* pieces for programmatic use and never imports `main.ts`.
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
1
20
|
import { ToolRefusal, ToolRefusal as ToolRefusal$1 } from "@effected/mcp-kit";
|
|
2
21
|
import { Context, Effect, Layer, Schema, Scope, Stdio } from "effect";
|
|
3
22
|
import { McpServer, Tool, Toolkit } from "effect/ai";
|
|
4
23
|
import { DataReader, DataStore, ProjectDiscovery, SessionContext } from "@vitest-agent/engine";
|
|
5
|
-
import "@effected/git";
|
|
6
|
-
import "@effected/mcp-kit/node";
|
|
7
|
-
import "@vitest-agent/sdk";
|
|
8
24
|
import { Remediation } from "@effected/kit";
|
|
9
25
|
/**
|
|
10
26
|
* Formerly rendered a tool's encoded result as a markdown `content[0].text`
|
package/main.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The assembled vitest-agent MCP server program over stdio. Owns the process.
|
|
3
|
+
*
|
|
4
|
+
* This module deliberately carries NO static imports of the server graph:
|
|
5
|
+
* `McpGuard` (`@effected/mcp-kit/guard`, itself free of static runtime imports)
|
|
6
|
+
* registers the `unhandledRejection` and `uncaughtException` guards before
|
|
7
|
+
* `load` imports `effect`, `NodeRuntime`, the engine platform and
|
|
8
|
+
* `ServerLayer`, so a throw during module evaluation is still reported on
|
|
9
|
+
* stderr rather than crashing silently. Adding a static import here would
|
|
10
|
+
* defeat that; an `import type` is erased at build time and is fine. `bin.ts` is
|
|
11
|
+
* the published bin shim; this module is also published as the `./main`
|
|
12
|
+
* subpath so the carrier (`@vitest-agent/plugin`) can ship its own
|
|
13
|
+
* `vitest-agent-mcp` bin over it, passing its identity as `distribution`.
|
|
14
|
+
*
|
|
15
|
+
* Every `process` read lives here, not in the server layer or the tools.
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
1
19
|
import { Distribution } from "@effected/kit";
|
|
2
20
|
/**
|
|
3
21
|
* Options for {@link main}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitest-agent/mcp",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Model Context Protocol server for vitest-agent. Exposes 30 tools for agent access to test data, TDD lifecycle, and session management.",
|
|
6
6
|
"keywords": [
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"vitest-agent-mcp": "bin/vitest-agent-mcp.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@effect/platform-node": "4.1.
|
|
47
|
-
"@effected/commands": "
|
|
48
|
-
"@effected/git": "
|
|
49
|
-
"@effected/glob": "
|
|
50
|
-
"@effected/kit": "
|
|
51
|
-
"@effected/mcp-kit": "
|
|
52
|
-
"@effected/walker": "
|
|
53
|
-
"@vitest-agent/engine": "3.2.
|
|
54
|
-
"@vitest-agent/sdk": "9.0.
|
|
55
|
-
"effect": "4.1.
|
|
46
|
+
"@effect/platform-node": "4.1.4",
|
|
47
|
+
"@effected/commands": "0.21.0",
|
|
48
|
+
"@effected/git": "0.32.0",
|
|
49
|
+
"@effected/glob": "0.21.0",
|
|
50
|
+
"@effected/kit": "0.14.0",
|
|
51
|
+
"@effected/mcp-kit": "0.15.0",
|
|
52
|
+
"@effected/walker": "0.28.0",
|
|
53
|
+
"@vitest-agent/engine": "3.2.4",
|
|
54
|
+
"@vitest-agent/sdk": "9.0.5",
|
|
55
|
+
"effect": "4.1.4"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"vitest": "^5.0.0"
|