@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/chunk-5H7VYMUX.mjs +1040 -0
- package/dist/chunk-OISOOGKZ.mjs +1034 -0
- package/dist/cli.js +9 -8
- package/dist/cli.mjs +1 -1
- package/dist/index.js +9 -8
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/mcp.ts +10 -7
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]
|
|
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
|
-
//
|
|
933
|
-
timeout:
|
|
934
|
-
//
|
|
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
|
|
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
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]
|
|
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
|
-
//
|
|
6126
|
-
timeout:
|
|
6127
|
-
//
|
|
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
|
|
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-
|
|
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
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
|
|
202
|
-
console.log(`[MCP]
|
|
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', //
|
|
211
|
-
timeout:
|
|
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
|
|
220
|
+
console.log(`[MCP] OAuth session ended`);
|
|
218
221
|
}
|
|
219
222
|
} else {
|
|
220
223
|
// Command-based MCP server - needs credentials
|