@firfi/huly-mcp 0.1.21 → 0.1.23

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
6
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/)
7
7
  [![MCP Server](https://badge.mcpx.dev?type=server&features=tools)](https://github.com/dearlordylord/huly-mcp)
8
- [![cooked at Monadical](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Monadical-SAS/monadical.com/master/static/api/cooked-at-monadical.json)](https://monadical.com)
8
+ [![cooked at Monadical](https://img.shields.io/endpoint?url=https://monadical.com/static/api/cooked-at-monadical.json)](https://monadical.com)
9
9
 
10
10
  MCP server for [Huly](https://huly.io/) integration.
11
11
 
package/dist/index.cjs CHANGED
@@ -158378,7 +158378,7 @@ var HulyAuthError = class extends Schema_exports.TaggedError()(
158378
158378
  ) {
158379
158379
  mcpErrorCode = McpErrorCode.InternalError;
158380
158380
  };
158381
- var IssueNotFoundError2 = class extends Schema_exports.TaggedError()(
158381
+ var IssueNotFoundError = class extends Schema_exports.TaggedError()(
158382
158382
  "IssueNotFoundError",
158383
158383
  {
158384
158384
  identifier: Schema_exports.String,
@@ -158464,7 +158464,7 @@ var FileFetchError = class extends Schema_exports.TaggedError()(
158464
158464
  return `Failed to fetch file from ${this.fileUrl}: ${this.reason}`;
158465
158465
  }
158466
158466
  };
158467
- var TeamspaceNotFoundError2 = class extends Schema_exports.TaggedError()(
158467
+ var TeamspaceNotFoundError = class extends Schema_exports.TaggedError()(
158468
158468
  "TeamspaceNotFoundError",
158469
158469
  {
158470
158470
  identifier: Schema_exports.String
@@ -158475,7 +158475,7 @@ var TeamspaceNotFoundError2 = class extends Schema_exports.TaggedError()(
158475
158475
  return `Teamspace '${this.identifier}' not found`;
158476
158476
  }
158477
158477
  };
158478
- var DocumentNotFoundError2 = class extends Schema_exports.TaggedError()(
158478
+ var DocumentNotFoundError = class extends Schema_exports.TaggedError()(
158479
158479
  "DocumentNotFoundError",
158480
158480
  {
158481
158481
  identifier: Schema_exports.String,
@@ -158603,7 +158603,7 @@ var SavedMessageNotFoundError = class extends Schema_exports.TaggedError()(
158603
158603
  return `Saved message for '${this.messageId}' not found`;
158604
158604
  }
158605
158605
  };
158606
- var AttachmentNotFoundError2 = class extends Schema_exports.TaggedError()(
158606
+ var AttachmentNotFoundError = class extends Schema_exports.TaggedError()(
158607
158607
  "AttachmentNotFoundError",
158608
158608
  {
158609
158609
  attachmentId: Schema_exports.String
@@ -158702,7 +158702,7 @@ var HulyDomainError = Schema_exports.Union(
158702
158702
  HulyError,
158703
158703
  HulyConnectionError,
158704
158704
  HulyAuthError,
158705
- IssueNotFoundError2,
158705
+ IssueNotFoundError,
158706
158706
  ProjectNotFoundError,
158707
158707
  InvalidStatusError,
158708
158708
  PersonNotFoundError,
@@ -158710,8 +158710,8 @@ var HulyDomainError = Schema_exports.Union(
158710
158710
  InvalidFileDataError,
158711
158711
  FileNotFoundError,
158712
158712
  FileFetchError,
158713
- TeamspaceNotFoundError2,
158714
- DocumentNotFoundError2,
158713
+ TeamspaceNotFoundError,
158714
+ DocumentNotFoundError,
158715
158715
  CommentNotFoundError,
158716
158716
  MilestoneNotFoundError,
158717
158717
  ChannelNotFoundError,
@@ -158722,7 +158722,7 @@ var HulyDomainError = Schema_exports.Union(
158722
158722
  ActivityMessageNotFoundError,
158723
158723
  ReactionNotFoundError,
158724
158724
  SavedMessageNotFoundError,
158725
- AttachmentNotFoundError2,
158725
+ AttachmentNotFoundError,
158726
158726
  ComponentNotFoundError,
158727
158727
  IssueTemplateNotFoundError,
158728
158728
  NotificationNotFoundError,
@@ -174725,6 +174725,10 @@ var LimitParam = Schema_exports.Number.pipe(
174725
174725
  Schema_exports.lessThanOrEqualTo(200)
174726
174726
  );
174727
174727
  var makeJsonSchema = (schema) => JSONSchema_exports.make(schema);
174728
+ var EmptyParamsSchema = Schema_exports.Struct({}).annotations({
174729
+ jsonSchema: { type: "object", properties: {}, additionalProperties: false }
174730
+ });
174731
+ var emptyParamsJsonSchema = makeJsonSchema(EmptyParamsSchema);
174728
174732
 
174729
174733
  // src/domain/schemas/activity.ts
174730
174734
  var ActivityMessageSchema = Schema_exports.Struct({
@@ -175628,7 +175632,7 @@ var findProjectAndIssue = (params) => Effect_exports.gen(function* () {
175628
175632
  );
175629
175633
  }
175630
175634
  if (issue2 === void 0) {
175631
- return yield* new IssueNotFoundError2({
175635
+ return yield* new IssueNotFoundError({
175632
175636
  identifier: params.identifier,
175633
175637
  project: params.project
175634
175638
  });
@@ -178810,10 +178814,7 @@ var UpdateGuestSettingsParamsSchema = Schema_exports.Struct({
178810
178814
  title: "UpdateGuestSettingsParams",
178811
178815
  description: "Parameters for updating guest settings"
178812
178816
  });
178813
- var GetRegionsParamsSchema = Schema_exports.Struct({}).annotations({
178814
- title: "GetRegionsParams",
178815
- description: "Parameters for getting available regions"
178816
- });
178817
+ var GetRegionsParamsSchema = EmptyParamsSchema;
178817
178818
  var listWorkspaceMembersParamsJsonSchema = makeJsonSchema(ListWorkspaceMembersParamsSchema);
178818
178819
  var updateMemberRoleParamsJsonSchema = makeJsonSchema(UpdateMemberRoleParamsSchema);
178819
178820
  var listWorkspacesParamsJsonSchema = makeJsonSchema(ListWorkspacesParamsSchema);
@@ -179934,7 +179935,7 @@ var findTeamspace = (identifier2) => Effect_exports.gen(function* () {
179934
179935
  );
179935
179936
  }
179936
179937
  if (teamspace === void 0) {
179937
- return yield* new TeamspaceNotFoundError2({ identifier: identifier2 });
179938
+ return yield* new TeamspaceNotFoundError({ identifier: identifier2 });
179938
179939
  }
179939
179940
  return { client, teamspace };
179940
179941
  });
@@ -179957,7 +179958,7 @@ var findTeamspaceAndDocument = (params) => Effect_exports.gen(function* () {
179957
179958
  );
179958
179959
  }
179959
179960
  if (doc === void 0) {
179960
- return yield* new DocumentNotFoundError2({
179961
+ return yield* new DocumentNotFoundError({
179961
179962
  identifier: params.document,
179962
179963
  teamspace: params.teamspace
179963
179964
  });
@@ -180400,7 +180401,7 @@ var getIssue = (params) => Effect_exports.gen(function* () {
180400
180401
  );
180401
180402
  }
180402
180403
  if (issue2 === void 0) {
180403
- return yield* new IssueNotFoundError2({ identifier: params.identifier, project: params.project });
180404
+ return yield* new IssueNotFoundError({ identifier: params.identifier, project: params.project });
180404
180405
  }
180405
180406
  const statusDoc = statuses.find((s) => String(s._id) === String(issue2.status));
180406
180407
  const statusName = statusDoc?.name ?? "Unknown";
@@ -180840,7 +180841,7 @@ var setIssueComponent = (params) => Effect_exports.gen(function* () {
180840
180841
  );
180841
180842
  }
180842
180843
  if (issue2 === void 0) {
180843
- return yield* new IssueNotFoundError2({
180844
+ return yield* new IssueNotFoundError({
180844
180845
  identifier: params.identifier,
180845
180846
  project: params.project
180846
180847
  });
@@ -181477,7 +181478,7 @@ var setIssueMilestone = (params) => Effect_exports.gen(function* () {
181477
181478
  );
181478
181479
  }
181479
181480
  if (issue2 === void 0) {
181480
- return yield* new IssueNotFoundError2({
181481
+ return yield* new IssueNotFoundError({
181481
181482
  identifier: params.identifier,
181482
181483
  project: params.project
181483
181484
  });
@@ -181906,7 +181907,7 @@ var notificationTools = [
181906
181907
  name: "mark_all_notifications_read",
181907
181908
  description: "Mark all unread notifications as read. Returns the count of notifications marked.",
181908
181909
  category: CATEGORY10,
181909
- inputSchema: {},
181910
+ inputSchema: emptyParamsJsonSchema,
181910
181911
  handler: createToolHandler(
181911
181912
  "mark_all_notifications_read",
181912
181913
  () => Effect_exports.succeed({}),
@@ -181928,7 +181929,7 @@ var notificationTools = [
181928
181929
  name: "archive_all_notifications",
181929
181930
  description: "Archive all notifications. Returns the count of notifications archived.",
181930
181931
  category: CATEGORY10,
181931
- inputSchema: {},
181932
+ inputSchema: emptyParamsJsonSchema,
181932
181933
  handler: createToolHandler(
181933
181934
  "archive_all_notifications",
181934
181935
  () => Effect_exports.succeed({}),
@@ -182005,7 +182006,7 @@ var notificationTools = [
182005
182006
  name: "get_unread_notification_count",
182006
182007
  description: "Get the count of unread notifications.",
182007
182008
  category: CATEGORY10,
182008
- inputSchema: {},
182009
+ inputSchema: emptyParamsJsonSchema,
182009
182010
  handler: createToolHandler(
182010
182011
  "get_unread_notification_count",
182011
182012
  () => Effect_exports.succeed({}),
@@ -182759,7 +182760,7 @@ var workspaceTools = [
182759
182760
  name: "get_workspace_info",
182760
182761
  description: "Get information about the current workspace including name, URL, region, and settings.",
182761
182762
  category: CATEGORY15,
182762
- inputSchema: { type: "object", properties: {} },
182763
+ inputSchema: emptyParamsJsonSchema,
182763
182764
  handler: createNoParamsWorkspaceToolHandler(
182764
182765
  "get_workspace_info",
182765
182766
  () => getWorkspaceInfo()
@@ -182791,7 +182792,7 @@ var workspaceTools = [
182791
182792
  name: "delete_workspace",
182792
182793
  description: "Permanently delete the current workspace. This action cannot be undone. Use with extreme caution.",
182793
182794
  category: CATEGORY15,
182794
- inputSchema: { type: "object", properties: {} },
182795
+ inputSchema: emptyParamsJsonSchema,
182795
182796
  handler: createNoParamsWorkspaceToolHandler(
182796
182797
  "delete_workspace",
182797
182798
  () => deleteWorkspace()
@@ -182801,7 +182802,7 @@ var workspaceTools = [
182801
182802
  name: "get_user_profile",
182802
182803
  description: "Get the current user's profile information including bio, location, and social links.",
182803
182804
  category: CATEGORY15,
182804
- inputSchema: { type: "object", properties: {} },
182805
+ inputSchema: emptyParamsJsonSchema,
182805
182806
  handler: createNoParamsWorkspaceToolHandler(
182806
182807
  "get_user_profile",
182807
182808
  () => getUserProfile()