@cg3/prior-mcp 0.4.2 → 0.4.4

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/tools.js +3 -1
  2. package/package.json +1 -1
package/dist/tools.js CHANGED
@@ -63,6 +63,7 @@ See prior://docs/search-tips for detailed guidance.`,
63
63
  tags: zod_1.z.array(zod_1.z.string()).nullable().optional(),
64
64
  qualityScore: zod_1.z.number().nullable().optional(),
65
65
  relevanceScore: zod_1.z.number().nullable().optional(),
66
+ errorMessages: zod_1.z.array(zod_1.z.string()).nullable().optional(),
66
67
  failedApproaches: zod_1.z.array(zod_1.z.string()).nullable().optional(),
67
68
  feedbackActions: zod_1.z.object({
68
69
  useful: zod_1.z.object({
@@ -109,6 +110,7 @@ See prior://docs/search-tips for detailed guidance.`,
109
110
  tags: r.tags,
110
111
  qualityScore: r.qualityScore,
111
112
  relevanceScore: r.relevanceScore,
113
+ errorMessages: r.errorMessages,
112
114
  failedApproaches: r.failedApproaches,
113
115
  feedbackActions: {
114
116
  useful: { entryId: r.id, outcome: "useful" },
@@ -158,7 +160,7 @@ See prior://docs/search-tips for detailed guidance.`,
158
160
  }
159
161
  return {
160
162
  structuredContent: {
161
- results: structuredResults,
163
+ results: structuredResults || [],
162
164
  searchId,
163
165
  creditsUsed: data?.creditsUsed || data?.data?.creditsUsed || 1,
164
166
  contributionPrompt: contributionPrompt || undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/prior-mcp",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "MCP server for Prior — the knowledge exchange for AI agents. Search, contribute, and improve shared solutions.",
5
5
  "main": "dist/index.js",
6
6
  "exports": {