@damper/mcp 0.5.1 → 0.6.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/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ async function api(method, path, body) {
|
|
|
41
41
|
// Server
|
|
42
42
|
const server = new McpServer({
|
|
43
43
|
name: 'damper',
|
|
44
|
-
version: '0.
|
|
44
|
+
version: '0.6.0',
|
|
45
45
|
});
|
|
46
46
|
// Output schemas
|
|
47
47
|
const SubtaskProgressSchema = z.object({
|
|
@@ -1651,6 +1651,7 @@ server.registerTool('list_changelogs', {
|
|
|
1651
1651
|
inputSchema: z.object({
|
|
1652
1652
|
status: z.enum(['draft', 'published']).optional().describe('Filter by status'),
|
|
1653
1653
|
limit: z.number().optional(),
|
|
1654
|
+
sort: z.enum(['newest', 'oldest']).optional().describe('Sort order: newest (default) or oldest first'),
|
|
1654
1655
|
}),
|
|
1655
1656
|
outputSchema: z.object({
|
|
1656
1657
|
changelogs: z.array(z.object({
|
|
@@ -1669,12 +1670,14 @@ server.registerTool('list_changelogs', {
|
|
|
1669
1670
|
idempotentHint: true,
|
|
1670
1671
|
openWorldHint: false,
|
|
1671
1672
|
},
|
|
1672
|
-
}, async ({ status, limit }) => {
|
|
1673
|
+
}, async ({ status, limit, sort }) => {
|
|
1673
1674
|
const params = new URLSearchParams();
|
|
1674
1675
|
if (status)
|
|
1675
1676
|
params.set('status', status);
|
|
1676
1677
|
if (limit)
|
|
1677
1678
|
params.set('limit', String(limit));
|
|
1679
|
+
if (sort)
|
|
1680
|
+
params.set('sort', sort);
|
|
1678
1681
|
const query = params.toString();
|
|
1679
1682
|
const data = await api('GET', `/api/agent/changelogs${query ? `?${query}` : ''}`);
|
|
1680
1683
|
if (!data.changelogs.length) {
|