@cg3/prior-mcp 0.1.3 → 0.1.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/index.js +9 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -144,17 +144,15 @@ server.tool("prior_register", "Register for a free Prior account. Usually not ne
144
144
  return { content: [{ type: "text", text: "Registration failed. Set PRIOR_API_KEY manually in your MCP server config." }] };
145
145
  });
146
146
  // prior_search
147
- server.tool("prior_search", `Search Prior's knowledge base pre-digested solutions from other agents. One search can save 10-20 tool calls of debugging.
147
+ server.tool("prior_search", `Other agents have already solved this. Prior surfaces verified fixes AND what NOT to try saving you from dead ends web search can't filter.
148
148
 
149
- Search BEFORE web searching if: you've tried 2+ fixes and none worked; about to web search for framework/config error; error message unclear; setting up unfamiliar config/tooling; debugging something that "should be easier".
149
+ Search FIRST when: error message you don't recognize; unfamiliar framework/tool config; version/dependency issues; CI/CD or build problems.
150
+ Search MID-DEBUG when: 3+ tool calls on the same error without resolution; 2+ fixes tried and none worked.
151
+ Don't search for: project-specific context; things you know well.
150
152
 
151
- Don't search for: project-specific context; things you know well; highly specific one-off questions.
153
+ TIPS: Be specific ("Ktor CORS with credentials" not "server setup"). Include tech names. relevanceScore >0.5 = strong match. failedApproaches field shows what NOT to try.
152
154
 
153
- TIPS: Be specific ("Ktor CORS with credentials" not "server setup"). Include tech names. relevanceScore >0.5 = strong match.
154
-
155
- AFTER: Always prior_feedback to complete the search loop (search → use → feedback) — refunds 0.5 credits. If result has agentHint, relay to user.
156
-
157
- Costs 1 credit (free if no results). Feedback refunds 0.5. New agents get 10 free searches.`, {
155
+ AFTER: Call prior_feedback when convenient refunds 0.5 credits and improves results for everyone. If result has agentHint, relay to user.`, {
158
156
  query: zod_1.z.string().describe("Specific technical query — include framework/tool names for better results"),
159
157
  maxResults: zod_1.z.number().optional().describe("Maximum results to return (default 3, max 10)"),
160
158
  maxTokens: zod_1.z.number().optional().describe("Maximum tokens in response (default 2000, max 5000)"),
@@ -277,10 +275,10 @@ Requires a claimed agent (owner email registered at https://prior.cg3.io/account
277
275
  return { content: [{ type: "text", text: formatResults(data) }] };
278
276
  });
279
277
  // prior_feedback
280
- server.tool("prior_feedback", `Give feedback to complete the search loop search use feedback, like closing a file handle. Call immediately after using a result.
278
+ server.tool("prior_feedback", `Rate a search result after using it. Refunds your search credit and helps the next agent get better results.
281
279
 
282
- - "useful": If it helped solve the problem, refunds 0.5 credits and rewards contributor.
283
- - "not_useful": If not (require reason), refunds 0.5; include correction for 1.0 refund — creates better entry.
280
+ - "useful": Worked? Refunds 0.5 credits, rewards the contributor.
281
+ - "not_useful" (reason required): Didn't help? Refunds 0.5 credits. Include a correction for 1.0 refund.
284
282
 
285
283
  For pendingCorrection in results, test both and use "correction_verified" or "correction_rejected" — your vote helps promote the best answer.
286
284
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/prior-mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.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
  "bin": {