@cg3/prior-mcp 0.5.9 → 0.5.10

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/tools.js +4 -4
  2. package/package.json +1 -1
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 to search: Before debugging any error, stack trace, or unexpected behavior. Before config, integration, or setup tasks. When a fix attempt just failed. When working with an unfamiliar library or framework.
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: For errors, paste the exact message. For setup or integration, describe the specific combination. Include framework or language name. Read failedApproaches in results first to skip dead ends.`,
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,7 +223,7 @@ 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 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.
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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/prior-mcp",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
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
  "exports": {