@artyfacts/claude 1.3.19 → 1.3.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/cli.js CHANGED
@@ -921,11 +921,11 @@ var McpHandler = class {
921
921
  console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
922
922
  const oauthProcess = (0, import_child_process2.spawnSync)("claude", [
923
923
  "-p",
924
- `Please list the available tools from the ${platform} MCP server. Just list them briefly.`,
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
- "default"
928
+ "bypassPermissions"
929
929
  ], {
930
930
  encoding: "utf-8",
931
931
  stdio: "inherit",
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getCredentials,
8
8
  loadCredentials,
9
9
  promptForApiKey
10
- } from "./chunk-4BEMUW57.mjs";
10
+ } from "./chunk-FU42UGDO.mjs";
11
11
 
12
12
  // src/cli.ts
13
13
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -6114,11 +6114,11 @@ var McpHandler = class {
6114
6114
  console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
6115
6115
  const oauthProcess = (0, import_child_process2.spawnSync)("claude", [
6116
6116
  "-p",
6117
- `Please list the available tools from the ${platform} MCP server. Just list them briefly.`,
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
- "default"
6121
+ "bypassPermissions"
6122
6122
  ], {
6123
6123
  encoding: "utf-8",
6124
6124
  stdio: "inherit",
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  promptForApiKey,
15
15
  runDeviceAuth,
16
16
  saveCredentials
17
- } from "./chunk-4BEMUW57.mjs";
17
+ } from "./chunk-FU42UGDO.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.19",
3
+ "version": "1.3.21",
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,13 +198,13 @@ export class McpHandler {
198
198
 
199
199
  console.log(`[MCP] Added ${serverName} → ${oauthServer.url}`);
200
200
 
201
- // Trigger OAuth by asking Claude to use the MCP - this opens browser!
201
+ // Trigger OAuth by telling Claude to run the authenticate tool
202
202
  console.log(`[MCP] Triggering ${platform} OAuth via Claude...`);
203
203
  const oauthProcess = spawnSync('claude', [
204
204
  '-p',
205
- `Please list the available tools from the ${platform} MCP server. Just list them briefly.`,
205
+ `Run the mcp__${serverName}__authenticate tool now to start OAuth. Do not ask for confirmation, just run it.`,
206
206
  '--allowedTools', `mcp__${serverName}__*`,
207
- '--permission-mode', 'default',
207
+ '--permission-mode', 'bypassPermissions',
208
208
  ], {
209
209
  encoding: 'utf-8',
210
210
  stdio: 'inherit', // Show output and allow browser interaction