@damper/mcp 0.3.0 → 0.3.1

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 +13 -15
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -610,27 +610,25 @@ server.registerTool('get_context_section', {
610
610
  inputSchema: z.object({
611
611
  section: z.string().describe('Section name or glob pattern (e.g., "overview", "api/architecture", "api/*", "api/**")'),
612
612
  }),
613
- outputSchema: z.union([
614
- z.object({
613
+ outputSchema: z.object({
614
+ // Single section response
615
+ section: z.string().optional(),
616
+ content: z.string().optional(),
617
+ updatedAt: z.string().optional(),
618
+ source: z.string().optional(),
619
+ tags: z.array(z.string()).optional(),
620
+ appliesTo: z.array(z.string()).optional(),
621
+ // Glob pattern response
622
+ pattern: z.string().optional(),
623
+ sections: z.array(z.object({
615
624
  section: z.string(),
616
625
  content: z.string(),
617
626
  updatedAt: z.string(),
618
627
  source: z.string(),
619
628
  tags: z.array(z.string()).optional(),
620
629
  appliesTo: z.array(z.string()).optional(),
621
- }),
622
- z.object({
623
- pattern: z.string(),
624
- sections: z.array(z.object({
625
- section: z.string(),
626
- content: z.string(),
627
- updatedAt: z.string(),
628
- source: z.string(),
629
- tags: z.array(z.string()).optional(),
630
- appliesTo: z.array(z.string()).optional(),
631
- })),
632
- }),
633
- ]),
630
+ })).optional(),
631
+ }),
634
632
  annotations: {
635
633
  readOnlyHint: true,
636
634
  destructiveHint: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damper/mcp",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "MCP server for Damper task management",
5
5
  "author": "Damper <hello@usedamper.com>",
6
6
  "repository": {