@artyfacts/claude 1.3.21 → 1.3.23

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/cli.js CHANGED
@@ -918,25 +918,26 @@ var McpHandler = class {
918
918
  throw new Error(`Failed to add ${platform} MCP: ${result.error}`);
919
919
  }
920
920
  console.log(`[MCP] Added ${serverName} \u2192 ${oauthServer.url}`);
921
- console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
921
+ console.log(`[MCP] Starting ${platform} OAuth...`);
922
+ console.log(`[MCP] Claude will open - authenticate in browser, then type "done" to continue`);
923
+ console.log("");
922
924
  const oauthProcess = (0, import_child_process2.spawnSync)("claude", [
923
- "-p",
924
- `Run the mcp__${serverName}__authenticate tool now to start OAuth. Do not ask for confirmation, just run it.`,
925
925
  "--allowedTools",
926
926
  `mcp__${serverName}__*`,
927
927
  "--permission-mode",
928
- "bypassPermissions"
928
+ "bypassPermissions",
929
+ `Authenticate with ${serverName} MCP now. Call the authenticate tool immediately.`
929
930
  ], {
930
931
  encoding: "utf-8",
931
932
  stdio: "inherit",
932
- // Show output and allow browser interaction
933
- timeout: 12e4
934
- // 2 minute timeout for user to complete OAuth
933
+ // Interactive - user can see and respond
934
+ timeout: 3e5
935
+ // 5 minute timeout for OAuth
935
936
  });
936
937
  if (oauthProcess.status === 0) {
937
938
  console.log(`[MCP] ${platform} OAuth completed!`);
938
939
  } else {
939
- console.log(`[MCP] OAuth may need completion - try using ${platform} tools in Claude`);
940
+ console.log(`[MCP] OAuth session ended`);
940
941
  }
941
942
  } else {
942
943
  const configBuilder = CREDENTIAL_MCP_CONFIGS[platform];
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getCredentials,
8
8
  loadCredentials,
9
9
  promptForApiKey
10
- } from "./chunk-FU42UGDO.mjs";
10
+ } from "./chunk-OISOOGKZ.mjs";
11
11
 
12
12
  // src/cli.ts
13
13
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -6111,25 +6111,26 @@ var McpHandler = class {
6111
6111
  throw new Error(`Failed to add ${platform} MCP: ${result.error}`);
6112
6112
  }
6113
6113
  console.log(`[MCP] Added ${serverName} \u2192 ${oauthServer.url}`);
6114
- console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
6114
+ console.log(`[MCP] Starting ${platform} OAuth...`);
6115
+ console.log(`[MCP] Claude will open - authenticate in browser, then type "done" to continue`);
6116
+ console.log("");
6115
6117
  const oauthProcess = (0, import_child_process2.spawnSync)("claude", [
6116
- "-p",
6117
- `Run the mcp__${serverName}__authenticate tool now to start OAuth. Do not ask for confirmation, just run it.`,
6118
6118
  "--allowedTools",
6119
6119
  `mcp__${serverName}__*`,
6120
6120
  "--permission-mode",
6121
- "bypassPermissions"
6121
+ "bypassPermissions",
6122
+ `Authenticate with ${serverName} MCP now. Call the authenticate tool immediately.`
6122
6123
  ], {
6123
6124
  encoding: "utf-8",
6124
6125
  stdio: "inherit",
6125
- // Show output and allow browser interaction
6126
- timeout: 12e4
6127
- // 2 minute timeout for user to complete OAuth
6126
+ // Interactive - user can see and respond
6127
+ timeout: 3e5
6128
+ // 5 minute timeout for OAuth
6128
6129
  });
6129
6130
  if (oauthProcess.status === 0) {
6130
6131
  console.log(`[MCP] ${platform} OAuth completed!`);
6131
6132
  } else {
6132
- console.log(`[MCP] OAuth may need completion - try using ${platform} tools in Claude`);
6133
+ console.log(`[MCP] OAuth session ended`);
6133
6134
  }
6134
6135
  } else {
6135
6136
  const configBuilder = CREDENTIAL_MCP_CONFIGS[platform];
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  promptForApiKey,
15
15
  runDeviceAuth,
16
16
  saveCredentials
17
- } from "./chunk-FU42UGDO.mjs";
17
+ } from "./chunk-OISOOGKZ.mjs";
18
18
 
19
19
  // node_modules/@anthropic-ai/sdk/internal/tslib.mjs
20
20
  function __classPrivateFieldSet(receiver, state, value, kind, f) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artyfacts/claude",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "description": "Claude adapter for Artyfacts - Execute tasks using Claude Code CLI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/mcp.ts CHANGED
@@ -198,23 +198,26 @@ export class McpHandler {
198
198
 
199
199
  console.log(`[MCP] Added ${serverName} → ${oauthServer.url}`);
200
200
 
201
- // Trigger OAuth by telling Claude to run the authenticate tool
202
- console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
201
+ // Trigger OAuth interactively - Claude needs to stay running for callback
202
+ console.log(`[MCP] Starting ${platform} OAuth...`);
203
+ console.log(`[MCP] Claude will open - authenticate in browser, then type "done" to continue`);
204
+ console.log('');
205
+
206
+ // Run Claude interactively so it can receive the OAuth callback
203
207
  const oauthProcess = spawnSync('claude', [
204
- '-p',
205
- `Run the mcp__${serverName}__authenticate tool now to start OAuth. Do not ask for confirmation, just run it.`,
206
208
  '--allowedTools', `mcp__${serverName}__*`,
207
209
  '--permission-mode', 'bypassPermissions',
210
+ `Authenticate with ${serverName} MCP now. Call the authenticate tool immediately.`,
208
211
  ], {
209
212
  encoding: 'utf-8',
210
- stdio: 'inherit', // Show output and allow browser interaction
211
- timeout: 120000, // 2 minute timeout for user to complete OAuth
213
+ stdio: 'inherit', // Interactive - user can see and respond
214
+ timeout: 300000, // 5 minute timeout for OAuth
212
215
  });
213
216
 
214
217
  if (oauthProcess.status === 0) {
215
218
  console.log(`[MCP] ${platform} OAuth completed!`);
216
219
  } else {
217
- console.log(`[MCP] OAuth may need completion - try using ${platform} tools in Claude`);
220
+ console.log(`[MCP] OAuth session ended`);
218
221
  }
219
222
  } else {
220
223
  // Command-based MCP server - needs credentials