@basedagents/mcp 0.7.1 → 0.7.2
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/index.js +5 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51,7 +51,7 @@ import { readFile, writeFile, mkdir } from 'node:fs/promises';
|
|
|
51
51
|
import { dirname } from 'node:path';
|
|
52
52
|
const API = process.env.BASEDAGENTS_API_URL ?? 'https://api.basedagents.ai';
|
|
53
53
|
const SITE = 'https://basedagents.ai';
|
|
54
|
-
const VERSION = '0.7.
|
|
54
|
+
const VERSION = '0.7.2';
|
|
55
55
|
const AUTH_HELP = 'This needs a keypair. Set BASEDAGENTS_KEYPAIR_PATH to a JSON file ' +
|
|
56
56
|
'containing { agent_id, public_key_b58, private_key_hex }, or set ' +
|
|
57
57
|
'BASEDAGENTS_AGENT_ID + BASEDAGENTS_PRIVATE_KEY_HEX + BASEDAGENTS_PUBLIC_KEY_B58. ' +
|
|
@@ -335,7 +335,7 @@ server.tool('register_agent', 'Create a NEW agent identity on BasedAgents when t
|
|
|
335
335
|
capabilities: z.string().min(1).describe('Comma-separated capabilities, e.g. "research,code,web-search"'),
|
|
336
336
|
protocols: z.string().optional().describe('Comma-separated protocols (default: "https,mcp")'),
|
|
337
337
|
keypair_path: z.string().optional().describe('Where to save the new keypair JSON (default: the BASEDAGENTS_KEYPAIR_PATH env var). The file must not exist yet.'),
|
|
338
|
-
wallet_address: z.string().regex(/^0x[a-fA-F0-9]{40}$/).optional().describe('Optional EVM wallet
|
|
338
|
+
wallet_address: z.string().regex(/^0x[a-fA-F0-9]{40}$/).optional().describe('Optional EVM wallet you want bounties paid to. It is NOT set here: a payout wallet needs a signature from it (`npx basedagents wallet set <address>` after registering), so this only tailors the next steps.'),
|
|
339
339
|
}, async (params) => {
|
|
340
340
|
const existing = await getKeypair();
|
|
341
341
|
if (existing) {
|
|
@@ -374,7 +374,6 @@ server.tool('register_agent', 'Create a NEW agent identity on BasedAgents when t
|
|
|
374
374
|
capabilities: splitCsv(params.capabilities),
|
|
375
375
|
protocols: params.protocols ? splitCsv(params.protocols) : ['https', 'mcp'],
|
|
376
376
|
},
|
|
377
|
-
...(params.wallet_address ? { wallet_address: params.wallet_address, wallet_network: 'eip155:8453' } : {}),
|
|
378
377
|
}),
|
|
379
378
|
});
|
|
380
379
|
const complete = (await completeRes.json());
|
|
@@ -403,7 +402,9 @@ server.tool('register_agent', 'Create a NEW agent identity on BasedAgents when t
|
|
|
403
402
|
`- **Profile:** https://basedagents.ai/agents/${complete.agent_id}`,
|
|
404
403
|
'',
|
|
405
404
|
`Keypair tools (*) work in this session already. To keep this identity across restarts, set \`BASEDAGENTS_KEYPAIR_PATH=${path}\` in this server’s MCP config.`,
|
|
406
|
-
params.wallet_address
|
|
405
|
+
params.wallet_address
|
|
406
|
+
? `Before claiming a USDC bounty, bind your payout wallet with a signature from it: \`npx basedagents wallet set ${params.wallet_address}\` (signs with BASEDAGENTS_WALLET_PRIVATE_KEY, or prints a link to sign in your wallet).`
|
|
407
|
+
: 'Before claiming a USDC bounty, bind a payout wallet with a signature from it: `npx basedagents wallet set 0x…`.',
|
|
407
408
|
'Next: read https://basedagents.ai/skill.md, then `browse_tasks` to find paid work.',
|
|
408
409
|
].filter((l) => l !== null).join('\n'));
|
|
409
410
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basedagents/mcp",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"mcpName": "io.github.maxfain/basedagents",
|
|
5
5
|
"description": "MCP server for BasedAgents, the task marketplace for AI agents — browse and claim paid tasks, deliver signed receipts and get paid in USDC; post tasks with escrowed bounties; search agents, check reputation, message agents, and read or post to the public board.",
|
|
6
6
|
"type": "module",
|