@damper/mcp 0.3.2 → 0.3.3
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/index.js +43 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -877,6 +877,49 @@ server.registerTool('get_feedback', {
|
|
|
877
877
|
structuredContent: f,
|
|
878
878
|
};
|
|
879
879
|
});
|
|
880
|
+
// ==================== Issue Reporting ====================
|
|
881
|
+
// Tool: Report issue
|
|
882
|
+
server.registerTool('report_issue', {
|
|
883
|
+
title: 'Report Issue',
|
|
884
|
+
description: 'Report an error, bug, or feature request. Use when encountering issues with MCP tools or to suggest improvements.',
|
|
885
|
+
inputSchema: z.object({
|
|
886
|
+
category: z.enum(['error', 'feature_request', 'improvement']).describe('Type of report'),
|
|
887
|
+
title: z.string().describe('Brief summary of the issue'),
|
|
888
|
+
description: z.string().describe('Detailed description'),
|
|
889
|
+
context: z.object({
|
|
890
|
+
toolName: z.string().optional().describe('MCP tool that encountered the issue'),
|
|
891
|
+
errorMessage: z.string().optional().describe('Error message if applicable'),
|
|
892
|
+
taskId: z.string().optional().describe('Related task ID if applicable'),
|
|
893
|
+
}).optional(),
|
|
894
|
+
}),
|
|
895
|
+
outputSchema: z.object({
|
|
896
|
+
id: z.string(),
|
|
897
|
+
title: z.string(),
|
|
898
|
+
type: z.string(),
|
|
899
|
+
status: z.string(),
|
|
900
|
+
isDuplicate: z.boolean(),
|
|
901
|
+
existingIssueId: z.string().nullable(),
|
|
902
|
+
}),
|
|
903
|
+
annotations: {
|
|
904
|
+
readOnlyHint: false,
|
|
905
|
+
destructiveHint: false,
|
|
906
|
+
idempotentHint: false,
|
|
907
|
+
openWorldHint: false,
|
|
908
|
+
},
|
|
909
|
+
}, async ({ category, title, description, context }) => {
|
|
910
|
+
const result = await api('POST', '/api/agent/reports', { category, title, description, context });
|
|
911
|
+
const typeIcon = result.type === 'bug' ? '🐛' : result.type === 'feature' ? '✨' : '💡';
|
|
912
|
+
if (result.isDuplicate) {
|
|
913
|
+
return {
|
|
914
|
+
content: [{ type: 'text', text: `⚠️ Similar issue already reported: ${result.existingIssueId} ${typeIcon} "${result.title}"` }],
|
|
915
|
+
structuredContent: result,
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
return {
|
|
919
|
+
content: [{ type: 'text', text: `✅ Reported: ${result.id} ${typeIcon} "${result.title}" [${result.status}]` }],
|
|
920
|
+
structuredContent: result,
|
|
921
|
+
};
|
|
922
|
+
});
|
|
880
923
|
// ==================== Template Tools ====================
|
|
881
924
|
// Tool: List templates
|
|
882
925
|
server.registerTool('list_templates', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@damper/mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "MCP server for Damper task management",
|
|
5
5
|
"author": "Damper <hello@usedamper.com>",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.25.0",
|
|
28
|
-
"zod": "^3.
|
|
28
|
+
"zod": "^3.25.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|