clawlancer-mcp 0.1.5 → 0.1.6

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/bin/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  if (process.argv.includes('--help') || process.argv.includes('-h')) {
4
4
  console.log(`
5
- clawlancer-mcp v0.1.4
5
+ clawlancer-mcp v0.1.6
6
6
 
7
7
  MCP server for Clawlancer - let your AI agent earn money autonomously
8
8
 
@@ -40,7 +40,7 @@ More info: https://clawlancer.ai/api-docs
40
40
  }
41
41
 
42
42
  if (process.argv.includes('--version') || process.argv.includes('-v')) {
43
- console.log('clawlancer-mcp v0.1.4');
43
+ console.log('clawlancer-mcp v0.1.6');
44
44
  process.exit(0);
45
45
  }
46
46
 
@@ -51,6 +51,9 @@ const forceSetup = process.argv.includes('--setup');
51
51
  // setup instructions instead of silently blocking on stdin.
52
52
  if (forceSetup || process.stdin.isTTY) {
53
53
  const readline = require('readline');
54
+ const os = require('os');
55
+ const fs = require('fs');
56
+ const path = require('path');
54
57
  const BASE_URL = process.env.CLAWLANCER_BASE_URL || 'https://clawlancer.ai';
55
58
 
56
59
  const bold = (s) => `\x1b[1m${s}\x1b[0m`;
@@ -58,6 +61,7 @@ if (forceSetup || process.stdin.isTTY) {
58
61
  const green = (s) => `\x1b[32m${s}\x1b[0m`;
59
62
  const dim = (s) => `\x1b[2m${s}\x1b[0m`;
60
63
  const red = (s) => `\x1b[31m${s}\x1b[0m`;
64
+ const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
61
65
 
62
66
  console.log('');
63
67
  console.log(gold(' ╔═══════════════════════════════════════╗'));
@@ -104,6 +108,14 @@ if (forceSetup || process.stdin.isTTY) {
104
108
  });
105
109
  }
106
110
 
111
+ // Detect the user's shell rc file for persistent export instructions
112
+ function getShellRcFile() {
113
+ const shell = process.env.SHELL || '';
114
+ if (shell.includes('zsh')) return '~/.zshrc';
115
+ if (shell.includes('fish')) return '~/.config/fish/config.fish';
116
+ return '~/.bashrc';
117
+ }
118
+
107
119
  (async () => {
108
120
  try {
109
121
  const agentName = await ask(gold(' Agent name: '));
@@ -156,15 +168,22 @@ if (forceSetup || process.stdin.isTTY) {
156
168
  console.log(green(' ✓ Welcome bounty posted — your first task is waiting!'));
157
169
  }
158
170
  if (data.erc8004_status === 'pending') {
159
- console.log(green(' ✓ ERC-8004 on-chain identity minting...'));
171
+ console.log(green(' ✓ ERC-8004 on-chain identity queued (mints in ~30s)'));
172
+ } else if (data.erc8004_status === 'minted' || data.erc8004_tx) {
173
+ const txInfo = data.erc8004_tx ? ` — tx: ${data.erc8004_tx}` : '';
174
+ console.log(green(` ✓ ERC-8004 on-chain identity minted!${txInfo}`));
160
175
  }
161
176
  console.log('');
162
177
 
178
+ const rcFile = getShellRcFile();
179
+
163
180
  console.log(bold(' Next steps:'));
164
181
  console.log('');
165
- console.log(' 1. Export your API key:');
182
+ console.log(' 1. Export your API key (current session):');
166
183
  console.log(gold(` export CLAWLANCER_API_KEY="${data.api_key}"`));
167
184
  console.log('');
185
+ console.log(dim(` To make it permanent, add that line to ${rcFile}`));
186
+ console.log('');
168
187
  console.log(' 2. Add to Claude Desktop (claude_desktop_config.json):');
169
188
  console.log('');
170
189
  console.log(' {');
package/dist/index.js CHANGED
@@ -46,7 +46,7 @@ function requireAuth() {
46
46
  // --- Server ---
47
47
  const server = new mcp_js_1.McpServer({
48
48
  name: "clawlancer",
49
- version: "0.1.0",
49
+ version: "0.1.6",
50
50
  });
51
51
  // === IDENTITY TOOLS ===
52
52
  server.registerTool("register_agent", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawlancer-mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "MCP server for Clawlancer - let your AI agent earn money autonomously",
5
5
  "main": "dist/index.js",
6
6
  "bin": {