@artyfacts/claude 1.3.13 ā 1.3.15
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-AYBVMTRQ.mjs +1023 -0
- package/dist/chunk-CSODKZR3.mjs +1005 -0
- package/dist/cli.js +20 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.js +19 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/mcp.ts +18 -1
package/dist/cli.js
CHANGED
|
@@ -909,7 +909,25 @@ var McpHandler = class {
|
|
|
909
909
|
throw new Error(`Failed to add ${platform} MCP: ${result.error}`);
|
|
910
910
|
}
|
|
911
911
|
console.log(`[MCP] Added ${serverName} \u2192 ${oauthServer.url}`);
|
|
912
|
-
console.log(`[MCP] OAuth
|
|
912
|
+
console.log(`[MCP] Triggering OAuth flow for ${platform}...`);
|
|
913
|
+
const oauthResult = (0, import_child_process2.spawnSync)("claude", [
|
|
914
|
+
"-p",
|
|
915
|
+
`List the available tools from the ${platform} MCP server`,
|
|
916
|
+
"--allowedTools",
|
|
917
|
+
`mcp__${serverName}__*`,
|
|
918
|
+
"--max-budget-usd",
|
|
919
|
+
"0.01"
|
|
920
|
+
], {
|
|
921
|
+
encoding: "utf-8",
|
|
922
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
923
|
+
timeout: 6e4
|
|
924
|
+
// 60 second timeout for OAuth
|
|
925
|
+
});
|
|
926
|
+
if (oauthResult.status === 0) {
|
|
927
|
+
console.log(`[MCP] OAuth completed for ${platform}`);
|
|
928
|
+
} else {
|
|
929
|
+
console.log(`[MCP] OAuth may still be pending - use ${platform} tools to complete login`);
|
|
930
|
+
}
|
|
913
931
|
} else {
|
|
914
932
|
const configBuilder = CREDENTIAL_MCP_CONFIGS[platform];
|
|
915
933
|
if (!configBuilder) {
|
|
@@ -1293,7 +1311,7 @@ async function runAgent(options) {
|
|
|
1293
1311
|
onConfigured: (connectionId, platform) => {
|
|
1294
1312
|
console.log(`
|
|
1295
1313
|
\u{1F527} [MCP] Configured ${platform} connection: ${connectionId}`);
|
|
1296
|
-
console.log(" \u{1F4A1} Try using the tools now - OAuth
|
|
1314
|
+
console.log(" \u{1F4A1} Try using the tools now - OAuth prompts once on first use");
|
|
1297
1315
|
},
|
|
1298
1316
|
onError: (error, connectionId) => {
|
|
1299
1317
|
console.error(`
|
package/dist/cli.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
getCredentials,
|
|
8
8
|
loadCredentials,
|
|
9
9
|
promptForApiKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AYBVMTRQ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli.ts
|
|
13
13
|
import { Command } from "commander";
|
|
@@ -287,7 +287,7 @@ async function runAgent(options) {
|
|
|
287
287
|
onConfigured: (connectionId, platform) => {
|
|
288
288
|
console.log(`
|
|
289
289
|
\u{1F527} [MCP] Configured ${platform} connection: ${connectionId}`);
|
|
290
|
-
console.log(" \u{1F4A1} Try using the tools now - OAuth
|
|
290
|
+
console.log(" \u{1F4A1} Try using the tools now - OAuth prompts once on first use");
|
|
291
291
|
},
|
|
292
292
|
onError: (error, connectionId) => {
|
|
293
293
|
console.error(`
|
package/dist/index.js
CHANGED
|
@@ -6102,7 +6102,25 @@ var McpHandler = class {
|
|
|
6102
6102
|
throw new Error(`Failed to add ${platform} MCP: ${result.error}`);
|
|
6103
6103
|
}
|
|
6104
6104
|
console.log(`[MCP] Added ${serverName} \u2192 ${oauthServer.url}`);
|
|
6105
|
-
console.log(`[MCP] OAuth
|
|
6105
|
+
console.log(`[MCP] Triggering OAuth flow for ${platform}...`);
|
|
6106
|
+
const oauthResult = (0, import_child_process2.spawnSync)("claude", [
|
|
6107
|
+
"-p",
|
|
6108
|
+
`List the available tools from the ${platform} MCP server`,
|
|
6109
|
+
"--allowedTools",
|
|
6110
|
+
`mcp__${serverName}__*`,
|
|
6111
|
+
"--max-budget-usd",
|
|
6112
|
+
"0.01"
|
|
6113
|
+
], {
|
|
6114
|
+
encoding: "utf-8",
|
|
6115
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
6116
|
+
timeout: 6e4
|
|
6117
|
+
// 60 second timeout for OAuth
|
|
6118
|
+
});
|
|
6119
|
+
if (oauthResult.status === 0) {
|
|
6120
|
+
console.log(`[MCP] OAuth completed for ${platform}`);
|
|
6121
|
+
} else {
|
|
6122
|
+
console.log(`[MCP] OAuth may still be pending - use ${platform} tools to complete login`);
|
|
6123
|
+
}
|
|
6106
6124
|
} else {
|
|
6107
6125
|
const configBuilder = CREDENTIAL_MCP_CONFIGS[platform];
|
|
6108
6126
|
if (!configBuilder) {
|
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-AYBVMTRQ.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/cli.ts
CHANGED
|
@@ -438,7 +438,7 @@ async function runAgent(options: {
|
|
|
438
438
|
baseUrl: options.baseUrl,
|
|
439
439
|
onConfigured: (connectionId, platform) => {
|
|
440
440
|
console.log(`\nš§ [MCP] Configured ${platform} connection: ${connectionId}`);
|
|
441
|
-
console.log(' š” Try using the tools now - OAuth
|
|
441
|
+
console.log(' š” Try using the tools now - OAuth prompts once on first use');
|
|
442
442
|
},
|
|
443
443
|
onError: (error, connectionId) => {
|
|
444
444
|
console.error(`\nā [MCP] Failed to configure connection ${connectionId}:`, error.message);
|
package/src/mcp.ts
CHANGED
|
@@ -186,7 +186,24 @@ export class McpHandler {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
console.log(`[MCP] Added ${serverName} ā ${oauthServer.url}`);
|
|
189
|
-
|
|
189
|
+
|
|
190
|
+
// Trigger OAuth immediately by making Claude use the MCP server
|
|
191
|
+
console.log(`[MCP] Triggering OAuth flow for ${platform}...`);
|
|
192
|
+
const oauthResult = spawnSync('claude', [
|
|
193
|
+
'-p', `List the available tools from the ${platform} MCP server`,
|
|
194
|
+
'--allowedTools', `mcp__${serverName}__*`,
|
|
195
|
+
'--max-budget-usd', '0.01',
|
|
196
|
+
], {
|
|
197
|
+
encoding: 'utf-8',
|
|
198
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
199
|
+
timeout: 60000, // 60 second timeout for OAuth
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
if (oauthResult.status === 0) {
|
|
203
|
+
console.log(`[MCP] OAuth completed for ${platform}`);
|
|
204
|
+
} else {
|
|
205
|
+
console.log(`[MCP] OAuth may still be pending - use ${platform} tools to complete login`);
|
|
206
|
+
}
|
|
190
207
|
} else {
|
|
191
208
|
// Command-based MCP server - needs credentials
|
|
192
209
|
const configBuilder = CREDENTIAL_MCP_CONFIGS[platform];
|