backlog-mcp-server 0.15.1 → 0.16.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/README.ja.md +16 -8
- package/README.md +16 -8
- package/build/createBacklogMcpServer.d.ts +3 -3
- package/build/createBacklogMcpServer.js +4 -4
- package/build/createDescriptionHelper.d.ts +18 -0
- package/build/{createTranslationHelper.js → createDescriptionHelper.js} +1 -1
- package/build/index.js +23 -11
- package/build/lib.d.ts +4 -4
- package/build/lib.js +3 -3
- package/build/{loadTranslationOverrides.d.ts → loadDescriptionOverrides.d.ts} +3 -3
- package/build/{loadTranslationOverrides.js → loadDescriptionOverrides.js} +3 -3
- package/build/tools/addDocument.d.ts +3 -3
- package/build/tools/addIssue.d.ts +3 -3
- package/build/tools/addIssueComment.d.ts +3 -3
- package/build/tools/addProject.d.ts +3 -3
- package/build/tools/addPullRequest.d.ts +3 -3
- package/build/tools/addPullRequestComment.d.ts +3 -3
- package/build/tools/addRelatedIssue.d.ts +3 -3
- package/build/tools/addVersionMilestone.d.ts +3 -3
- package/build/tools/addWatching.d.ts +3 -3
- package/build/tools/addWiki.d.ts +3 -3
- package/build/tools/countIssues.d.ts +3 -3
- package/build/tools/deleteIssue.d.ts +3 -3
- package/build/tools/deleteProject.d.ts +3 -3
- package/build/tools/deleteVersion.d.ts +3 -3
- package/build/tools/deleteWatching.d.ts +3 -3
- package/build/tools/dynamicTools/organizations.d.ts +3 -3
- package/build/tools/dynamicTools/toolsets.d.ts +7 -7
- package/build/tools/getCategories.d.ts +3 -3
- package/build/tools/getCustomFields.d.ts +3 -3
- package/build/tools/getDocument.d.ts +3 -3
- package/build/tools/getDocumentTree.d.ts +3 -3
- package/build/tools/getDocuments.d.ts +3 -3
- package/build/tools/getGitRepositories.d.ts +3 -3
- package/build/tools/getGitRepository.d.ts +3 -3
- package/build/tools/getIssue.d.ts +3 -3
- package/build/tools/getIssueComments.d.ts +3 -3
- package/build/tools/getIssueTypes.d.ts +3 -3
- package/build/tools/getIssues.d.ts +3 -3
- package/build/tools/getMyself.d.ts +3 -3
- package/build/tools/getNotifications.d.ts +3 -3
- package/build/tools/getNotificationsCount.d.ts +3 -3
- package/build/tools/getPriorities.d.ts +3 -3
- package/build/tools/getProject.d.ts +3 -3
- package/build/tools/getProjectList.d.ts +3 -3
- package/build/tools/getProjectUsers.d.ts +3 -3
- package/build/tools/getPullRequest.d.ts +3 -3
- package/build/tools/getPullRequestComments.d.ts +3 -3
- package/build/tools/getPullRequests.d.ts +3 -3
- package/build/tools/getPullRequestsCount.d.ts +3 -3
- package/build/tools/getRelatedIssues.d.ts +3 -3
- package/build/tools/getResolutions.d.ts +3 -3
- package/build/tools/getSpace.d.ts +3 -3
- package/build/tools/getSpaceActivities.d.ts +3 -3
- package/build/tools/getUserRecentUpdates.d.ts +3 -3
- package/build/tools/getUserStarsCount.d.ts +3 -3
- package/build/tools/getUsers.d.ts +3 -3
- package/build/tools/getVersionMilestoneList.d.ts +3 -3
- package/build/tools/getWatchingListCount.d.ts +3 -3
- package/build/tools/getWatchingListItems.d.ts +3 -3
- package/build/tools/getWiki.d.ts +3 -3
- package/build/tools/getWikiPages.d.ts +3 -3
- package/build/tools/getWikisCount.d.ts +3 -3
- package/build/tools/markNotificationAsRead.d.ts +3 -3
- package/build/tools/markWatchingAsRead.d.ts +3 -3
- package/build/tools/removeRelatedIssue.d.ts +3 -3
- package/build/tools/resetUnreadNotificationCount.d.ts +3 -3
- package/build/tools/shared/customFieldFiltersSchema.d.ts +2 -2
- package/build/tools/tools.d.ts +2 -2
- package/build/tools/updateIssue.d.ts +3 -3
- package/build/tools/updateIssueComment.d.ts +3 -3
- package/build/tools/updateProject.d.ts +3 -3
- package/build/tools/updatePullRequest.d.ts +3 -3
- package/build/tools/updatePullRequestComment.d.ts +3 -3
- package/build/tools/updateVersionMilestone.d.ts +3 -3
- package/build/tools/updateWatching.d.ts +3 -3
- package/build/tools/updateWiki.d.ts +3 -3
- package/build/types/tool.d.ts +2 -2
- package/build/utils/resolveIdOrKey.d.ts +3 -3
- package/build/utils/toolsetUtils.d.ts +2 -2
- package/package.json +2 -2
- package/build/createTranslationHelper.d.ts +0 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WatchingListCountSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const getWatchingListCountSchema: (t:
|
|
6
|
+
declare const getWatchingListCountSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
userId: z.ZodNumber;
|
|
8
8
|
};
|
|
9
|
-
export declare const getWatchingListCountTool: (backlog: Backlog, { t }:
|
|
9
|
+
export declare const getWatchingListCountTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof getWatchingListCountSchema>, (typeof WatchingListCountSchema)["shape"]>;
|
|
10
10
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WatchingListItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const getWatchingListItemsSchema: (t:
|
|
6
|
+
declare const getWatchingListItemsSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
userId: z.ZodNumber;
|
|
8
8
|
};
|
|
9
|
-
export declare const getWatchingListItemsTool: (backlog: Backlog, { t }:
|
|
9
|
+
export declare const getWatchingListItemsTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof getWatchingListItemsSchema>, (typeof WatchingListItemSchema)["shape"]>;
|
|
10
10
|
export {};
|
package/build/tools/getWiki.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WikiSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const getWikiSchema: (t:
|
|
6
|
+
declare const getWikiSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
wikiId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
8
8
|
};
|
|
9
|
-
export declare const getWikiTool: (backlog: Backlog, { t }:
|
|
9
|
+
export declare const getWikiTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof getWikiSchema>, (typeof WikiSchema)["shape"]>;
|
|
10
10
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WikiListItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const getWikiPagesSchema: (t:
|
|
6
|
+
declare const getWikiPagesSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
keyword: z.ZodOptional<z.ZodString>;
|
|
10
10
|
};
|
|
11
|
-
export declare const getWikiPagesTool: (backlog: Backlog, { t }:
|
|
11
|
+
export declare const getWikiPagesTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof getWikiPagesSchema>, (typeof WikiListItemSchema)["shape"]>;
|
|
12
12
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WikiCountSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const getWikisCountSchema: (t:
|
|
6
|
+
declare const getWikisCountSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
};
|
|
10
|
-
export declare const getWikisCountTool: (backlog: Backlog, { t }:
|
|
10
|
+
export declare const getWikisCountTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof getWikisCountSchema>, (typeof WikiCountSchema)["shape"]>;
|
|
11
11
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
5
|
-
declare const markNotificationAsReadSchema: (t:
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
|
+
declare const markNotificationAsReadSchema: (t: DescriptionHelper["t"]) => {
|
|
6
6
|
id: z.ZodNumber;
|
|
7
7
|
};
|
|
8
8
|
export declare const MarkNotificationAsReadResultSchema: z.ZodObject<{
|
|
9
9
|
success: z.ZodBoolean;
|
|
10
10
|
message: z.ZodString;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export declare const markNotificationAsReadTool: (backlog: Backlog, { t }:
|
|
12
|
+
export declare const markNotificationAsReadTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof markNotificationAsReadSchema>, (typeof MarkNotificationAsReadResultSchema)["shape"]>;
|
|
13
13
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
5
|
-
declare const markWatchingAsReadSchema: (t:
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
|
+
declare const markWatchingAsReadSchema: (t: DescriptionHelper["t"]) => {
|
|
6
6
|
watchId: z.ZodNumber;
|
|
7
7
|
};
|
|
8
8
|
export declare const MarkWatchingAsReadResultSchema: z.ZodObject<{
|
|
9
9
|
success: z.ZodBoolean;
|
|
10
10
|
message: z.ZodString;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export declare const markWatchingAsReadTool: (backlog: Backlog, { t }:
|
|
12
|
+
export declare const markWatchingAsReadTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof markWatchingAsReadSchema>, (typeof MarkWatchingAsReadResultSchema)["shape"]>;
|
|
13
13
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { RelatedIssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const removeRelatedIssueSchema: (t:
|
|
6
|
+
declare const removeRelatedIssueSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
relatedIssueId: z.ZodNumber;
|
|
10
10
|
};
|
|
11
|
-
export declare const removeRelatedIssueTool: (backlog: Backlog, { t }:
|
|
11
|
+
export declare const removeRelatedIssueTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof removeRelatedIssueSchema>, (typeof RelatedIssueSchema)["shape"]>;
|
|
12
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Backlog } from 'backlog-js';
|
|
2
2
|
import { ToolDefinition } from '../types/tool.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
4
4
|
import { NotificationCountSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
5
|
-
declare const resetUnreadNotificationCountSchema: (t:
|
|
6
|
-
export declare const resetUnreadNotificationCountTool: (backlog: Backlog, { t }:
|
|
5
|
+
declare const resetUnreadNotificationCountSchema: (t: DescriptionHelper["t"]) => {};
|
|
6
|
+
export declare const resetUnreadNotificationCountTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof resetUnreadNotificationCountSchema>, (typeof NotificationCountSchema)["shape"]>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export declare const buildCustomFieldFilterSchema: (t:
|
|
2
|
+
import { DescriptionHelper } from '../../createDescriptionHelper.js';
|
|
3
|
+
export declare const buildCustomFieldFilterSchema: (t: DescriptionHelper["t"]) => z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
4
|
type: z.ZodLiteral<"text">;
|
|
5
5
|
id: z.ZodNumber;
|
|
6
6
|
value: z.ZodString;
|
package/build/tools/tools.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Backlog } from 'backlog-js';
|
|
2
|
-
import {
|
|
2
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
3
3
|
import { ToolsetGroup } from '../types/toolsets.js';
|
|
4
|
-
export declare const allTools: (backlog: Backlog, helper:
|
|
4
|
+
export declare const allTools: (backlog: Backlog, helper: DescriptionHelper) => ToolsetGroup;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { IssueSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateIssueSchema: (t:
|
|
6
|
+
declare const updateIssueSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -30,5 +30,5 @@ declare const updateIssueSchema: (t: TranslationHelper["t"]) => {
|
|
|
30
30
|
otherValue: z.ZodOptional<z.ZodString>;
|
|
31
31
|
}, z.core.$strip>>>;
|
|
32
32
|
};
|
|
33
|
-
export declare const updateIssueTool: (backlog: Backlog, { t }:
|
|
33
|
+
export declare const updateIssueTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateIssueSchema>, (typeof IssueSchema)["shape"]>;
|
|
34
34
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { IssueCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateIssueCommentSchema: (t:
|
|
6
|
+
declare const updateIssueCommentSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
issueId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
issueKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
commentId: z.ZodNumber;
|
|
10
10
|
content: z.ZodString;
|
|
11
11
|
};
|
|
12
|
-
export declare const updateIssueCommentTool: (backlog: Backlog, { t }:
|
|
12
|
+
export declare const updateIssueCommentTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateIssueCommentSchema>, (typeof IssueCommentSchema)["shape"]>;
|
|
13
13
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { ProjectSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateProjectSchema: (t:
|
|
6
|
+
declare const updateProjectSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +17,5 @@ declare const updateProjectSchema: (t: TranslationHelper["t"]) => {
|
|
|
17
17
|
}>>;
|
|
18
18
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
19
19
|
};
|
|
20
|
-
export declare const updateProjectTool: (backlog: Backlog, { t }:
|
|
20
|
+
export declare const updateProjectTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateProjectSchema>, (typeof ProjectSchema)["shape"]>;
|
|
21
21
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { PullRequestSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updatePullRequestSchema: (t:
|
|
6
|
+
declare const updatePullRequestSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
repoId: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16,5 +16,5 @@ declare const updatePullRequestSchema: (t: TranslationHelper["t"]) => {
|
|
|
16
16
|
notifiedUserId: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
17
17
|
statusId: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
};
|
|
19
|
-
export declare const updatePullRequestTool: (backlog: Backlog, { t }:
|
|
19
|
+
export declare const updatePullRequestTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updatePullRequestSchema>, (typeof PullRequestSchema)["shape"]>;
|
|
20
20
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { PullRequestCommentSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updatePullRequestCommentSchema: (t:
|
|
6
|
+
declare const updatePullRequestCommentSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
repoId: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12,5 +12,5 @@ declare const updatePullRequestCommentSchema: (t: TranslationHelper["t"]) => {
|
|
|
12
12
|
commentId: z.ZodNumber;
|
|
13
13
|
content: z.ZodString;
|
|
14
14
|
};
|
|
15
|
-
export declare const updatePullRequestCommentTool: (backlog: Backlog, { t }:
|
|
15
|
+
export declare const updatePullRequestCommentTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updatePullRequestCommentSchema>, (typeof PullRequestCommentSchema)["shape"]>;
|
|
16
16
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { VersionSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateVersionMilestoneSchema: (t:
|
|
6
|
+
declare const updateVersionMilestoneSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
projectId: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
9
9
|
id: z.ZodNumber;
|
|
@@ -13,5 +13,5 @@ declare const updateVersionMilestoneSchema: (t: TranslationHelper["t"]) => {
|
|
|
13
13
|
releaseDueDate: z.ZodOptional<z.ZodString>;
|
|
14
14
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
};
|
|
16
|
-
export declare const updateVersionMilestoneTool: (backlog: Backlog, { t }:
|
|
16
|
+
export declare const updateVersionMilestoneTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateVersionMilestoneSchema>, (typeof VersionSchema)["shape"]>;
|
|
17
17
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WatchingListItemSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateWatchingSchema: (t:
|
|
6
|
+
declare const updateWatchingSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
watchId: z.ZodNumber;
|
|
8
8
|
note: z.ZodString;
|
|
9
9
|
};
|
|
10
|
-
export declare const updateWatchingTool: (backlog: Backlog, { t }:
|
|
10
|
+
export declare const updateWatchingTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateWatchingSchema>, (typeof WatchingListItemSchema)["shape"]>;
|
|
11
11
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { Backlog } from 'backlog-js';
|
|
3
3
|
import { ToolDefinition } from '../types/tool.js';
|
|
4
|
-
import {
|
|
4
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
5
5
|
import { WikiSchema } from '../types/zod/backlogOutputDefinition.js';
|
|
6
|
-
declare const updateWikiSchema: (t:
|
|
6
|
+
declare const updateWikiSchema: (t: DescriptionHelper["t"]) => {
|
|
7
7
|
wikiId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
8
8
|
name: z.ZodOptional<z.ZodString>;
|
|
9
9
|
content: z.ZodOptional<z.ZodString>;
|
|
10
10
|
mailNotify: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
};
|
|
12
|
-
export declare const updateWikiTool: (backlog: Backlog, { t }:
|
|
12
|
+
export declare const updateWikiTool: (backlog: Backlog, { t }: DescriptionHelper) => ToolDefinition<ReturnType<typeof updateWikiSchema>, (typeof WikiSchema)["shape"]>;
|
|
13
13
|
export {};
|
package/build/types/tool.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
3
3
|
import { CallToolResult } from '@modelcontextprotocol/server';
|
|
4
4
|
export type ToolDefinition<Shape extends z.ZodRawShape, OutputShape extends z.ZodRawShape> = {
|
|
5
5
|
name: string;
|
|
@@ -12,7 +12,7 @@ export type ToolDefinition<Shape extends z.ZodRawShape, OutputShape extends z.Zo
|
|
|
12
12
|
}) => Promise<z.infer<z.ZodObject<OutputShape>> | z.infer<z.ZodObject<OutputShape>>[]>;
|
|
13
13
|
importantFields?: (keyof z.infer<z.ZodObject<OutputShape>>)[];
|
|
14
14
|
};
|
|
15
|
-
export declare const buildToolSchema: <T extends z.ZodRawShape>(fn: (t:
|
|
15
|
+
export declare const buildToolSchema: <T extends z.ZodRawShape>(fn: (t: DescriptionHelper["t"]) => T) => (t: DescriptionHelper["t"]) => T;
|
|
16
16
|
export type DynamicToolDefinition<Shape extends z.ZodRawShape> = {
|
|
17
17
|
name: string;
|
|
18
18
|
description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
2
2
|
export type EntityName = 'issue' | 'project' | 'repository';
|
|
3
3
|
type ResolveResult = {
|
|
4
4
|
ok: true;
|
|
@@ -10,9 +10,9 @@ type ResolveResult = {
|
|
|
10
10
|
export declare const resolveIdOrKey: <E extends EntityName>(entity: E, values: {
|
|
11
11
|
id?: number;
|
|
12
12
|
key?: string;
|
|
13
|
-
}, t:
|
|
13
|
+
}, t: DescriptionHelper["t"]) => ResolveResult;
|
|
14
14
|
export declare const resolveIdOrName: <E extends EntityName>(entity: E, values: {
|
|
15
15
|
id?: number;
|
|
16
16
|
name?: string;
|
|
17
|
-
}, t:
|
|
17
|
+
}, t: DescriptionHelper["t"]) => ResolveResult;
|
|
18
18
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Backlog } from 'backlog-js';
|
|
2
2
|
import { ToolsetGroup, Toolset } from '../types/toolsets.js';
|
|
3
|
-
import {
|
|
3
|
+
import { DescriptionHelper } from '../createDescriptionHelper.js';
|
|
4
4
|
export declare function getToolset(group: ToolsetGroup, name: string): Toolset | undefined;
|
|
5
5
|
export declare function enableToolset(group: ToolsetGroup, name: string): string;
|
|
6
|
-
export declare const buildToolsetGroup: (backlog: Backlog, helper:
|
|
6
|
+
export declare const buildToolsetGroup: (backlog: Backlog, helper: DescriptionHelper, enabledToolsets: string[]) => ToolsetGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backlog-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"backlog-mcp-server": "./build/index.js"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"cosmiconfig": "^9.0.1",
|
|
41
41
|
"env-var": "^7.5.0",
|
|
42
42
|
"graphql": "^16.14.1",
|
|
43
|
-
"hono": "^4.12.
|
|
43
|
+
"hono": "^4.12.34",
|
|
44
44
|
"pino": "^10.3.1",
|
|
45
45
|
"yargs": "^18.0.0",
|
|
46
46
|
"zod": "^4.4.3"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves the schema strings every tool definition passes through `t()`: tool
|
|
3
|
-
* descriptions and parameter descriptions. These are read by the model when it
|
|
4
|
-
* picks a tool and fills in arguments; they never reach the end user.
|
|
5
|
-
*
|
|
6
|
-
* This module intentionally imports nothing. Every tool in `src/tools/` depends on
|
|
7
|
-
* it, so anything imported here is reachable from the tool layer — and the tool
|
|
8
|
-
* layer is meant to run on non-Node runtimes too. Discovering and reading the
|
|
9
|
-
* override file needs a filesystem and a home directory, so that part lives in
|
|
10
|
-
* `loadTranslationOverrides` and the CLI passes the result in.
|
|
11
|
-
*/
|
|
12
|
-
export interface TranslationHelper {
|
|
13
|
-
t: (key: string, fallback: string) => string;
|
|
14
|
-
dump: () => Record<string, string>;
|
|
15
|
-
}
|
|
16
|
-
export declare function createTranslationHelper(overrides?: Record<string, string>): TranslationHelper;
|