@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 +4 -0
- package/dist/tools.js +9 -5
- package/package.json +1 -1
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
|
|
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
|
|
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" —
|
|
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