@vitest-agent/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/index.js CHANGED
@@ -2,35 +2,39 @@ import { RenderText } from "./annotations.js";
2
2
  import { withIdempotency } from "./idempotency.js";
3
3
  import { McpSession, createCurrentSessionIdRef, createSessionContextRef, sessionContextFromEnv } from "./session.js";
4
4
  import { PromptsLayer } from "./prompts/layer.js";
5
- import { AcceptanceMetricsResult } from "./tools/acceptance-metrics.js";
6
- import { CacheHealthResult } from "./tools/cache-health.js";
7
- import { CommitChangesInput, CommitChangesResult } from "./tools/commit-changes.js";
8
- import { ConfigureInput, ConfigureResult } from "./tools/configure.js";
9
- import { TestCoverageInput, TestCoverageResult } from "./tools/coverage.js";
10
- import { TestErrorsInput, TestErrorsResult } from "./tools/errors.js";
11
- import { FailureSignatureGetInput, FailureSignatureGetResult } from "./tools/failure-signature-get.js";
12
- import { FileCoverageInput, FileCoverageResult } from "./tools/file-coverage.js";
13
- import { HelpResult } from "./tools/help.js";
14
- import { TestHistoryInput, TestHistoryResult } from "./tools/history.js";
15
- import { InventoryInput, InventoryResult } from "./tools/inventory.js";
16
- import { NoteParams, NoteResult } from "./tools/note.js";
17
- import { TestOverviewInput, TestOverviewResult } from "./tools/overview.js";
18
- import { PingResult } from "./tools/ping.js";
19
- import { RegisterAgentInput, RegisterAgentResult } from "./tools/register-agent.js";
20
- import { RunTestsInput, RunTestsResult } from "./tools/run-tests.js";
21
- import { SettingsListResult } from "./tools/settings-list.js";
22
- import { TestStatusInput, TestStatusResult } from "./tools/status.js";
23
- import { TddArtifactListInput, TddArtifactListResult } from "./tools/tdd-artifact.js";
24
- import { PhaseTransitionInput, PhaseTransitionResult } from "./tools/tdd-phase-transition-request.js";
25
- import { TddProgressPushInput, TddProgressPushResult } from "./tools/tdd-progress-push.js";
26
- import { TestInput, TestResult } from "./tools/test.js";
27
- import { TestTrendsInput, TestTrendsResult } from "./tools/trends.js";
28
- import { TriageBriefInput, TriageBriefResult } from "./tools/triage-brief.js";
29
- import { TurnSearchInput, TurnSearchResult } from "./tools/turn-search.js";
30
- import { WrapupPromptInput, WrapupPromptResult } from "./tools/wrapup-prompt.js";
5
+ import { AcceptanceMetricsResult, acceptanceMetricsTool, handleAcceptanceMetrics } from "./tools/acceptance-metrics.js";
6
+ import { CacheHealthResult, cacheHealthTool, handleCacheHealth } from "./tools/cache-health.js";
7
+ import { CommitChangesInput, CommitChangesResult, commitChangesTool, handleCommitChanges } from "./tools/commit-changes.js";
8
+ import { ConfigureInput, ConfigureResult, configureTool, handleConfigure } from "./tools/configure.js";
9
+ import { TestCoverageInput, TestCoverageResult, handleTestCoverage, testCoverageTool } from "./tools/coverage.js";
10
+ import { TestErrorsInput, TestErrorsResult, handleTestErrors, testErrorsTool } from "./tools/errors.js";
11
+ import { FailureSignatureGetInput, FailureSignatureGetResult, failureSignatureGetTool, handleFailureSignatureGet } from "./tools/failure-signature-get.js";
12
+ import { FileCoverageInput, FileCoverageResult, fileCoverageTool, handleFileCoverage } from "./tools/file-coverage.js";
13
+ import { HelpResult, handleHelp, helpTool } from "./tools/help.js";
14
+ import { TestHistoryInput, TestHistoryResult, handleTestHistory, testHistoryTool } from "./tools/history.js";
15
+ import { HypothesisInput, HypothesisResult, handleHypothesis, hypothesisTool } from "./tools/hypothesis.js";
16
+ import { InventoryInput, InventoryResult, handleInventory, inventoryTool } from "./tools/inventory.js";
17
+ import { NoteParams, NoteResult, handleNote, noteTool } from "./tools/note.js";
18
+ import { TestOverviewInput, TestOverviewResult, handleTestOverview, testOverviewTool } from "./tools/overview.js";
19
+ import { PingResult, handlePing, pingTool } from "./tools/ping.js";
20
+ import { RegisterAgentInput, RegisterAgentResult, handleRegisterAgent, registerAgentTool } from "./tools/register-agent.js";
21
+ import { RunTestsInput, RunTestsResult, handleRunTests, runTestsTool } from "./tools/run-tests.js";
22
+ import { SettingsListResult, handleSettingsList, settingsListTool } from "./tools/settings-list.js";
23
+ import { TestStatusInput, TestStatusResult, handleTestStatus, testStatusTool } from "./tools/status.js";
24
+ import { TddArtifactListInput, TddArtifactListResult, handleTddArtifactList, tddArtifactListTool } from "./tools/tdd-artifact.js";
25
+ import { TddBehaviorInput, TddBehaviorResult, handleTddBehavior, tddBehaviorTool } from "./tools/tdd-behavior.js";
26
+ import { TddGoalInput, TddGoalResult, handleTddGoal, tddGoalTool } from "./tools/tdd-goal.js";
27
+ import { PhaseTransitionInput, PhaseTransitionResult, handlePhaseTransitionRequest, tddPhaseTransitionRequestTool } from "./tools/tdd-phase-transition-request.js";
28
+ import { TddProgressPushInput, TddProgressPushResult, handleTddProgressPush, tddProgressPushTool } from "./tools/tdd-progress-push.js";
29
+ import { TddTaskInput, TddTaskResult, handleTddTask, tddTaskTool } from "./tools/tdd-task.js";
30
+ import { TestInput, TestResult, handleTest, testTool } from "./tools/test.js";
31
+ import { TestTrendsInput, TestTrendsResult, handleTestTrends, testTrendsTool } from "./tools/trends.js";
32
+ import { TriageBriefInput, TriageBriefResult, handleTriageBrief, triageBriefTool } from "./tools/triage-brief.js";
33
+ import { TurnSearchInput, TurnSearchResult, handleTurnSearch, turnSearchTool } from "./tools/turn-search.js";
34
+ import { WrapupPromptInput, WrapupPromptResult, handleWrapupPrompt, wrapupPromptTool } from "./tools/wrapup-prompt.js";
31
35
  import { Kit, ToolsLayer, toolHandlers } from "./toolkit.js";
32
36
  import { SERVER_INSTRUCTIONS, ServerLayer } from "./server.js";
33
37
  import { CURRENT_MCP_VERSION } from "./version.js";
34
38
  import { ToolRefusal } from "@effected/mcp";
35
39
 
36
- export { AcceptanceMetricsResult, CURRENT_MCP_VERSION, CacheHealthResult, CommitChangesInput, CommitChangesResult, ConfigureInput, ConfigureResult, FailureSignatureGetInput, FailureSignatureGetResult, FileCoverageInput, FileCoverageResult, HelpResult, InventoryInput, InventoryResult, Kit, McpSession, NoteParams, NoteResult, PhaseTransitionInput, PhaseTransitionResult, PingResult, PromptsLayer, RegisterAgentInput, RegisterAgentResult, RenderText, RunTestsInput, RunTestsResult, SERVER_INSTRUCTIONS, ServerLayer, SettingsListResult, TddArtifactListInput, TddArtifactListResult, TddProgressPushInput, TddProgressPushResult, TestCoverageInput, TestCoverageResult, TestErrorsInput, TestErrorsResult, TestHistoryInput, TestHistoryResult, TestInput, TestOverviewInput, TestOverviewResult, TestResult, TestStatusInput, TestStatusResult, TestTrendsInput, TestTrendsResult, ToolRefusal, ToolsLayer, TriageBriefInput, TriageBriefResult, TurnSearchInput, TurnSearchResult, WrapupPromptInput, WrapupPromptResult, createCurrentSessionIdRef, createSessionContextRef, sessionContextFromEnv, toolHandlers, withIdempotency };
40
+ export { AcceptanceMetricsResult, CURRENT_MCP_VERSION, CacheHealthResult, CommitChangesInput, CommitChangesResult, ConfigureInput, ConfigureResult, FailureSignatureGetInput, FailureSignatureGetResult, FileCoverageInput, FileCoverageResult, HelpResult, HypothesisInput, HypothesisResult, InventoryInput, InventoryResult, Kit, McpSession, NoteParams, NoteResult, PhaseTransitionInput, PhaseTransitionResult, PingResult, PromptsLayer, RegisterAgentInput, RegisterAgentResult, RenderText, RunTestsInput, RunTestsResult, SERVER_INSTRUCTIONS, ServerLayer, SettingsListResult, TddArtifactListInput, TddArtifactListResult, TddBehaviorInput, TddBehaviorResult, TddGoalInput, TddGoalResult, TddProgressPushInput, TddProgressPushResult, TddTaskInput, TddTaskResult, TestCoverageInput, TestCoverageResult, TestErrorsInput, TestErrorsResult, TestHistoryInput, TestHistoryResult, TestInput, TestOverviewInput, TestOverviewResult, TestResult, TestStatusInput, TestStatusResult, TestTrendsInput, TestTrendsResult, ToolRefusal, ToolsLayer, TriageBriefInput, TriageBriefResult, TurnSearchInput, TurnSearchResult, WrapupPromptInput, WrapupPromptResult, acceptanceMetricsTool, cacheHealthTool, commitChangesTool, configureTool, createCurrentSessionIdRef, createSessionContextRef, failureSignatureGetTool, fileCoverageTool, handleAcceptanceMetrics, handleCacheHealth, handleCommitChanges, handleConfigure, handleFailureSignatureGet, handleFileCoverage, handleHelp, handleHypothesis, handleInventory, handleNote, handlePhaseTransitionRequest, handlePing, handleRegisterAgent, handleRunTests, handleSettingsList, handleTddArtifactList, handleTddBehavior, handleTddGoal, handleTddProgressPush, handleTddTask, handleTest, handleTestCoverage, handleTestErrors, handleTestHistory, handleTestOverview, handleTestStatus, handleTestTrends, handleTriageBrief, handleTurnSearch, handleWrapupPrompt, helpTool, hypothesisTool, inventoryTool, noteTool, pingTool, registerAgentTool, runTestsTool, sessionContextFromEnv, settingsListTool, tddArtifactListTool, tddBehaviorTool, tddGoalTool, tddPhaseTransitionRequestTool, tddProgressPushTool, tddTaskTool, testCoverageTool, testErrorsTool, testHistoryTool, testOverviewTool, testStatusTool, testTool, testTrendsTool, toolHandlers, triageBriefTool, turnSearchTool, withIdempotency, wrapupPromptTool };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitest-agent/mcp",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
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": [
@@ -46,10 +46,10 @@
46
46
  "@effect/platform-node": "^4.0.6",
47
47
  "@effect/sql-sqlite-node": "^4.0.6",
48
48
  "@effected/engine": "^0.8.0",
49
- "@effected/git": "^0.25.0",
49
+ "@effected/git": "^0.25.1",
50
50
  "@effected/mcp": "^0.9.0",
51
- "@effected/walker": "^0.19.0",
52
- "@vitest-agent/engine": "2.0.0",
51
+ "@effected/walker": "^0.20.1",
52
+ "@vitest-agent/engine": "2.1.0",
53
53
  "@vitest-agent/sdk": "8.0.0",
54
54
  "effect": "^4.0.6"
55
55
  },
@@ -32,6 +32,11 @@ const HypothesisListOk = Schema.Struct({
32
32
  count: Schema.Number,
33
33
  hypotheses: Schema.Array(HypothesisRowSchema)
34
34
  });
35
+ /**
36
+ * The `hypothesis` tool's success payload.
37
+ *
38
+ * @public
39
+ */
35
40
  const HypothesisResult = ToolOutputSchema.objectRooted(Schema.Union([
36
41
  HypothesisRecordOk,
37
42
  HypothesisValidateOk,
@@ -86,7 +91,7 @@ const HypothesisInput = Schema.Union([
86
91
  ]);
87
92
  /**
88
93
  * Handler for {@link hypothesisTool}. `record` fails with a
89
- * {@link ToolRefusal} (an `isError` result naming the fix) when the binding
94
+ * `ToolRefusal` (an `isError` result naming the fix) when the binding
90
95
  * session cannot be resolved: an unknown `tddTaskId`, an unknown fallback
91
96
  * `sessionId`, or no session at all; `validate` does for an unknown id. Any
92
97
  * other store failure is a defect.
@@ -68,6 +68,11 @@ const TddBehaviorListByTddTaskOk = Schema.Struct({
68
68
  tddTaskId: Schema.Number,
69
69
  behaviors: Schema.Array(BehaviorRow)
70
70
  });
71
+ /**
72
+ * The `tdd_behavior` tool's success payload.
73
+ *
74
+ * @public
75
+ */
71
76
  const TddBehaviorResult = ToolOutputSchema.objectRooted(Schema.Union([
72
77
  TddBehaviorCreateOk,
73
78
  TddBehaviorUpdateOk,
package/tools/tdd-goal.js CHANGED
@@ -62,6 +62,11 @@ const TddGoalListOk = Schema.Struct({
62
62
  tddTaskId: Schema.Number,
63
63
  goals: Schema.Array(GoalDetail).annotate({ description: "All goals for the TDD task, with their behaviors." })
64
64
  }).annotate({ identifier: "TddGoalListOk" });
65
+ /**
66
+ * The `tdd_goal` tool's success payload.
67
+ *
68
+ * @public
69
+ */
65
70
  const TddGoalResult = ToolOutputSchema.objectRooted(Schema.Union([
66
71
  TddGoalCreateOk,
67
72
  TddGoalUpdateOk,
package/tools/tdd-task.js CHANGED
@@ -83,6 +83,11 @@ const TddTaskResumeMissing = Schema.Struct({
83
83
  found: Schema.Literal(false),
84
84
  tddTaskId: Schema.Number
85
85
  }).annotate({ identifier: "TddTaskResumeMissing" });
86
+ /**
87
+ * The `tdd_task` tool's success payload.
88
+ *
89
+ * @public
90
+ */
86
91
  const TddTaskResult = ToolOutputSchema.objectRooted(Schema.Union([
87
92
  TddTaskStartOk,
88
93
  TddTaskEndOk,
@@ -136,7 +141,7 @@ const TddTaskInput = Schema.Union([
136
141
  /**
137
142
  * Handler for {@link tddTaskTool}. A `start` with neither `sessionId` nor
138
143
  * `chatId`, an unknown `sessionId` or `chatId`, or a blank `runId` fails with a
139
- * {@link ToolRefusal} (an `isError` result naming the fix). A store failure is
144
+ * `ToolRefusal` (an `isError` result naming the fix). A store failure is
140
145
  * a defect.
141
146
  *
142
147
  * @public
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.1"
8
+ "packageVersion": "7.59.4"
9
9
  }
10
10
  ]
11
11
  }
package/version.js CHANGED
@@ -7,6 +7,6 @@
7
7
  *
8
8
  * @public
9
9
  */
10
- const CURRENT_MCP_VERSION = "5.3.0";
10
+ const CURRENT_MCP_VERSION = "5.4.0";
11
11
 
12
12
  export { CURRENT_MCP_VERSION };