@damper/mcp 0.5.1 → 0.5.2
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 +13 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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) {
|
|
@@ -1704,6 +1707,7 @@ server.registerTool('create_changelog', {
|
|
|
1704
1707
|
title: z.string().describe('Changelog title (e.g., "v2.1.0" or "January 2025 Release")'),
|
|
1705
1708
|
content: z.string().optional().describe('Initial changelog content (markdown)'),
|
|
1706
1709
|
version: z.string().optional().describe('Version number'),
|
|
1710
|
+
date: z.string().optional().describe('Custom display date (ISO 8601). When set, used for sorting/display instead of publishedAt.'),
|
|
1707
1711
|
summary: z.string().max(280).optional().describe('Short summary for social sharing and email subject (max 280 chars)'),
|
|
1708
1712
|
status: z.enum(['draft', 'published']).optional().describe('Status (default: draft)'),
|
|
1709
1713
|
}),
|
|
@@ -1711,6 +1715,7 @@ server.registerTool('create_changelog', {
|
|
|
1711
1715
|
id: z.string(),
|
|
1712
1716
|
title: z.string(),
|
|
1713
1717
|
version: z.string().nullable().optional(),
|
|
1718
|
+
date: z.string().nullable().optional(),
|
|
1714
1719
|
status: z.string(),
|
|
1715
1720
|
}),
|
|
1716
1721
|
annotations: {
|
|
@@ -1737,6 +1742,7 @@ server.registerTool('update_changelog', {
|
|
|
1737
1742
|
title: z.string().optional().describe('New title'),
|
|
1738
1743
|
content: z.string().optional().describe('New content (markdown)'),
|
|
1739
1744
|
version: z.string().optional().describe('Version number'),
|
|
1745
|
+
date: z.string().optional().describe('Custom display date (ISO 8601). When set, used for sorting/display instead of publishedAt. Pass empty string to clear.'),
|
|
1740
1746
|
summary: z.string().max(280).optional().describe('Short summary for social sharing and email subject (max 280 chars)'),
|
|
1741
1747
|
status: z.enum(['draft', 'published']).optional().describe('Status'),
|
|
1742
1748
|
}),
|
|
@@ -1744,6 +1750,7 @@ server.registerTool('update_changelog', {
|
|
|
1744
1750
|
id: z.string(),
|
|
1745
1751
|
title: z.string(),
|
|
1746
1752
|
version: z.string().nullable().optional(),
|
|
1753
|
+
date: z.string().nullable().optional(),
|
|
1747
1754
|
status: z.string(),
|
|
1748
1755
|
publishedAt: z.string().nullable().optional(),
|
|
1749
1756
|
}),
|
|
@@ -1753,7 +1760,7 @@ server.registerTool('update_changelog', {
|
|
|
1753
1760
|
idempotentHint: true,
|
|
1754
1761
|
openWorldHint: false,
|
|
1755
1762
|
},
|
|
1756
|
-
}, async ({ changelogId, title, content, version, status }) => {
|
|
1763
|
+
}, async ({ changelogId, title, content, version, date, summary, status }) => {
|
|
1757
1764
|
const body = {};
|
|
1758
1765
|
if (title !== undefined)
|
|
1759
1766
|
body.title = title;
|
|
@@ -1761,6 +1768,10 @@ server.registerTool('update_changelog', {
|
|
|
1761
1768
|
body.content = content;
|
|
1762
1769
|
if (version !== undefined)
|
|
1763
1770
|
body.version = version;
|
|
1771
|
+
if (date !== undefined)
|
|
1772
|
+
body.date = date;
|
|
1773
|
+
if (summary !== undefined)
|
|
1774
|
+
body.summary = summary;
|
|
1764
1775
|
if (status !== undefined)
|
|
1765
1776
|
body.status = status;
|
|
1766
1777
|
const result = await api('PATCH', `/api/agent/changelogs/${changelogId}`, body);
|