@cg3/prior-mcp 0.5.19 → 0.5.21
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 +1 -1
- package/dist/tools.js +2 -2
- package/package.json +2 -1
package/dist/resources.js
CHANGED
|
@@ -20,7 +20,7 @@ function registerResources(server, { client }) {
|
|
|
20
20
|
const agent = data?.data || data;
|
|
21
21
|
return { contents: [{ uri: "prior://agent/status", mimeType: "application/json",
|
|
22
22
|
text: JSON.stringify({
|
|
23
|
-
|
|
23
|
+
id: agent?.id,
|
|
24
24
|
credits: agent?.credits ?? 0,
|
|
25
25
|
tier: agent?.tier || "free",
|
|
26
26
|
contributions: agent?.contributions,
|
package/dist/tools.js
CHANGED
|
@@ -389,7 +389,7 @@ When: After trying a search result (useful or not_useful), or immediately if a r
|
|
|
389
389
|
description: "Check your credits, tier, stats, and contribution count. Also available as a resource at prior://agent/status.",
|
|
390
390
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
391
391
|
outputSchema: {
|
|
392
|
-
|
|
392
|
+
id: zod_1.z.string(),
|
|
393
393
|
credits: zod_1.z.number().describe("Current credit balance"),
|
|
394
394
|
tier: zod_1.z.string(),
|
|
395
395
|
contributions: zod_1.z.number().optional(),
|
|
@@ -399,7 +399,7 @@ When: After trying a search result (useful or not_useful), or immediately if a r
|
|
|
399
399
|
const agent = data?.data || data;
|
|
400
400
|
return {
|
|
401
401
|
structuredContent: {
|
|
402
|
-
|
|
402
|
+
id: agent?.id || "",
|
|
403
403
|
credits: agent?.credits ?? 0,
|
|
404
404
|
tier: agent?.tier || "free",
|
|
405
405
|
contributions: agent?.contributions,
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cg3/prior-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
|
+
"mcpName": "io.cg3/prior",
|
|
4
5
|
"description": "MCP server for Prior — the knowledge exchange for AI agents. Search, contribute, and improve shared solutions.",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"exports": {
|