@livestore/cli 0.4.0-dev.9 → 0.5.0-dev.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.
Files changed (136) hide show
  1. package/dist/.tsbuildinfo +1 -0
  2. package/dist/__tests__/fixtures/mock-config.d.ts +63 -0
  3. package/dist/__tests__/fixtures/mock-config.d.ts.map +1 -0
  4. package/dist/__tests__/fixtures/mock-config.js +94 -0
  5. package/dist/__tests__/fixtures/mock-config.js.map +1 -0
  6. package/dist/__tests__/sync-operations.test.d.ts +2 -0
  7. package/dist/__tests__/sync-operations.test.d.ts.map +1 -0
  8. package/dist/__tests__/sync-operations.test.js +167 -0
  9. package/dist/__tests__/sync-operations.test.js.map +1 -0
  10. package/dist/bin.js +6 -5
  11. package/dist/bin.js.map +1 -1
  12. package/dist/cli.d.ts +2 -9
  13. package/dist/cli.d.ts.map +1 -1
  14. package/dist/cli.js +4 -5
  15. package/dist/cli.js.map +1 -1
  16. package/dist/commands/__fixtures__/mcp-protocol-server.d.ts +2 -0
  17. package/dist/commands/__fixtures__/mcp-protocol-server.d.ts.map +1 -0
  18. package/dist/commands/__fixtures__/mcp-protocol-server.js +10 -0
  19. package/dist/commands/__fixtures__/mcp-protocol-server.js.map +1 -0
  20. package/dist/commands/import-export.d.ts +20 -0
  21. package/dist/commands/import-export.d.ts.map +1 -0
  22. package/dist/commands/import-export.js +135 -0
  23. package/dist/commands/import-export.js.map +1 -0
  24. package/dist/commands/mcp-coach.d.ts +21 -12
  25. package/dist/commands/mcp-coach.d.ts.map +1 -1
  26. package/dist/commands/mcp-coach.js +49 -53
  27. package/dist/commands/mcp-coach.js.map +1 -1
  28. package/dist/commands/mcp-protocols.d.ts +7 -0
  29. package/dist/commands/mcp-protocols.d.ts.map +1 -0
  30. package/dist/commands/mcp-protocols.js +12 -0
  31. package/dist/commands/mcp-protocols.js.map +1 -0
  32. package/dist/commands/mcp-protocols.test.d.ts +2 -0
  33. package/dist/commands/mcp-protocols.test.d.ts.map +1 -0
  34. package/dist/commands/mcp-protocols.test.js +60 -0
  35. package/dist/commands/mcp-protocols.test.js.map +1 -0
  36. package/dist/commands/mcp-stdio.test.d.ts +2 -0
  37. package/dist/commands/mcp-stdio.test.d.ts.map +1 -0
  38. package/dist/commands/mcp-stdio.test.js +79 -0
  39. package/dist/commands/mcp-stdio.test.js.map +1 -0
  40. package/dist/commands/mcp-tool-handlers.d.ts +6 -0
  41. package/dist/commands/mcp-tool-handlers.d.ts.map +1 -0
  42. package/dist/commands/{mcp-tools.js → mcp-tool-handlers.js} +80 -45
  43. package/dist/commands/mcp-tool-handlers.js.map +1 -0
  44. package/dist/commands/mcp-tools-defs.d.ts +134 -0
  45. package/dist/commands/mcp-tools-defs.d.ts.map +1 -0
  46. package/dist/commands/mcp-tools-defs.js +285 -0
  47. package/dist/commands/mcp-tools-defs.js.map +1 -0
  48. package/dist/commands/mcp-tools-defs.test.d.ts +2 -0
  49. package/dist/commands/mcp-tools-defs.test.d.ts.map +1 -0
  50. package/dist/commands/mcp-tools-defs.test.js +11 -0
  51. package/dist/commands/mcp-tools-defs.test.js.map +1 -0
  52. package/dist/commands/mcp.d.ts +1 -3
  53. package/dist/commands/mcp.d.ts.map +1 -1
  54. package/dist/commands/mcp.js +7 -5
  55. package/dist/commands/mcp.js.map +1 -1
  56. package/dist/commands/new-project.d.ts +22 -23
  57. package/dist/commands/new-project.d.ts.map +1 -1
  58. package/dist/commands/new-project.js +85 -44
  59. package/dist/commands/new-project.js.map +1 -1
  60. package/dist/mcp-content/architecture.d.ts +1 -1
  61. package/dist/mcp-content/architecture.d.ts.map +1 -1
  62. package/dist/mcp-content/architecture.js +3 -3
  63. package/dist/mcp-content/features.d.ts +1 -1
  64. package/dist/mcp-content/features.d.ts.map +1 -1
  65. package/dist/mcp-content/features.js +1 -1
  66. package/dist/mcp-content/getting-started.d.ts +1 -1
  67. package/dist/mcp-content/getting-started.d.ts.map +1 -1
  68. package/dist/mcp-content/getting-started.js +37 -37
  69. package/dist/mcp-content/overview.d.ts +1 -1
  70. package/dist/mcp-content/overview.d.ts.map +1 -1
  71. package/dist/mcp-content/overview.js +6 -6
  72. package/dist/mcp-content/schemas/blog.d.ts +1 -1
  73. package/dist/mcp-content/schemas/blog.d.ts.map +1 -1
  74. package/dist/mcp-content/schemas/blog.js +25 -25
  75. package/dist/mcp-content/schemas/ecommerce.d.ts +1 -1
  76. package/dist/mcp-content/schemas/ecommerce.d.ts.map +1 -1
  77. package/dist/mcp-content/schemas/ecommerce.js +67 -67
  78. package/dist/mcp-content/schemas/social.d.ts +1 -1
  79. package/dist/mcp-content/schemas/social.d.ts.map +1 -1
  80. package/dist/mcp-content/schemas/social.js +48 -48
  81. package/dist/mcp-content/schemas/todo.d.ts +1 -1
  82. package/dist/mcp-content/schemas/todo.d.ts.map +1 -1
  83. package/dist/mcp-content/schemas/todo.js +35 -35
  84. package/dist/mcp-runtime/runtime.d.ts +48 -0
  85. package/dist/mcp-runtime/runtime.d.ts.map +1 -0
  86. package/dist/mcp-runtime/runtime.js +107 -0
  87. package/dist/mcp-runtime/runtime.js.map +1 -0
  88. package/dist/module-loader.d.ts +22 -0
  89. package/dist/module-loader.d.ts.map +1 -0
  90. package/dist/module-loader.js +75 -0
  91. package/dist/module-loader.js.map +1 -0
  92. package/dist/package-manager.d.ts +38 -0
  93. package/dist/package-manager.d.ts.map +1 -0
  94. package/dist/package-manager.js +33 -0
  95. package/dist/package-manager.js.map +1 -0
  96. package/dist/package-manager.test.d.ts +2 -0
  97. package/dist/package-manager.test.d.ts.map +1 -0
  98. package/dist/package-manager.test.js +57 -0
  99. package/dist/package-manager.test.js.map +1 -0
  100. package/dist/sync-operations.d.ts +115 -0
  101. package/dist/sync-operations.d.ts.map +1 -0
  102. package/dist/sync-operations.js +178 -0
  103. package/dist/sync-operations.js.map +1 -0
  104. package/package.json +57 -15
  105. package/src/__tests__/fixtures/mock-config.ts +112 -0
  106. package/src/__tests__/sync-operations.test.ts +218 -0
  107. package/src/bin.ts +8 -6
  108. package/src/cli.ts +5 -6
  109. package/src/commands/__fixtures__/mcp-protocol-server.ts +12 -0
  110. package/src/commands/import-export.ts +283 -0
  111. package/src/commands/mcp-coach.ts +76 -75
  112. package/src/commands/mcp-protocols.test.ts +76 -0
  113. package/src/commands/mcp-protocols.ts +12 -0
  114. package/src/commands/mcp-stdio.test.ts +93 -0
  115. package/src/commands/{mcp-tools.ts → mcp-tool-handlers.ts} +100 -61
  116. package/src/commands/mcp-tools-defs.test.ts +13 -0
  117. package/src/commands/mcp-tools-defs.ts +320 -0
  118. package/src/commands/mcp.ts +10 -6
  119. package/src/commands/new-project.ts +124 -57
  120. package/src/mcp-content/architecture.ts +3 -3
  121. package/src/mcp-content/features.ts +1 -1
  122. package/src/mcp-content/getting-started.ts +37 -37
  123. package/src/mcp-content/overview.ts +6 -6
  124. package/src/mcp-content/schemas/blog.ts +25 -25
  125. package/src/mcp-content/schemas/ecommerce.ts +67 -67
  126. package/src/mcp-content/schemas/social.ts +48 -48
  127. package/src/mcp-content/schemas/todo.ts +35 -35
  128. package/src/mcp-runtime/runtime.ts +147 -0
  129. package/src/module-loader.ts +94 -0
  130. package/src/package-manager.test.ts +66 -0
  131. package/src/package-manager.ts +44 -0
  132. package/src/sync-operations.ts +360 -0
  133. package/dist/commands/mcp-tools.d.ts +0 -58
  134. package/dist/commands/mcp-tools.d.ts.map +0 -1
  135. package/dist/commands/mcp-tools.js.map +0 -1
  136. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,320 @@
1
+ import { Tool, Toolkit } from 'effect/unstable/ai'
2
+
3
+ import { Schema } from '@livestore/utils/effect'
4
+
5
+ import { coachTool } from './mcp-coach.ts'
6
+
7
+ export const livestoreToolkit = Toolkit.make(
8
+ coachTool,
9
+
10
+ Tool.make('livestore_generate_schema', {
11
+ description:
12
+ 'Generate a LiveStore schema for a specific use case. Choose from predefined types (todo, blog, social, ecommerce) or request a custom schema by providing a description.',
13
+ parameters: Schema.Struct({
14
+ schemaType: Schema.String.annotate({
15
+ description: "Schema type: 'todo', 'blog', 'social', 'ecommerce', or 'custom'",
16
+ }),
17
+ customDescription: Schema.optional(
18
+ Schema.String.annotate({
19
+ description:
20
+ "For custom schemas: describe your data model needs (e.g., 'user management system with roles and permissions')",
21
+ }),
22
+ ),
23
+ }),
24
+ success: Schema.Struct({
25
+ schemaCode: Schema.String.annotate({ description: 'The generated LiveStore schema TypeScript code' }),
26
+ explanation: Schema.String.annotate({ description: 'Brief explanation of the schema structure' }),
27
+ }),
28
+ }),
29
+
30
+ Tool.make('livestore_get_example_schema', {
31
+ description:
32
+ 'Get a complete example LiveStore schema with TypeScript code. Returns ready-to-use schema definitions for common application types.',
33
+ parameters: Schema.Struct({
34
+ type: Schema.String.annotate({ description: "Example type: 'todo', 'blog', 'social', or 'ecommerce'" }),
35
+ }),
36
+ success: Schema.Struct({
37
+ schemaCode: Schema.String.annotate({ description: 'The complete LiveStore schema code' }),
38
+ description: Schema.String.annotate({ description: 'Description of what this schema models' }),
39
+ }),
40
+ })
41
+ .annotate(Tool.Readonly, true)
42
+ .annotate(Tool.Destructive, false),
43
+
44
+ Tool.make('livestore_instance_connect', {
45
+ description: `Connect a LiveStore instance (one active per MCP session) by dynamically importing a user module that exports a LiveStore \`schema\` and a \`syncBackend\` factory (and optionally \`syncPayload\`).
46
+ Notes:
47
+ - Only one instance can be active at a time; calling connect again shuts down and replaces the previous instance.
48
+ - Reconnecting creates a fresh, in-memory client database. The state visible to queries is populated by your backend's initial sync behavior; depending on configuration, you may briefly observe empty or partial data until sync completes.
49
+ - \`configPath\` is resolved relative to the current working directory.
50
+ - \`syncBackend\` must be a function (factory) that returns a backend; \`syncPayload\` must be JSON-serializable.
51
+
52
+ Module contract (generic example):
53
+ \`\`\`ts
54
+ // Choose any supported sync provider for your deployment
55
+ import { makeWsSync } from '@livestore/sync-cf/client' // or your own provider
56
+
57
+ // Export your app's schema
58
+ export { schema } from './src/livestore/schema.ts'
59
+
60
+ // Provide a sync backend (e.g., WebSocket). Configure via env in practice.
61
+ export const syncBackend = makeWsSync({ url: process.env.LIVESTORE_SYNC_URL ?? 'ws://localhost:8787' })
62
+
63
+ // Optionally, pass an auth payload for your backend (must be JSON-serializable)
64
+ export const syncPayload = { authToken: process.env.LIVESTORE_SYNC_AUTH_TOKEN ?? 'insecure-token-change-me' }
65
+ \`\`\`
66
+
67
+ Connect parameters:
68
+ {
69
+ "configPath": "livestore-cli.config.ts",
70
+ "storeId": "<store-id>"
71
+ }
72
+
73
+ Optional identifiers to group client state on the server:
74
+ {
75
+ "configPath": "livestore-cli.config.ts",
76
+ "storeId": "<store-id>",
77
+ "clientId": "<client-id>",
78
+ "sessionId": "<session-id>"
79
+ }
80
+
81
+ Returns on success:
82
+ {
83
+ "storeId": "<store-id>",
84
+ "clientId": "<client-id>",
85
+ "sessionId": "<session-id>",
86
+ "schemaInfo": {
87
+ "tableNames": ["<table-1>", "<table-2>", "..."],
88
+ "eventNames": ["<event-name-1>", "<event-name-2>", "..."]
89
+ }
90
+ }`,
91
+ parameters: Schema.Struct({
92
+ configPath: Schema.String.annotate({
93
+ description: 'Path to a module that exports named variables: schema and syncBackend',
94
+ }),
95
+ storeId: Schema.String.annotate({ description: 'Required store id for the LiveStore instance.' }),
96
+ clientId: Schema.optional(
97
+ Schema.String.annotate({ description: 'Optional client id for the LiveStore instance.' }),
98
+ ),
99
+ sessionId: Schema.optional(
100
+ Schema.String.annotate({ description: 'Optional session id for the LiveStore instance.' }),
101
+ ),
102
+ }),
103
+ success: Schema.Struct({
104
+ storeId: Schema.String,
105
+ clientId: Schema.String,
106
+ sessionId: Schema.String,
107
+ schemaInfo: Schema.Struct({
108
+ tableNames: Schema.Array(Schema.String).annotate({
109
+ description: 'Non-system table names in the connected schema',
110
+ }),
111
+ eventNames: Schema.Array(Schema.String).annotate({
112
+ description: 'Canonical event names defined by the connected schema',
113
+ }),
114
+ }),
115
+ }),
116
+ }),
117
+
118
+ Tool.make('livestore_instance_query', {
119
+ description: `Execute a raw SQL query against the connected client's local database (read-only).
120
+ Notes:
121
+ - The client store runs SQLite under the hood; use valid SQLite syntax.
122
+ - Inspect your exported \`schema\` to learn table/column names.
123
+ - \`bindValues\` must be an array (positional "?") or a record (named "$key"); do not pass a stringified JSON value.
124
+
125
+ Examples (positional binds):
126
+ {
127
+ "sql": "SELECT * FROM my_table WHERE userId = ? LIMIT 5",
128
+ "bindValues": ["u1"]
129
+ }
130
+
131
+ Examples (named binds):
132
+ {
133
+ "sql": "SELECT * FROM my_table WHERE userId = $userId LIMIT 5",
134
+ "bindValues": { "userId": "u1" }
135
+ }
136
+
137
+ Returns on success:
138
+ {
139
+ "rows": [{ "col": "value" }],
140
+ "rowCount": 1
141
+ }`,
142
+ parameters: Schema.Struct({
143
+ sql: Schema.String.annotate({ description: 'The SQL query to execute' }),
144
+ bindValues: Schema.Union([
145
+ Schema.Array(Schema.Json),
146
+ Schema.Record(Schema.String, Schema.Json),
147
+ ]).annotate({
148
+ description: 'Bind values for the SQL query (array or record). Record keys must not start with $.',
149
+ }),
150
+ }),
151
+ success: Schema.Struct({
152
+ rows: Schema.Array(Schema.Record(Schema.String, Schema.Json)),
153
+ rowCount: Schema.Number,
154
+ }),
155
+ }).annotate(Tool.Destructive, false),
156
+
157
+ Tool.make('livestore_instance_commit_events', {
158
+ description: `Commit one or more events defined by your connected LiveStore schema.
159
+ Notes:
160
+ - The \`name\` must match the event's canonical name declared in your schema (e.g., "v1.UserRegistered").
161
+ - \`args\` must be a JSON object matching the event schema; do not pass a stringified JSON.
162
+ - Use your app's own event names and fields; the example below is generic.
163
+ - Date fields typically accept ISO 8601 strings (e.g., "2024-01-01T00:00:00.000Z").
164
+
165
+ Example parameters:
166
+ {
167
+ "events": [
168
+ {
169
+ "name": "v1.EntityCreated",
170
+ "args": {
171
+ "id": "e1",
172
+ "title": "Hello World",
173
+ "createdAt": "2024-01-01T00:00:00.000Z"
174
+ }
175
+ }
176
+ ]
177
+ }
178
+
179
+ Returns on success:
180
+ { "committed": 1 }`,
181
+ parameters: Schema.Struct({
182
+ events: Schema.Array(
183
+ Schema.Struct({
184
+ name: Schema.String.annotate({ description: 'The name of the event' }),
185
+ args: Schema.Json.annotate({
186
+ description: 'The arguments for the event as a non-stringified JSON value',
187
+ }),
188
+ }),
189
+ ),
190
+ }),
191
+ success: Schema.Struct({ committed: Schema.Number }),
192
+ }).annotate(Tool.Destructive, true),
193
+
194
+ Tool.make('livestore_instance_status', {
195
+ description: `Report the LiveStore runtime status for the current MCP session.
196
+
197
+ Returns when connected:
198
+ {
199
+ "_tag": "connected",
200
+ "storeId": "<store-id>",
201
+ "clientId": "<client-id>",
202
+ "sessionId": "<session-id>",
203
+ "tableCounts": { "<table>": 123 }
204
+ }
205
+
206
+ Returns when not connected:
207
+ {
208
+ "_tag": "disconnected"
209
+ }`,
210
+ parameters: Tool.EmptyParams,
211
+ success: Schema.Union([
212
+ Schema.TaggedStruct('connected', {
213
+ storeId: Schema.String,
214
+ clientId: Schema.String,
215
+ sessionId: Schema.String,
216
+ tableCounts: Schema.Record(Schema.String, Schema.Number).annotate({
217
+ description: 'Tables in the LiveStore instance with their row count',
218
+ }),
219
+ }),
220
+ Schema.TaggedStruct('disconnected', {}),
221
+ ]),
222
+ }).annotate(Tool.Readonly, true),
223
+
224
+ Tool.make('livestore_instance_disconnect', {
225
+ description: `Disconnect the current LiveStore instance and release resources.
226
+
227
+ Example success:
228
+ { "_tag": "disconnected" }`,
229
+ parameters: Tool.EmptyParams,
230
+ success: Schema.TaggedStruct('disconnected', {}),
231
+ }),
232
+
233
+ Tool.make('livestore_sync_export', {
234
+ description: `Export all events from a sync backend to JSON data.
235
+
236
+ This tool connects directly to the sync backend (without creating a full LiveStore instance) and pulls all events. Useful for backup, migration, and debugging.
237
+
238
+ Module contract (same as livestore_instance_connect):
239
+ \`\`\`ts
240
+ export { schema } from './src/livestore/schema.ts'
241
+ export const syncBackend = makeWsSync({ url: process.env.LIVESTORE_SYNC_URL ?? 'ws://localhost:8787' })
242
+ export const syncPayload = { authToken: process.env.LIVESTORE_SYNC_AUTH_TOKEN }
243
+ \`\`\`
244
+
245
+ Example parameters:
246
+ {
247
+ "configPath": "livestore-cli.config.ts",
248
+ "storeId": "my-store"
249
+ }
250
+
251
+ Returns on success:
252
+ {
253
+ "storeId": "my-store",
254
+ "eventCount": 127,
255
+ "exportedAt": "2024-01-15T10:30:00.000Z",
256
+ "data": { "version": 1, "storeId": "my-store", ... }
257
+ }`,
258
+ parameters: Schema.Struct({
259
+ configPath: Schema.String.annotate({
260
+ description: 'Path to a module that exports schema and syncBackend',
261
+ }),
262
+ storeId: Schema.String.annotate({ description: 'Store identifier' }),
263
+ clientId: Schema.optional(Schema.String.annotate({ description: 'Client identifier (default: mcp-export)' })),
264
+ }),
265
+ success: Schema.Struct({
266
+ storeId: Schema.String,
267
+ eventCount: Schema.Number,
268
+ exportedAt: Schema.String,
269
+ data: Schema.Json.annotate({ description: 'The export file data (can be saved or passed to import)' }),
270
+ }),
271
+ }).annotate(Tool.Readonly, true),
272
+
273
+ Tool.make('livestore_sync_import', {
274
+ description: `Import events from export data to a sync backend.
275
+
276
+ This tool connects directly to the sync backend and pushes events. The sync backend must be empty.
277
+
278
+ Example parameters:
279
+ {
280
+ "configPath": "livestore-cli.config.ts",
281
+ "storeId": "my-store",
282
+ "data": { "version": 1, "storeId": "my-store", "events": [...] }
283
+ }
284
+
285
+ With options:
286
+ {
287
+ "configPath": "livestore-cli.config.ts",
288
+ "storeId": "my-store",
289
+ "data": { ... },
290
+ "force": true, // Import even if store ID doesn't match
291
+ "dryRun": true // Validate without importing
292
+ }
293
+
294
+ Returns on success:
295
+ {
296
+ "storeId": "my-store",
297
+ "eventCount": 127,
298
+ "dryRun": false
299
+ }`,
300
+ parameters: Schema.Struct({
301
+ configPath: Schema.String.annotate({
302
+ description: 'Path to a module that exports schema and syncBackend',
303
+ }),
304
+ storeId: Schema.String.annotate({ description: 'Store identifier' }),
305
+ clientId: Schema.optional(Schema.String.annotate({ description: 'Client identifier (default: mcp-import)' })),
306
+ data: Schema.Json.annotate({
307
+ description: 'The export data to import (from livestore_sync_export or a file)',
308
+ }),
309
+ force: Schema.optional(
310
+ Schema.Boolean.annotate({ description: 'Force import even if store ID does not match' }),
311
+ ),
312
+ dryRun: Schema.optional(Schema.Boolean.annotate({ description: 'Validate without actually importing' })),
313
+ }),
314
+ success: Schema.Struct({
315
+ storeId: Schema.String,
316
+ eventCount: Schema.Number,
317
+ dryRun: Schema.Boolean,
318
+ }),
319
+ }).annotate(Tool.Destructive, true),
320
+ )
@@ -1,5 +1,8 @@
1
- import { Effect, Layer, Logger, McpServer } from '@livestore/utils/effect'
1
+ import { McpServer } from 'effect/unstable/ai'
2
+
3
+ import { Effect, Layer, Logger } from '@livestore/utils/effect'
2
4
  import { Cli, PlatformNode } from '@livestore/utils/node'
5
+
3
6
  import { architectureContent } from '../mcp-content/architecture.ts'
4
7
  import { featuresContent } from '../mcp-content/features.ts'
5
8
  import { gettingStartedContent } from '../mcp-content/getting-started.ts'
@@ -9,9 +12,10 @@ import { blogSchemaContent } from '../mcp-content/schemas/blog.ts'
9
12
  import { ecommerceSchemaContent } from '../mcp-content/schemas/ecommerce.ts'
10
13
  import { socialSchemaContent } from '../mcp-content/schemas/social.ts'
11
14
  import { todoSchemaContent } from '../mcp-content/schemas/todo.ts'
12
-
15
+ import { toolHandlers } from './mcp-tool-handlers.ts'
16
+ import { supportedMcpProtocols } from './mcp-protocols.ts'
13
17
  // Tools imports
14
- import { livestoreToolkit, toolHandlers } from './mcp-tools.ts'
18
+ import { livestoreToolkit } from './mcp-tools-defs.ts'
15
19
 
16
20
  const LivestoreResources = Layer.mergeAll(
17
21
  McpServer.resource({
@@ -83,12 +87,12 @@ const mcpServerCommand = Cli.Command.make(
83
87
  return yield* McpServer.layerStdio({
84
88
  name: 'livestore-mcp',
85
89
  version: '0.1.0',
86
- stdin: PlatformNode.NodeStream.stdin,
87
- stdout: PlatformNode.NodeSink.stdout,
90
+ protocols: supportedMcpProtocols,
88
91
  }).pipe(
89
92
  Layer.provide(LivestoreResources),
90
93
  Layer.provide(LivestoreTools),
91
- Layer.provide(Logger.add(Logger.prettyLogger({ stderr: true }))),
94
+ Layer.provide(Logger.layer([Logger.consolePretty({ stderr: true })])),
95
+ Layer.provide(PlatformNode.NodeStdio.layer),
92
96
  Layer.launch,
93
97
  )
94
98
  }),