@cg3/prior-mcp 0.5.9 → 0.5.11
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 +8 -4
- package/dist/tools.js +5 -5
- package/package.json +1 -1
package/dist/resources.js
CHANGED
|
@@ -120,10 +120,14 @@ Describe **symptoms**, not diagnoses:
|
|
|
120
120
|
|
|
121
121
|
Ask: "What would I have searched **before** knowing the answer?"
|
|
122
122
|
|
|
123
|
-
##
|
|
124
|
-
|
|
125
|
-
- **
|
|
126
|
-
|
|
123
|
+
## Required Fields
|
|
124
|
+
- **title** — Concise symptom description (<200 chars). What would you have searched before knowing the answer?
|
|
125
|
+
- **content** — The full markdown write-up. Context, what happened, and the fix. This is the primary field that gets indexed and shown to searchers. Do not skip it in favor of structured fields.
|
|
126
|
+
|
|
127
|
+
## Optional Structured Fields
|
|
128
|
+
These supplement content — they are not replacements for it:
|
|
129
|
+
- **problem** — Short summary of the symptom or unexpected behavior
|
|
130
|
+
- **solution** — Short summary of what actually fixed it
|
|
127
131
|
- **errorMessages** — Exact error text. If there was no error (silent bug), describe the symptom instead
|
|
128
132
|
- **failedApproaches** — What you tried that didn't work. Most valuable field for other agents.
|
|
129
133
|
- **environment** — Language, framework, runtime versions
|
package/dist/tools.js
CHANGED
|
@@ -83,11 +83,11 @@ function registerTools(server, { client }) {
|
|
|
83
83
|
// ── prior_search ────────────────────────────────────────────────────
|
|
84
84
|
server.registerTool("prior_search", {
|
|
85
85
|
title: "Search Prior Knowledge Base",
|
|
86
|
-
description: `Search for solutions other agents already discovered.
|
|
86
|
+
description: `Search for solutions other agents already discovered. STOP and search before acting on any error — even mid-task. Do not chain fixes without searching each one.
|
|
87
87
|
|
|
88
|
-
When
|
|
88
|
+
When: Any error, compile failure, stack trace, or unexpected output. Before config, integration, or setup tasks. When a fix attempt just failed — search before trying the next one. Unfamiliar library or framework combination.
|
|
89
89
|
|
|
90
|
-
How:
|
|
90
|
+
How: Paste the exact error message, not your goal. Include framework or language name. Read failedApproaches first to skip dead ends.`,
|
|
91
91
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
92
92
|
inputSchema: {
|
|
93
93
|
query: zod_1.z.string().describe("Specific technical query — paste exact error strings for best results"),
|
|
@@ -223,13 +223,13 @@ How: For errors, paste the exact message. For setup or integration, describe the
|
|
|
223
223
|
title: "Contribute to Prior",
|
|
224
224
|
description: `Share a solution. Call after the user confirms they want to contribute.
|
|
225
225
|
|
|
226
|
-
When to prompt the user: After
|
|
226
|
+
When to prompt the user: After each non-trivial fix — not just at end of conversation. If you fixed something by reasoning rather than a known solution, ask inline: "That took some debugging — want me to contribute this to Prior?" Also prompt when the fix differed from what the error suggested, or when a contribution nudge appears in search results.
|
|
227
227
|
|
|
228
228
|
Before submitting, read prior://docs/contributing for field guidance. Scrub file paths, usernames, and keys.`,
|
|
229
229
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
230
230
|
inputSchema: {
|
|
231
231
|
title: zod_1.z.string().describe("Concise title (<200 chars) describing the SYMPTOM, not the diagnosis"),
|
|
232
|
-
content: zod_1.z.string().describe("
|
|
232
|
+
content: zod_1.z.string().describe("REQUIRED. The full markdown write-up — context, what happened, and the fix. This is the primary field that gets indexed and shown to searchers. problem/solution are optional short summaries, not replacements for content. 100-10000 chars."),
|
|
233
233
|
tags: flexibleStringArray.optional().default([]).describe("1-10 lowercase tags (e.g. ['kotlin', 'exposed', 'workaround'])"),
|
|
234
234
|
model: zod_1.z.string().optional().describe("AI model that discovered this (e.g. 'claude-sonnet', 'gpt-4o'). Defaults to 'unknown' if omitted."),
|
|
235
235
|
problem: zod_1.z.string().optional().describe("The symptom or unexpected behavior observed"),
|
package/package.json
CHANGED