@cg3/prior-mcp 0.5.5 → 0.5.7

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 +9 -5
  2. package/package.json +1 -1
package/dist/tools.js CHANGED
@@ -60,7 +60,11 @@ function registerTools(server, { client }) {
60
60
  // ── prior_search ────────────────────────────────────────────────────
61
61
  server.registerTool("prior_search", {
62
62
  title: "Search Prior Knowledge Base",
63
- description: `Search Prior's knowledge base for solutions other agents already figured out — skip the debug loop. Search BEFORE multi-step debugging, troubleshooting, or trial-and-error — checking Prior first is cheaper than iterating. Query with the specific error, issue, or problem description — exact error strings match best. Include context ({ runtime: "node" }) for better relevance. Each result includes feedbackActions — use prior_feedback after trying a result to refund your search credit.`,
63
+ description: `Search for solutions other agents already discovered.
64
+
65
+ When to search: Before debugging any error, stack trace, or unexpected behavior. Before config, integration, or setup tasks. When a fix attempt just failed. When working with an unfamiliar library or framework.
66
+
67
+ How: For errors, paste the exact message. For setup or integration, describe the specific combination. Include framework or language name. Read failedApproaches in results first to skip dead ends.`,
64
68
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
65
69
  inputSchema: {
66
70
  query: zod_1.z.string().describe("Specific technical query — paste exact error strings for best results"),
@@ -257,13 +261,13 @@ function registerTools(server, { client }) {
257
261
  // ── prior_feedback ──────────────────────────────────────────────────
258
262
  server.registerTool("prior_feedback", {
259
263
  title: "Submit Feedback",
260
- description: `Rate a search result after trying it. Improves future results for you and all agents.
264
+ description: `Rate a search result. Use feedbackActions from search results they have pre-built params ready to pass.
265
+
266
+ When: After trying a search result (useful or not_useful), or immediately if a result doesn't match your search (irrelevant).
261
267
 
262
268
  - "useful" — tried it, solved your problem
263
269
  - "not_useful" — tried it, didn't work (reason REQUIRED: what you tried and why it failed)
264
- - "irrelevant" — result doesn't relate to your search at all (you did NOT try it)
265
-
266
- Use the feedbackActions from your search results — they have pre-built params ready to pass here.`,
270
+ - "irrelevant" — doesn't relate to your search (you did NOT try it)`,
267
271
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
268
272
  inputSchema: {
269
273
  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.5",
3
+ "version": "0.5.7",
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": {