polydev-ai 1.2.5 → 1.2.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/mcp/package.json +1 -1
- package/mcp/stdio-wrapper.js +6 -4
- package/package.json +1 -1
package/mcp/package.json
CHANGED
package/mcp/stdio-wrapper.js
CHANGED
|
@@ -523,18 +523,20 @@ class StdioMCPWrapper {
|
|
|
523
523
|
console.error('[Stdio Wrapper] Updating CLI status in database...');
|
|
524
524
|
|
|
525
525
|
try {
|
|
526
|
-
// Get user token
|
|
526
|
+
// Get user token from environment variables
|
|
527
527
|
const userToken = process.env.POLYDEV_MCP_TOKEN || this.userToken;
|
|
528
|
-
const userId = process.env.POLYDEV_USER_ID;
|
|
529
528
|
|
|
530
|
-
|
|
529
|
+
if (!userToken) {
|
|
530
|
+
console.error('[Stdio Wrapper] No user token available for database updates');
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
|
|
531
534
|
console.error(`[Stdio Wrapper] Using token: ${userToken ? userToken.substring(0, 20) + '...' : 'MISSING'}`);
|
|
532
535
|
|
|
533
536
|
for (const [providerId, result] of Object.entries(results)) {
|
|
534
537
|
const statusData = {
|
|
535
538
|
provider: providerId,
|
|
536
539
|
status: result.available ? 'available' : 'unavailable',
|
|
537
|
-
user_id: userId,
|
|
538
540
|
mcp_token: userToken,
|
|
539
541
|
cli_version: result.version || null,
|
|
540
542
|
cli_path: result.cli_path || null,
|
package/package.json
CHANGED