@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.
- package/dist/index.js +9 -11
- 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", `
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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", `
|
|
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":
|
|
283
|
-
- "not_useful"
|
|
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