@orq-ai/node 3.3.4 → 3.3.6

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 (59) hide show
  1. package/bin/mcp-server.js +61 -55
  2. package/bin/mcp-server.js.map +28 -28
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/prompts.d.ts.map +1 -1
  8. package/mcp-server/prompts.js +5 -1
  9. package/mcp-server/prompts.js.map +1 -1
  10. package/mcp-server/resources.d.ts.map +1 -1
  11. package/mcp-server/resources.js +10 -2
  12. package/mcp-server/resources.js.map +1 -1
  13. package/mcp-server/server.d.ts.map +1 -1
  14. package/mcp-server/server.js +2 -3
  15. package/mcp-server/server.js.map +1 -1
  16. package/mcp-server/tools.d.ts.map +1 -1
  17. package/mcp-server/tools.js +4 -3
  18. package/mcp-server/tools.js.map +1 -1
  19. package/models/operations/bulkcreatedatapoints.js +2 -2
  20. package/models/operations/createcontact.js +2 -2
  21. package/models/operations/createdataset.js +2 -2
  22. package/models/operations/createdatasetitem.js +2 -2
  23. package/models/operations/createdatasource.js +2 -2
  24. package/models/operations/fileget.js +2 -2
  25. package/models/operations/filelist.js +2 -2
  26. package/models/operations/fileupload.js +2 -2
  27. package/models/operations/listdatasetdatapoints.js +2 -2
  28. package/models/operations/listdatasets.js +2 -2
  29. package/models/operations/listdatasources.js +2 -2
  30. package/models/operations/retrievedatapoint.js +2 -2
  31. package/models/operations/retrievedataset.js +2 -2
  32. package/models/operations/retrievedatasource.js +2 -2
  33. package/models/operations/updatedatapoint.js +2 -2
  34. package/models/operations/updatedataset.js +2 -2
  35. package/models/operations/updatedatasource.js +2 -2
  36. package/package.json +1 -1
  37. package/src/lib/config.ts +3 -3
  38. package/src/mcp-server/mcp-server.ts +1 -1
  39. package/src/mcp-server/prompts.ts +8 -1
  40. package/src/mcp-server/resources.ts +16 -2
  41. package/src/mcp-server/server.ts +3 -3
  42. package/src/mcp-server/tools.ts +6 -3
  43. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  44. package/src/models/operations/createcontact.ts +2 -2
  45. package/src/models/operations/createdataset.ts +2 -2
  46. package/src/models/operations/createdatasetitem.ts +2 -2
  47. package/src/models/operations/createdatasource.ts +2 -2
  48. package/src/models/operations/fileget.ts +2 -2
  49. package/src/models/operations/filelist.ts +2 -2
  50. package/src/models/operations/fileupload.ts +2 -2
  51. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  52. package/src/models/operations/listdatasets.ts +2 -2
  53. package/src/models/operations/listdatasources.ts +2 -2
  54. package/src/models/operations/retrievedatapoint.ts +2 -2
  55. package/src/models/operations/retrievedataset.ts +2 -2
  56. package/src/models/operations/retrievedatasource.ts +2 -2
  57. package/src/models/operations/updatedatapoint.ts +2 -2
  58. package/src/models/operations/updatedataset.ts +2 -2
  59. package/src/models/operations/updatedatasource.ts +2 -2
package/bin/mcp-server.js CHANGED
@@ -4028,12 +4028,6 @@ var init_console_logger = __esm(() => {
4028
4028
  ];
4029
4029
  });
4030
4030
 
4031
- // src/mcp-server/scopes.ts
4032
- var mcpScopes;
4033
- var init_scopes = __esm(() => {
4034
- mcpScopes = [];
4035
- });
4036
-
4037
4031
  // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
4038
4032
  var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
4039
4033
  var init_types = __esm(() => {
@@ -34234,9 +34228,9 @@ var init_config = __esm(() => {
34234
34228
  SDK_METADATA = {
34235
34229
  language: "typescript",
34236
34230
  openapiDocVersion: "2.0",
34237
- sdkVersion: "3.3.4",
34238
- genVersion: "2.566.5",
34239
- userAgent: "speakeasy-sdk/typescript 3.3.4 2.566.5 2.0 @orq-ai/node"
34231
+ sdkVersion: "3.3.6",
34232
+ genVersion: "2.568.2",
34233
+ userAgent: "speakeasy-sdk/typescript 3.3.6 2.568.2 2.0 @orq-ai/node"
34240
34234
  };
34241
34235
  });
34242
34236
 
@@ -35065,7 +35059,10 @@ var init_core = __esm(() => {
35065
35059
  function createRegisterPrompt(logger, server, sdk, allowedScopes) {
35066
35060
  return (prompt) => {
35067
35061
  const scopes = prompt.scopes ?? [];
35068
- if (!scopes.every((s) => allowedScopes.has(s))) {
35062
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35063
+ return;
35064
+ }
35065
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35069
35066
  return;
35070
35067
  }
35071
35068
  if (prompt.args) {
@@ -35136,7 +35133,10 @@ var init_shared = __esm(() => {
35136
35133
  function createRegisterResource(logger, server, sdk, allowedScopes) {
35137
35134
  return (resource) => {
35138
35135
  const scopes = resource.scopes ?? [];
35139
- if (!scopes.every((s) => allowedScopes.has(s))) {
35136
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35137
+ return;
35138
+ }
35139
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35140
35140
  return;
35141
35141
  }
35142
35142
  const metadata = {
@@ -35150,7 +35150,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
35150
35150
  function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
35151
35151
  return (resource) => {
35152
35152
  const scopes = resource.scopes ?? [];
35153
- if (!scopes.every((s) => allowedScopes.has(s))) {
35153
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35154
+ return;
35155
+ }
35156
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35154
35157
  return;
35155
35158
  }
35156
35159
  const metadata = {
@@ -35208,11 +35211,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
35208
35211
  if (allowedTools && !allowedTools.has(tool.name)) {
35209
35212
  return;
35210
35213
  }
35211
- const toolScopes = tool.scopes ?? [];
35212
- if (allowedScopes.size > 0 && toolScopes.length === 0) {
35214
+ const scopes = tool.scopes ?? [];
35215
+ if (allowedScopes.size > 0 && scopes.length === 0) {
35213
35216
  return;
35214
35217
  }
35215
- if (!toolScopes.every((s) => allowedScopes.has(s))) {
35218
+ if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
35216
35219
  return;
35217
35220
  }
35218
35221
  if (tool.args) {
@@ -36271,7 +36274,7 @@ var init_bulkcreatedatapoints = __esm(() => {
36271
36274
  created_by_id: stringType().optional(),
36272
36275
  updated_by_id: stringType().optional(),
36273
36276
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36274
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
36277
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
36275
36278
  }).transform((v2) => {
36276
36279
  return remap(v2, {
36277
36280
  _id: "id",
@@ -36292,7 +36295,7 @@ var init_bulkcreatedatapoints = __esm(() => {
36292
36295
  createdById: stringType().optional(),
36293
36296
  updatedById: stringType().optional(),
36294
36297
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36295
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
36298
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
36296
36299
  }).transform((v2) => {
36297
36300
  return remap(v2, {
36298
36301
  id: "_id",
@@ -36496,7 +36499,7 @@ var init_createcontact = __esm(() => {
36496
36499
  tags: arrayType(stringType()).optional(),
36497
36500
  metadata: recordType(anyType()).optional(),
36498
36501
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36499
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
36502
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
36500
36503
  }).transform((v2) => {
36501
36504
  return remap(v2, {
36502
36505
  external_id: "externalId",
@@ -36513,7 +36516,7 @@ var init_createcontact = __esm(() => {
36513
36516
  tags: arrayType(stringType()).optional(),
36514
36517
  metadata: recordType(anyType()).optional(),
36515
36518
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36516
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
36519
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
36517
36520
  }).transform((v2) => {
36518
36521
  return remap(v2, {
36519
36522
  externalId: "external_id",
@@ -36583,7 +36586,7 @@ var init_createdataset = __esm(() => {
36583
36586
  updated_by_id: stringType().optional(),
36584
36587
  metadata: lazyType(() => CreateDatasetMetadata$inboundSchema),
36585
36588
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36586
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
36589
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
36587
36590
  }).transform((v2) => {
36588
36591
  return remap(v2, {
36589
36592
  _id: "id",
@@ -36603,7 +36606,7 @@ var init_createdataset = __esm(() => {
36603
36606
  updatedById: stringType().optional(),
36604
36607
  metadata: lazyType(() => CreateDatasetMetadata$outboundSchema),
36605
36608
  created: dateType().transform((v2) => v2.toISOString()).optional(),
36606
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
36609
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
36607
36610
  }).transform((v2) => {
36608
36611
  return remap(v2, {
36609
36612
  id: "_id",
@@ -37039,7 +37042,7 @@ var init_createdatasetitem = __esm(() => {
37039
37042
  created_by_id: stringType().optional(),
37040
37043
  updated_by_id: stringType().optional(),
37041
37044
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
37042
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
37045
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
37043
37046
  }).transform((v2) => {
37044
37047
  return remap(v2, {
37045
37048
  _id: "id",
@@ -37060,7 +37063,7 @@ var init_createdatasetitem = __esm(() => {
37060
37063
  createdById: stringType().optional(),
37061
37064
  updatedById: stringType().optional(),
37062
37065
  created: dateType().transform((v2) => v2.toISOString()).optional(),
37063
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
37066
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
37064
37067
  }).transform((v2) => {
37065
37068
  return remap(v2, {
37066
37069
  id: "_id",
@@ -37282,7 +37285,7 @@ var init_createdatasource = __esm(() => {
37282
37285
  CreateDatasourceStatus$.outboundSchema = CreateDatasourceStatus$outboundSchema;
37283
37286
  })(CreateDatasourceStatus$ ||= {});
37284
37287
  CreateDatasourceResponseBody$inboundSchema = objectType({
37285
- _id: stringType().default("01JR16E0H784JMDXTHP7JD02RA"),
37288
+ _id: stringType().default("01JRA4NJPA2WF544HT4T54Z69K"),
37286
37289
  display_name: stringType(),
37287
37290
  description: stringType().optional(),
37288
37291
  status: CreateDatasourceStatus$inboundSchema,
@@ -37305,7 +37308,7 @@ var init_createdatasource = __esm(() => {
37305
37308
  });
37306
37309
  });
37307
37310
  CreateDatasourceResponseBody$outboundSchema = objectType({
37308
- id: stringType().default("01JR16E0H784JMDXTHP7JD02RA"),
37311
+ id: stringType().default("01JRA4NJPA2WF544HT4T54Z69K"),
37309
37312
  displayName: stringType(),
37310
37313
  description: stringType().optional(),
37311
37314
  status: CreateDatasourceStatus$outboundSchema,
@@ -43832,7 +43835,7 @@ var init_fileget = __esm(() => {
43832
43835
  bytes: numberType(),
43833
43836
  file_name: stringType(),
43834
43837
  workspace_id: stringType(),
43835
- created: stringType().datetime({ offset: true }).default("2025-04-04T20:03:43.089Z").transform((v2) => new Date(v2))
43838
+ created: stringType().datetime({ offset: true }).default("2025-04-08T07:26:03.819Z").transform((v2) => new Date(v2))
43836
43839
  }).transform((v2) => {
43837
43840
  return remap(v2, {
43838
43841
  _id: "id",
@@ -43848,7 +43851,7 @@ var init_fileget = __esm(() => {
43848
43851
  bytes: numberType(),
43849
43852
  fileName: stringType(),
43850
43853
  workspaceId: stringType(),
43851
- created: dateType().default(() => new Date("2025-04-04T20:03:43.089Z")).transform((v2) => v2.toISOString())
43854
+ created: dateType().default(() => new Date("2025-04-08T07:26:03.819Z")).transform((v2) => v2.toISOString())
43852
43855
  }).transform((v2) => {
43853
43856
  return remap(v2, {
43854
43857
  id: "_id",
@@ -43919,7 +43922,7 @@ var init_filelist = __esm(() => {
43919
43922
  bytes: numberType(),
43920
43923
  file_name: stringType(),
43921
43924
  workspace_id: stringType(),
43922
- created: stringType().datetime({ offset: true }).default("2025-04-04T20:03:43.089Z").transform((v2) => new Date(v2))
43925
+ created: stringType().datetime({ offset: true }).default("2025-04-08T07:26:03.819Z").transform((v2) => new Date(v2))
43923
43926
  }).transform((v2) => {
43924
43927
  return remap(v2, {
43925
43928
  _id: "id",
@@ -43935,7 +43938,7 @@ var init_filelist = __esm(() => {
43935
43938
  bytes: numberType(),
43936
43939
  fileName: stringType(),
43937
43940
  workspaceId: stringType(),
43938
- created: dateType().default(() => new Date("2025-04-04T20:03:43.089Z")).transform((v2) => v2.toISOString())
43941
+ created: dateType().default(() => new Date("2025-04-08T07:26:03.819Z")).transform((v2) => v2.toISOString())
43939
43942
  }).transform((v2) => {
43940
43943
  return remap(v2, {
43941
43944
  id: "_id",
@@ -44067,7 +44070,7 @@ var init_fileupload = __esm(() => {
44067
44070
  bytes: numberType(),
44068
44071
  file_name: stringType(),
44069
44072
  workspace_id: stringType(),
44070
- created: stringType().datetime({ offset: true }).default("2025-04-04T20:03:43.089Z").transform((v2) => new Date(v2))
44073
+ created: stringType().datetime({ offset: true }).default("2025-04-08T07:26:03.819Z").transform((v2) => new Date(v2))
44071
44074
  }).transform((v2) => {
44072
44075
  return remap(v2, {
44073
44076
  _id: "id",
@@ -44083,7 +44086,7 @@ var init_fileupload = __esm(() => {
44083
44086
  bytes: numberType(),
44084
44087
  fileName: stringType(),
44085
44088
  workspaceId: stringType(),
44086
- created: dateType().default(() => new Date("2025-04-04T20:03:43.089Z")).transform((v2) => v2.toISOString())
44089
+ created: dateType().default(() => new Date("2025-04-08T07:26:03.819Z")).transform((v2) => v2.toISOString())
44087
44090
  }).transform((v2) => {
44088
44091
  return remap(v2, {
44089
44092
  id: "_id",
@@ -46466,7 +46469,7 @@ var init_listdatasetdatapoints = __esm(() => {
46466
46469
  created_by_id: stringType().optional(),
46467
46470
  updated_by_id: stringType().optional(),
46468
46471
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
46469
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
46472
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
46470
46473
  }).transform((v2) => {
46471
46474
  return remap(v2, {
46472
46475
  _id: "id",
@@ -46487,7 +46490,7 @@ var init_listdatasetdatapoints = __esm(() => {
46487
46490
  createdById: stringType().optional(),
46488
46491
  updatedById: stringType().optional(),
46489
46492
  created: dateType().transform((v2) => v2.toISOString()).optional(),
46490
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
46493
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
46491
46494
  }).transform((v2) => {
46492
46495
  return remap(v2, {
46493
46496
  id: "_id",
@@ -46595,7 +46598,7 @@ var init_listdatasets = __esm(() => {
46595
46598
  updated_by_id: stringType().optional(),
46596
46599
  metadata: lazyType(() => ListDatasetsMetadata$inboundSchema),
46597
46600
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
46598
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
46601
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
46599
46602
  }).transform((v2) => {
46600
46603
  return remap(v2, {
46601
46604
  _id: "id",
@@ -46615,7 +46618,7 @@ var init_listdatasets = __esm(() => {
46615
46618
  updatedById: stringType().optional(),
46616
46619
  metadata: lazyType(() => ListDatasetsMetadata$outboundSchema),
46617
46620
  created: dateType().transform((v2) => v2.toISOString()).optional(),
46618
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
46621
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
46619
46622
  }).transform((v2) => {
46620
46623
  return remap(v2, {
46621
46624
  id: "_id",
@@ -46720,7 +46723,7 @@ var init_listdatasources = __esm(() => {
46720
46723
  ListDatasourcesStatus$.outboundSchema = ListDatasourcesStatus$outboundSchema;
46721
46724
  })(ListDatasourcesStatus$ ||= {});
46722
46725
  ListDatasourcesData$inboundSchema = objectType({
46723
- _id: stringType().default("01JR16E0H57Y9QAVGBFNWJD6TQ"),
46726
+ _id: stringType().default("01JRA4NJP83ZKJQPVT4N99YMNV"),
46724
46727
  display_name: stringType(),
46725
46728
  description: stringType().optional(),
46726
46729
  status: ListDatasourcesStatus$inboundSchema,
@@ -46743,7 +46746,7 @@ var init_listdatasources = __esm(() => {
46743
46746
  });
46744
46747
  });
46745
46748
  ListDatasourcesData$outboundSchema = objectType({
46746
- id: stringType().default("01JR16E0H57Y9QAVGBFNWJD6TQ"),
46749
+ id: stringType().default("01JRA4NJP83ZKJQPVT4N99YMNV"),
46747
46750
  displayName: stringType(),
46748
46751
  description: stringType().optional(),
46749
46752
  status: ListDatasourcesStatus$outboundSchema,
@@ -47835,7 +47838,7 @@ var init_retrievedatapoint = __esm(() => {
47835
47838
  created_by_id: stringType().optional(),
47836
47839
  updated_by_id: stringType().optional(),
47837
47840
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
47838
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
47841
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
47839
47842
  }).transform((v2) => {
47840
47843
  return remap(v2, {
47841
47844
  _id: "id",
@@ -47856,7 +47859,7 @@ var init_retrievedatapoint = __esm(() => {
47856
47859
  createdById: stringType().optional(),
47857
47860
  updatedById: stringType().optional(),
47858
47861
  created: dateType().transform((v2) => v2.toISOString()).optional(),
47859
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
47862
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
47860
47863
  }).transform((v2) => {
47861
47864
  return remap(v2, {
47862
47865
  id: "_id",
@@ -47927,7 +47930,7 @@ var init_retrievedataset = __esm(() => {
47927
47930
  updated_by_id: stringType().optional(),
47928
47931
  metadata: lazyType(() => RetrieveDatasetMetadata$inboundSchema),
47929
47932
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
47930
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
47933
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
47931
47934
  }).transform((v2) => {
47932
47935
  return remap(v2, {
47933
47936
  _id: "id",
@@ -47947,7 +47950,7 @@ var init_retrievedataset = __esm(() => {
47947
47950
  updatedById: stringType().optional(),
47948
47951
  metadata: lazyType(() => RetrieveDatasetMetadata$outboundSchema),
47949
47952
  created: dateType().transform((v2) => v2.toISOString()).optional(),
47950
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
47953
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
47951
47954
  }).transform((v2) => {
47952
47955
  return remap(v2, {
47953
47956
  id: "_id",
@@ -48005,7 +48008,7 @@ var init_retrievedatasource = __esm(() => {
48005
48008
  RetrieveDatasourceStatus$.outboundSchema = RetrieveDatasourceStatus$outboundSchema;
48006
48009
  })(RetrieveDatasourceStatus$ ||= {});
48007
48010
  RetrieveDatasourceResponseBody$inboundSchema = objectType({
48008
- _id: stringType().default("01JR16E0H60FZJKSAEJJ3BXSSV"),
48011
+ _id: stringType().default("01JRA4NJP9JEKHJJQ54BPS6EDP"),
48009
48012
  display_name: stringType(),
48010
48013
  description: stringType().optional(),
48011
48014
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -48028,7 +48031,7 @@ var init_retrievedatasource = __esm(() => {
48028
48031
  });
48029
48032
  });
48030
48033
  RetrieveDatasourceResponseBody$outboundSchema = objectType({
48031
- id: stringType().default("01JR16E0H60FZJKSAEJJ3BXSSV"),
48034
+ id: stringType().default("01JRA4NJP9JEKHJJQ54BPS6EDP"),
48032
48035
  displayName: stringType(),
48033
48036
  description: stringType().optional(),
48034
48037
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -49092,7 +49095,7 @@ var init_updatedatapoint = __esm(() => {
49092
49095
  created_by_id: stringType().optional(),
49093
49096
  updated_by_id: stringType().optional(),
49094
49097
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
49095
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
49098
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
49096
49099
  }).transform((v2) => {
49097
49100
  return remap(v2, {
49098
49101
  _id: "id",
@@ -49113,7 +49116,7 @@ var init_updatedatapoint = __esm(() => {
49113
49116
  createdById: stringType().optional(),
49114
49117
  updatedById: stringType().optional(),
49115
49118
  created: dateType().transform((v2) => v2.toISOString()).optional(),
49116
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
49119
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
49117
49120
  }).transform((v2) => {
49118
49121
  return remap(v2, {
49119
49122
  id: "_id",
@@ -49214,7 +49217,7 @@ var init_updatedataset = __esm(() => {
49214
49217
  parent_id: stringType().optional(),
49215
49218
  version: stringType().optional(),
49216
49219
  created: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
49217
- updated: stringType().datetime({ offset: true }).default("2025-04-04T20:03:41.515Z").transform((v2) => new Date(v2))
49220
+ updated: stringType().datetime({ offset: true }).default("2025-04-08T07:26:02.282Z").transform((v2) => new Date(v2))
49218
49221
  }).transform((v2) => {
49219
49222
  return remap(v2, {
49220
49223
  _id: "id",
@@ -49237,7 +49240,7 @@ var init_updatedataset = __esm(() => {
49237
49240
  parentId: stringType().optional(),
49238
49241
  version: stringType().optional(),
49239
49242
  created: dateType().transform((v2) => v2.toISOString()).optional(),
49240
- updated: dateType().default(() => new Date("2025-04-04T20:03:41.515Z")).transform((v2) => v2.toISOString())
49243
+ updated: dateType().default(() => new Date("2025-04-08T07:26:02.282Z")).transform((v2) => v2.toISOString())
49241
49244
  }).transform((v2) => {
49242
49245
  return remap(v2, {
49243
49246
  id: "_id",
@@ -49318,7 +49321,7 @@ var init_updatedatasource = __esm(() => {
49318
49321
  UpdateDatasourceStatus$.outboundSchema = UpdateDatasourceStatus$outboundSchema;
49319
49322
  })(UpdateDatasourceStatus$ ||= {});
49320
49323
  UpdateDatasourceResponseBody$inboundSchema = objectType({
49321
- _id: stringType().default("01JR16E0H8SV7D01CGQHRSKGRP"),
49324
+ _id: stringType().default("01JRA4NJPBJ28VRVB78R49Q40P"),
49322
49325
  display_name: stringType(),
49323
49326
  description: stringType().optional(),
49324
49327
  status: UpdateDatasourceStatus$inboundSchema,
@@ -49341,7 +49344,7 @@ var init_updatedatasource = __esm(() => {
49341
49344
  });
49342
49345
  });
49343
49346
  UpdateDatasourceResponseBody$outboundSchema = objectType({
49344
- id: stringType().default("01JR16E0H8SV7D01CGQHRSKGRP"),
49347
+ id: stringType().default("01JRA4NJPBJ28VRVB78R49Q40P"),
49345
49348
  displayName: stringType(),
49346
49349
  description: stringType().optional(),
49347
49350
  status: UpdateDatasourceStatus$outboundSchema,
@@ -56911,7 +56914,7 @@ var init_remoteconfigsRetrieve2 = __esm(() => {
56911
56914
  function createMCPServer(deps) {
56912
56915
  const server = new McpServer({
56913
56916
  name: "Orq",
56914
- version: "3.3.4"
56917
+ version: "3.3.6"
56915
56918
  });
56916
56919
  const client = new OrqCore({
56917
56920
  apiKey: deps.apiKey,
@@ -56920,7 +56923,7 @@ function createMCPServer(deps) {
56920
56923
  serverURL: deps.serverURL,
56921
56924
  serverIdx: deps.serverIdx
56922
56925
  });
56923
- const scopes = new Set(deps.scopes ?? mcpScopes);
56926
+ const scopes = new Set(deps.scopes);
56924
56927
  const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
56925
56928
  const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
56926
56929
  const resource = createRegisterResource(deps.logger, server, client, scopes);
@@ -56980,7 +56983,6 @@ var init_server2 = __esm(() => {
56980
56983
  init_mcp();
56981
56984
  init_core();
56982
56985
  init_resources();
56983
- init_scopes();
56984
56986
  init_tools();
56985
56987
  init_contactsCreate2();
56986
56988
  init_datasetsClear2();
@@ -58117,7 +58119,11 @@ function buildContext(process2) {
58117
58119
  // src/mcp-server/cli/start/command.ts
58118
58120
  init_lib();
58119
58121
  init_console_logger();
58120
- init_scopes();
58122
+
58123
+ // src/mcp-server/scopes.ts
58124
+ var mcpScopes = [];
58125
+
58126
+ // src/mcp-server/cli/start/command.ts
58121
58127
  var startCommand = tn({
58122
58128
  loader: async () => {
58123
58129
  const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
@@ -58238,7 +58244,7 @@ var routes = rn({
58238
58244
  var app = Ve(routes, {
58239
58245
  name: "mcp",
58240
58246
  versionInfo: {
58241
- currentVersion: "3.3.4"
58247
+ currentVersion: "3.3.6"
58242
58248
  }
58243
58249
  });
58244
58250
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -58246,5 +58252,5 @@ export {
58246
58252
  app
58247
58253
  };
58248
58254
 
58249
- //# debugId=7720DDDFCA27372E64756E2164756E21
58255
+ //# debugId=5C7F343C5027C19364756E2164756E21
58250
58256
  //# sourceMappingURL=mcp-server.js.map