@damper/mcp 0.3.12 → 0.3.14

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ const FeedbackSummarySchema = z.object({
93
93
  title: z.string(),
94
94
  type: z.string(),
95
95
  voterCount: z.number(),
96
- linkedTaskId: z.string().optional(),
96
+ linkedTaskId: z.string().nullish(),
97
97
  });
98
98
  const FeedbackDetailSchema = z.object({
99
99
  id: z.string(),
@@ -102,7 +102,7 @@ const FeedbackDetailSchema = z.object({
102
102
  type: z.string(),
103
103
  status: z.string(),
104
104
  voteScore: z.number(),
105
- linkedTaskId: z.string().optional(),
105
+ linkedTaskId: z.string().nullish(),
106
106
  voters: z.array(z.object({ email: z.string(), plan: z.string() })),
107
107
  comments: z.array(z.object({ author: z.string(), body: z.string() })),
108
108
  });
@@ -841,7 +841,12 @@ server.registerTool('update_context_section', {
841
841
  openWorldHint: false,
842
842
  },
843
843
  }, async ({ section, content, tags, appliesTo }) => {
844
- const result = await api('POST', `/api/agent/context/${encodeURIComponent(section)}`, { content, tags, appliesTo });
844
+ // Encode each path segment individually but preserve slashes for hierarchical sections
845
+ const encodedSection = section
846
+ .split('/')
847
+ .map(part => encodeURIComponent(part))
848
+ .join('/');
849
+ const result = await api('POST', `/api/agent/context/${encodedSection}`, { content, tags, appliesTo });
845
850
  let text = `📝 Updated context section: ${result.section}`;
846
851
  if (result.tags && result.tags.length > 0) {
847
852
  text += ` [${result.tags.join(', ')}]`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damper/mcp",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "MCP server for Damper task management",
5
5
  "author": "Damper <hello@usedamper.com>",
6
6
  "repository": {