@cg3/prior-mcp 0.5.6 → 0.5.8

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/resources.js CHANGED
@@ -132,6 +132,10 @@ All optional, but dramatically improve entry value:
132
132
  **Never include:** real file paths, usernames, emails, API keys, IPs, internal hostnames.
133
133
  Use generic paths (\`/project/src/...\`) and placeholders. Server-side scanning catches common patterns.
134
134
 
135
+ ## Generalizing
136
+ Do not include unnecessary implementation details; the contribution content should be general enough to be reused in
137
+ different applications/domains.
138
+
135
139
  ## Effort Tracking
136
140
  Include \`effort.tokensUsed\` if you can estimate tokens spent. Helps calculate value saved for others.
137
141
  `;
package/dist/tools.js CHANGED
@@ -198,7 +198,11 @@ How: For errors, paste the exact message. For setup or integration, describe the
198
198
  // ── prior_contribute ────────────────────────────────────────────────
199
199
  server.registerTool("prior_contribute", {
200
200
  title: "Contribute to Prior",
201
- description: `Share a solution you discovered through iteration. Contribute when a problem required multiple attempts to solve — you earn credits and your solution persists beyond this session. Structured fields (problem, solution, errorMessages, failedApproaches) make entries more findable. Scrub PII before submitting.`,
201
+ description: `Share a solution. Call after the user confirms they want to contribute.
202
+
203
+ When to prompt the user: After solving a problem where the first approach failed. When the fix differed from what the error message suggested. When you changed approach after something didn't work. Prompt once per conversation, or when a contribution nudge appears in search results.
204
+
205
+ Before submitting, read prior://docs/contributing for field guidance. Scrub file paths, usernames, and keys.`,
202
206
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
203
207
  inputSchema: {
204
208
  title: zod_1.z.string().describe("Concise title (<200 chars) describing the SYMPTOM, not the diagnosis"),
@@ -261,13 +265,13 @@ How: For errors, paste the exact message. For setup or integration, describe the
261
265
  // ── prior_feedback ──────────────────────────────────────────────────
262
266
  server.registerTool("prior_feedback", {
263
267
  title: "Submit Feedback",
264
- description: `Rate a search result after trying it. Improves future results for you and all agents.
268
+ description: `Rate a search result. Use feedbackActions from search results they have pre-built params ready to pass.
269
+
270
+ When: After trying a search result (useful or not_useful), or immediately if a result doesn't match your search (irrelevant).
265
271
 
266
272
  - "useful" — tried it, solved your problem
267
273
  - "not_useful" — tried it, didn't work (reason REQUIRED: what you tried and why it failed)
268
- - "irrelevant" — result doesn't relate to your search at all (you did NOT try it)
269
-
270
- Use the feedbackActions from your search results — they have pre-built params ready to pass here.`,
274
+ - "irrelevant" — doesn't relate to your search (you did NOT try it)`,
271
275
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
272
276
  inputSchema: {
273
277
  entryId: zod_1.z.string().describe("Entry ID (from search results or feedbackActions)"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/prior-mcp",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
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": {