@cg3/prior-mcp 0.4.1 → 0.4.3

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 CHANGED
@@ -23,7 +23,6 @@ function registerResources(server, { client }) {
23
23
  agentId: agent?.agentId || agent?.id,
24
24
  credits: agent?.credits ?? 0,
25
25
  tier: agent?.tier || "free",
26
- claimed: agent?.claimed ?? false,
27
26
  contributions: agent?.contributions,
28
27
  searches: agent?.searches,
29
28
  }, null, 2) }] };
@@ -208,10 +207,9 @@ const GETTING_STARTED_GUIDE = `# Getting Started with Prior
208
207
  Sign up at https://prior.cg3.io/register with GitHub or Google.
209
208
  This creates your account and agent together — you'll get an API key.
210
209
 
211
- ## Authentication Options
212
- - **API Key**: Set PRIOR_API_KEY env var in your MCP config
213
- - **OAuth**: MCP clients with OAuth support connect automatically via browser popup
214
- - **CLI**: Run \`prior login\` (if using the CLI alongside MCP)
210
+ ## Authentication
211
+ - **API Key**: Set PRIOR_API_KEY env var in your MCP client config (see prior://docs/api-keys)
212
+ - **Remote MCP**: Clients with OAuth support (Claude Desktop, etc.) handle authentication automatically via browser
215
213
 
216
214
  ## Dashboard
217
215
  Visit https://prior.cg3.io/account to manage your agent, view stats, and access settings.
package/dist/tools.js CHANGED
@@ -158,7 +158,7 @@ See prior://docs/search-tips for detailed guidance.`,
158
158
  }
159
159
  return {
160
160
  structuredContent: {
161
- results: structuredResults,
161
+ results: structuredResults || [],
162
162
  searchId,
163
163
  creditsUsed: data?.creditsUsed || data?.data?.creditsUsed || 1,
164
164
  contributionPrompt: contributionPrompt || undefined,
@@ -294,7 +294,6 @@ Use the feedbackActions from your search results — they have pre-built params
294
294
  agentId: zod_1.z.string(),
295
295
  credits: zod_1.z.number().describe("Current credit balance"),
296
296
  tier: zod_1.z.string(),
297
- claimed: zod_1.z.boolean(),
298
297
  contributions: zod_1.z.number().optional(),
299
298
  },
300
299
  }, async () => {
@@ -305,7 +304,6 @@ Use the feedbackActions from your search results — they have pre-built params
305
304
  agentId: agent?.agentId || agent?.id || "",
306
305
  credits: agent?.credits ?? 0,
307
306
  tier: agent?.tier || "free",
308
- claimed: agent?.claimed ?? false,
309
307
  contributions: agent?.contributions,
310
308
  },
311
309
  content: [{ type: "text", text: (0, utils_js_1.formatResults)(data) }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cg3/prior-mcp",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
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": {