wolfpack-mcp 1.0.82 → 1.0.83
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/dist/client.js +4 -2
- package/dist/index.js +13 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -612,8 +612,10 @@ export class WolfpackClient {
|
|
|
612
612
|
return this.api.post(`/subscriptions/${documentType}/${documentId}/unmute`, {});
|
|
613
613
|
}
|
|
614
614
|
// Discussion methods
|
|
615
|
-
async getDiscussions(documentType, documentId) {
|
|
616
|
-
|
|
615
|
+
async getDiscussions(documentType, documentId, teamSlug) {
|
|
616
|
+
// A document ID is only unique within a project, so the server has to be told
|
|
617
|
+
// which one is meant rather than searching them all
|
|
618
|
+
return this.api.get(this.withTeamSlug(`/discussions/${documentType}/${documentId}`, teamSlug));
|
|
617
619
|
}
|
|
618
620
|
async getDiscussionByComment(commentId) {
|
|
619
621
|
return this.api.get(`/discussions/by-comment/${commentId}`);
|
package/dist/index.js
CHANGED
|
@@ -645,6 +645,10 @@ const UUID_FIELDS_TO_STRIP = new Set([
|
|
|
645
645
|
const GetDiscussionsSchema = z.object({
|
|
646
646
|
document_type: z.string().describe('Document type (e.g. "wiki", "work_item", "issue")'),
|
|
647
647
|
document_id: z.string().describe('The ID of the document'),
|
|
648
|
+
project_slug: z
|
|
649
|
+
.string()
|
|
650
|
+
.optional()
|
|
651
|
+
.describe('Project slug — a document ID is only unique within one project'),
|
|
648
652
|
});
|
|
649
653
|
const GetDiscussionByCommentSchema = z.object({
|
|
650
654
|
comment_id: z
|
|
@@ -868,6 +872,8 @@ class WolfpackMCPServer {
|
|
|
868
872
|
'PLANNING: Check if the description contains a plan (markdown checklist). If not, APPEND one using update_work_progress - preserve all original description text and add your plan below a "---" separator. ' +
|
|
869
873
|
'FORMS: Procedure-created work items may include formDefinition (field definitions with name, label, type, required, options) and formValues (current values). Use submit_work_item_form to fill in form values. ' +
|
|
870
874
|
'REVIEW CHECKS: items under review may carry review checks (code-review, security-review, ...); see list_work_item_checks and claim/complete_work_item_check. ' +
|
|
875
|
+
'DEPENDENCIES: dependsOn lists the work this item follows and nextItems the work that follows it, each with satisfied=true once it has finished. ' +
|
|
876
|
+
'An item with an unsatisfied entry in dependsOn cannot be pulled yet — take the work it depends on first. ' +
|
|
871
877
|
'IMAGES: Image references in the description (e.g. ``) can be viewed using the download_image tool.',
|
|
872
878
|
inputSchema: {
|
|
873
879
|
type: 'object',
|
|
@@ -1021,6 +1027,8 @@ class WolfpackMCPServer {
|
|
|
1021
1027
|
'now — so there is no separate "move it to doing" step. Move it to "review" when done. ' +
|
|
1022
1028
|
'AGENTS: with more than one item claimable, take them in the order list_work_items gives ' +
|
|
1023
1029
|
'you: bug fixes first, then higher priority, then oldest. ' +
|
|
1030
|
+
'AGENTS: an item waiting on unfinished work it depends on is not claimable and will return ' +
|
|
1031
|
+
'403 naming what to take first — see dependsOn on get_work_item. ' +
|
|
1024
1032
|
'If no assignee is specified, assigns to the API key owner. ' +
|
|
1025
1033
|
'In personal projects, items are always assigned to the owner.',
|
|
1026
1034
|
inputSchema: {
|
|
@@ -2104,6 +2112,10 @@ class WolfpackMCPServer {
|
|
|
2104
2112
|
type: 'string',
|
|
2105
2113
|
description: 'The ID of the document',
|
|
2106
2114
|
},
|
|
2115
|
+
project_slug: {
|
|
2116
|
+
type: 'string',
|
|
2117
|
+
description: 'Project slug — a document ID is only unique within one project',
|
|
2118
|
+
},
|
|
2107
2119
|
},
|
|
2108
2120
|
required: ['document_type', 'document_id'],
|
|
2109
2121
|
},
|
|
@@ -3073,7 +3085,7 @@ class WolfpackMCPServer {
|
|
|
3073
3085
|
// Discussion handlers
|
|
3074
3086
|
case 'get_discussions': {
|
|
3075
3087
|
const parsed = GetDiscussionsSchema.parse(args);
|
|
3076
|
-
const result = await this.client.getDiscussions(parsed.document_type, parsed.document_id);
|
|
3088
|
+
const result = await this.client.getDiscussions(parsed.document_type, parsed.document_id, parsed.project_slug);
|
|
3077
3089
|
return {
|
|
3078
3090
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
|
3079
3091
|
};
|