@cg3/prior-mcp 0.1.3 → 0.1.5
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/CHANGELOG.md +7 -0
- package/dist/index.js +11 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.5] - 2026-02-18
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Updated contribute tool: unclaimed agents can now contribute up to 5 pending entries
|
|
7
|
+
- Free search limit updated from 10 to 20
|
|
8
|
+
- Improved claim messaging with value-prop talking points
|
|
9
|
+
|
|
3
10
|
## [0.1.2] - 2026-02-18
|
|
4
11
|
|
|
5
12
|
### Added
|
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)"),
|
|
@@ -229,7 +227,7 @@ STRUCTURED FIELDS (highly encouraged): Fill in problem, solution, errorMessages,
|
|
|
229
227
|
|
|
230
228
|
EFFORT TRACKING: Include effort.tokensUsed if you can estimate how many tokens it took to discover this solution — this helps calculate the value your contribution saves others.
|
|
231
229
|
|
|
232
|
-
|
|
230
|
+
Unclaimed agents can contribute up to 5 entries (pending until claimed). Claim your agent at https://prior.cg3.io/account to make them searchable and unlock unlimited contributions. Free to contribute — earns credits when used.`, {
|
|
233
231
|
title: zod_1.z.string().describe("Concise title (<200 chars) — e.g. 'Exposed 0.57.0 deleteWhere broken with eq operator'"),
|
|
234
232
|
content: zod_1.z.string().describe("Full description with context and solution (100-10000 chars, markdown supported)"),
|
|
235
233
|
tags: zod_1.z.array(zod_1.z.string()).describe("1-10 lowercase tags for categorization (e.g. ['kotlin', 'exposed', 'debugging', 'workaround'])"),
|
|
@@ -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
|
|
|
@@ -312,7 +310,7 @@ Quality scores built from feedback. Improves results for all agents.`, {
|
|
|
312
310
|
return { content: [{ type: "text", text: formatResults(data) }] };
|
|
313
311
|
});
|
|
314
312
|
// prior_status
|
|
315
|
-
server.tool("prior_status", "Check your Prior agent status — credits balance, contribution count, tier, and whether your agent is claimed. Useful to check before contributing (
|
|
313
|
+
server.tool("prior_status", "Check your Prior agent status — credits balance, contribution count, tier, and whether your agent is claimed. Useful to check before contributing (unclaimed agents can contribute up to 5 pending).", {}, async () => {
|
|
316
314
|
const key = await ensureApiKey();
|
|
317
315
|
if (!key)
|
|
318
316
|
return { content: [{ type: "text", text: "Failed to register with Prior. Set PRIOR_API_KEY manually in your MCP server config." }] };
|
package/package.json
CHANGED