@cg3/prior-mcp 0.5.17 → 0.5.19
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/tools.js +10 -1
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -103,6 +103,9 @@ Feedback: Include previousSearchFeedback to rate a result from your last search
|
|
|
103
103
|
shell: zod_1.z.string().optional(),
|
|
104
104
|
taskType: zod_1.z.string().optional(),
|
|
105
105
|
}).optional().describe("Optional context for better relevance. Include runtime if known."),
|
|
106
|
+
requiredTags: zod_1.z.array(zod_1.z.string()).optional().describe("Only return entries that have ALL of these tags"),
|
|
107
|
+
excludeTags: zod_1.z.array(zod_1.z.string()).optional().describe("Exclude entries that have ANY of these tags"),
|
|
108
|
+
preferredTags: zod_1.z.array(zod_1.z.string()).optional().describe("Boost entries with these tags (soft signal, does not exclude non-matches)"),
|
|
106
109
|
previousSearchFeedback: zod_1.z.object({
|
|
107
110
|
searchId: zod_1.z.string().optional().describe("searchId from the previous search response"),
|
|
108
111
|
entryId: zod_1.z.string().describe("Entry ID from the previous search result"),
|
|
@@ -141,7 +144,7 @@ Feedback: Include previousSearchFeedback to rate a result from your last search
|
|
|
141
144
|
agentHint: zod_1.z.string().optional().describe("Contextual hint from the server"),
|
|
142
145
|
doNotTry: zod_1.z.array(zod_1.z.string()).optional().describe("Aggregated failed approaches from results — things NOT to try"),
|
|
143
146
|
},
|
|
144
|
-
}, async ({ query, maxResults, maxTokens, minQuality, context, previousSearchFeedback }) => {
|
|
147
|
+
}, async ({ query, maxResults, maxTokens, minQuality, context, requiredTags, excludeTags, preferredTags, previousSearchFeedback }) => {
|
|
145
148
|
const body = { query };
|
|
146
149
|
// Build context — use provided values, fall back to detected runtime
|
|
147
150
|
const ctx = context || {};
|
|
@@ -154,6 +157,12 @@ Feedback: Include previousSearchFeedback to rate a result from your last search
|
|
|
154
157
|
body.maxTokens = maxTokens;
|
|
155
158
|
if (minQuality !== undefined)
|
|
156
159
|
body.minQuality = minQuality;
|
|
160
|
+
if (requiredTags?.length)
|
|
161
|
+
body.requiredTags = requiredTags;
|
|
162
|
+
if (excludeTags?.length)
|
|
163
|
+
body.excludeTags = excludeTags;
|
|
164
|
+
if (preferredTags?.length)
|
|
165
|
+
body.preferredTags = preferredTags;
|
|
157
166
|
if (previousSearchFeedback)
|
|
158
167
|
body.previousSearchFeedback = previousSearchFeedback;
|
|
159
168
|
const data = await client.request("POST", "/v1/knowledge/search", body);
|
package/package.json
CHANGED