@savvy-web/mcp 2.0.9 → 2.0.11
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/package.json +4 -3
- package/runtime.js +13 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The savvy MCP server — Silk Suite tooling and library knowledge for coding agents",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/mcp",
|
|
@@ -32,9 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@effect/platform-node": "4.0.0-beta.101",
|
|
35
|
-
"@effected/
|
|
35
|
+
"@effected/commands": "^0.1.0",
|
|
36
|
+
"@effected/workspaces": "^0.9.0",
|
|
36
37
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
37
|
-
"@savvy-web/silk-effects": "
|
|
38
|
+
"@savvy-web/silk-effects": "5.0.1",
|
|
38
39
|
"effect": "4.0.0-beta.101",
|
|
39
40
|
"zod": "^4.4.3"
|
|
40
41
|
}
|
package/runtime.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ToolDiscovery } from "@effected/commands";
|
|
1
2
|
import { Workspaces } from "@effected/workspaces";
|
|
2
|
-
import { ChangesetConfigLive, ChangesetConfigReaderLive, Changesets, PublishabilityDetectorAdaptiveLive, Repos, SilkWorkspaceAnalyzerLive,
|
|
3
|
+
import { ChangesetConfigLive, ChangesetConfigReaderLive, Changesets, PublishabilityDetectorAdaptiveLive, Repos, SilkWorkspaceAnalyzerLive, Turbo } from "@savvy-web/silk-effects";
|
|
3
4
|
import { Layer } from "effect";
|
|
4
5
|
|
|
5
6
|
//#region src/runtime.ts
|
|
@@ -39,13 +40,22 @@ import { Layer } from "effect";
|
|
|
39
40
|
*/
|
|
40
41
|
const makeSilkRuntimeLayer = (cwd) => {
|
|
41
42
|
const kitGraph = Workspaces.layerWithGit({ cwd });
|
|
42
|
-
const analyzerDeps =
|
|
43
|
+
const analyzerDeps = ChangesetConfigReaderLive;
|
|
43
44
|
/**
|
|
44
45
|
* `BranchAnalyzer` + `ReleasePlanner` + the ONE shared `ConfigInspector`,
|
|
45
46
|
* merged so all three land on the runtime and every internal consumer
|
|
46
47
|
* memoizes onto the same inspector reference.
|
|
47
48
|
*/
|
|
48
49
|
const inspectorAndAnalyzer = Changesets.BranchAnalyzerLive.pipe(Layer.provideMerge(Changesets.ReleasePlannerLive), Layer.provideMerge(Changesets.ConfigInspectorLive.pipe(Layer.provide(ChangesetConfigReaderLive))));
|
|
50
|
+
/**
|
|
51
|
+
* `ToolDiscovery` from `@effected/commands`, which `TurboInspector` uses to
|
|
52
|
+
* locate the `turbo` binary. Its `LocalExec` contract is implemented by
|
|
53
|
+
* `Workspaces.localExecLayer({ cwd })`, whose own requirements
|
|
54
|
+
* (`PackageManagerDetector`, `WorkspaceRoot`) come from `kitGraph` below —
|
|
55
|
+
* one reference, so the whole runtime shares a single discovery instance and
|
|
56
|
+
* its probe cache.
|
|
57
|
+
*/
|
|
58
|
+
const toolDiscovery = ToolDiscovery.layer.pipe(Layer.provide(Workspaces.localExecLayer({ cwd })));
|
|
49
59
|
const changesetConfig = ChangesetConfigLive.pipe(Layer.provide(ChangesetConfigReaderLive));
|
|
50
60
|
const depsRegen = Changesets.DepsRegenLive.pipe(Layer.provide(inspectorAndAnalyzer), Layer.provide(PublishabilityDetectorAdaptiveLive.pipe(Layer.provide(changesetConfig))), Layer.provide(changesetConfig));
|
|
51
61
|
/**
|
|
@@ -55,7 +65,7 @@ const makeSilkRuntimeLayer = (cwd) => {
|
|
|
55
65
|
* one store instance.
|
|
56
66
|
*/
|
|
57
67
|
const repos = Layer.mergeAll(Repos.ReposConfigStoreLive, Repos.ReposManagerLive.pipe(Layer.provide(Repos.ReposConfigStoreLive)));
|
|
58
|
-
return Layer.mergeAll(SilkWorkspaceAnalyzerLive.pipe(Layer.provide(analyzerDeps)), Turbo.TurboInspectorLive.pipe(Layer.provide(
|
|
68
|
+
return Layer.mergeAll(SilkWorkspaceAnalyzerLive.pipe(Layer.provide(analyzerDeps)), Turbo.TurboInspectorLive.pipe(Layer.provide(toolDiscovery)), inspectorAndAnalyzer, depsRegen, repos).pipe(Layer.provideMerge(kitGraph));
|
|
59
69
|
};
|
|
60
70
|
|
|
61
71
|
//#endregion
|