@damper/mcp 0.1.10 → 0.1.12
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ async function api(method, path, body) {
|
|
|
34
34
|
// Server
|
|
35
35
|
const server = new McpServer({
|
|
36
36
|
name: 'damper',
|
|
37
|
-
version: '0.1.
|
|
37
|
+
version: '0.1.11',
|
|
38
38
|
});
|
|
39
39
|
// Output schemas
|
|
40
40
|
const SubtaskProgressSchema = z.object({
|
|
@@ -169,9 +169,10 @@ server.registerTool('get_task', {
|
|
|
169
169
|
}, async ({ taskId }) => {
|
|
170
170
|
const t = await api('GET', `/api/agent/tasks/${taskId}`);
|
|
171
171
|
const typeIcon = t.type === 'bug' ? '🐛' : t.type === 'feature' ? '✨' : t.type === 'improvement' ? '💡' : '📌';
|
|
172
|
+
const scorePart = t.voteScore > 0 ? ` | Score: ${t.voteScore}` : '';
|
|
172
173
|
const parts = [
|
|
173
174
|
`# ${typeIcon} ${t.title}`,
|
|
174
|
-
`Type: ${t.type} | Status: ${t.status}
|
|
175
|
+
`Type: ${t.type} | Status: ${t.status}${scorePart}`,
|
|
175
176
|
];
|
|
176
177
|
// Add priority/effort/quarter/labels if present
|
|
177
178
|
const meta = [];
|
|
@@ -569,9 +570,10 @@ server.registerTool('get_feedback', {
|
|
|
569
570
|
},
|
|
570
571
|
}, async ({ feedbackId }) => {
|
|
571
572
|
const f = await api('GET', `/api/agent/feedback/${feedbackId}`);
|
|
573
|
+
const scorePart = f.voteScore > 0 ? ` | Score: ${f.voteScore}` : '';
|
|
572
574
|
const parts = [
|
|
573
575
|
`# ${f.title}`,
|
|
574
|
-
`Type: ${f.type} | Status: ${f.status}
|
|
576
|
+
`Type: ${f.type} | Status: ${f.status}${scorePart}`,
|
|
575
577
|
f.linkedTaskId ? `Linked: ${f.linkedTaskId}` : '',
|
|
576
578
|
`\n${f.description}`,
|
|
577
579
|
].filter(Boolean);
|