@roomi-fields/notebooklm-mcp 1.5.3 → 1.5.7
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/LICENSE +22 -22
- package/README.md +219 -203
- package/deployment/INDEX.md +0 -0
- package/deployment/PACKAGE-FILES.txt +180 -180
- package/deployment/QUICK-START.md +0 -0
- package/deployment/docs/01-INSTALL.md +0 -0
- package/deployment/docs/02-CONFIGURATION.md +0 -0
- package/deployment/docs/03-API.md +99 -13
- package/deployment/docs/04-N8N-INTEGRATION.md +0 -0
- package/deployment/docs/05-TROUBLESHOOTING.md +0 -0
- package/deployment/docs/06-NOTEBOOK-LIBRARY.md +0 -0
- package/deployment/docs/07-AUTO-DISCOVERY.md +0 -0
- package/deployment/docs/08-DOCKER.md +125 -55
- package/deployment/docs/08-WSL-USAGE.md +0 -0
- package/deployment/docs/09-MULTI-INTERFACE.md +0 -0
- package/deployment/docs/10-CONTENT-MANAGEMENT.md +0 -0
- package/deployment/docs/11-MULTI-ACCOUNT.md +0 -0
- package/deployment/docs/README.md +9 -2
- package/deployment/scripts/README.md +0 -0
- package/deployment/scripts/install.ps1 +114 -114
- package/deployment/scripts/setup-auth.ps1 +217 -217
- package/deployment/scripts/start-server.ps1 +72 -72
- package/deployment/scripts/stop-server.ps1 +51 -51
- package/deployment/scripts/test-api.ps1 +651 -651
- package/deployment/scripts/test-auth.ps1 +0 -0
- package/deployment/scripts/test-auto-discovery.ps1 +295 -295
- package/deployment/scripts/test-cors.ps1 +398 -398
- package/deployment/scripts/test-errors.ps1 +581 -581
- package/deployment/scripts/test-server.ps1 +140 -140
- package/deployment/scripts/test-sessions.ps1 +426 -426
- package/deployment/scripts/test-validation.ps1 +299 -299
- package/dist/accounts/account-manager.d.ts +15 -0
- package/dist/accounts/account-manager.d.ts.map +1 -1
- package/dist/accounts/account-manager.js +104 -0
- package/dist/accounts/account-manager.js.map +1 -1
- package/dist/accounts/auto-login-manager.d.ts +0 -0
- package/dist/accounts/auto-login-manager.d.ts.map +1 -1
- package/dist/accounts/auto-login-manager.js +29 -25
- package/dist/accounts/auto-login-manager.js.map +1 -1
- package/dist/accounts/crypto.d.ts +0 -0
- package/dist/accounts/crypto.d.ts.map +0 -0
- package/dist/accounts/crypto.js +0 -0
- package/dist/accounts/crypto.js.map +0 -0
- package/dist/accounts/index.d.ts +0 -0
- package/dist/accounts/index.d.ts.map +0 -0
- package/dist/accounts/index.js +0 -0
- package/dist/accounts/index.js.map +0 -0
- package/dist/accounts/types.d.ts +0 -0
- package/dist/accounts/types.d.ts.map +0 -0
- package/dist/accounts/types.js +0 -0
- package/dist/accounts/types.js.map +0 -0
- package/dist/auth/auth-manager.d.ts +1 -1
- package/dist/auth/auth-manager.d.ts.map +1 -1
- package/dist/auth/auth-manager.js +14 -9
- package/dist/auth/auth-manager.js.map +1 -1
- package/dist/auto-discovery/auto-discovery.d.ts +0 -0
- package/dist/auto-discovery/auto-discovery.d.ts.map +0 -0
- package/dist/auto-discovery/auto-discovery.js +0 -0
- package/dist/auto-discovery/auto-discovery.js.map +0 -0
- package/dist/cli/accounts.d.ts +0 -0
- package/dist/cli/accounts.d.ts.map +0 -0
- package/dist/cli/accounts.js +0 -0
- package/dist/cli/accounts.js.map +0 -0
- package/dist/cli/de-auth.d.ts +0 -0
- package/dist/cli/de-auth.d.ts.map +0 -0
- package/dist/cli/de-auth.js +0 -0
- package/dist/cli/de-auth.js.map +0 -0
- package/dist/cli/help.d.ts +0 -0
- package/dist/cli/help.d.ts.map +0 -0
- package/dist/cli/help.js +0 -0
- package/dist/cli/help.js.map +0 -0
- package/dist/cli/setup-auth.d.ts +0 -0
- package/dist/cli/setup-auth.d.ts.map +0 -0
- package/dist/cli/setup-auth.js +18 -10
- package/dist/cli/setup-auth.js.map +1 -1
- package/dist/config.d.ts +0 -0
- package/dist/config.d.ts.map +0 -0
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/content/content-generator.d.ts +0 -0
- package/dist/content/content-generator.d.ts.map +0 -0
- package/dist/content/content-generator.js +0 -0
- package/dist/content/content-generator.js.map +0 -0
- package/dist/content/content-manager.d.ts +0 -0
- package/dist/content/content-manager.d.ts.map +0 -0
- package/dist/content/content-manager.js +0 -0
- package/dist/content/content-manager.js.map +0 -0
- package/dist/content/content-templates.d.ts +0 -0
- package/dist/content/content-templates.d.ts.map +0 -0
- package/dist/content/content-templates.js +0 -0
- package/dist/content/content-templates.js.map +0 -0
- package/dist/content/index.d.ts +0 -0
- package/dist/content/index.d.ts.map +0 -0
- package/dist/content/index.js +0 -0
- package/dist/content/index.js.map +0 -0
- package/dist/content/types.d.ts +0 -0
- package/dist/content/types.d.ts.map +0 -0
- package/dist/content/types.js +0 -0
- package/dist/content/types.js.map +0 -0
- package/dist/errors.d.ts +0 -0
- package/dist/errors.d.ts.map +0 -0
- package/dist/errors.js +0 -0
- package/dist/errors.js.map +0 -0
- package/dist/http-wrapper.d.ts +0 -0
- package/dist/http-wrapper.d.ts.map +1 -1
- package/dist/http-wrapper.js +245 -6
- package/dist/http-wrapper.js.map +1 -1
- package/dist/i18n/en.json +0 -0
- package/dist/i18n/fr.json +0 -0
- package/dist/i18n/index.d.ts +0 -0
- package/dist/i18n/index.d.ts.map +0 -0
- package/dist/i18n/index.js +0 -0
- package/dist/i18n/index.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/library/notebook-library.d.ts +0 -0
- package/dist/library/notebook-library.d.ts.map +0 -0
- package/dist/library/notebook-library.js +0 -0
- package/dist/library/notebook-library.js.map +0 -0
- package/dist/library/types.d.ts +0 -0
- package/dist/library/types.d.ts.map +0 -0
- package/dist/library/types.js +0 -0
- package/dist/library/types.js.map +0 -0
- package/dist/session/browser-session.d.ts +0 -0
- package/dist/session/browser-session.d.ts.map +1 -1
- package/dist/session/browser-session.js +215 -91
- package/dist/session/browser-session.js.map +1 -1
- package/dist/session/session-manager.d.ts +0 -0
- package/dist/session/session-manager.d.ts.map +0 -0
- package/dist/session/session-manager.js +0 -0
- package/dist/session/session-manager.js.map +0 -0
- package/dist/session/shared-context-manager.d.ts +0 -0
- package/dist/session/shared-context-manager.d.ts.map +1 -1
- package/dist/session/shared-context-manager.js +22 -2
- package/dist/session/shared-context-manager.js.map +1 -1
- package/dist/startup/startup-manager.d.ts +8 -0
- package/dist/startup/startup-manager.d.ts.map +1 -1
- package/dist/startup/startup-manager.js +176 -28
- package/dist/startup/startup-manager.js.map +1 -1
- package/dist/stdio-http-proxy.d.ts +0 -0
- package/dist/stdio-http-proxy.d.ts.map +0 -0
- package/dist/stdio-http-proxy.js +91 -16
- package/dist/stdio-http-proxy.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +52 -32
- package/dist/tools/index.js.map +1 -1
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +0 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/dist/utils/citation-extractor.d.ts +6 -7
- package/dist/utils/citation-extractor.d.ts.map +1 -1
- package/dist/utils/citation-extractor.js +138 -303
- package/dist/utils/citation-extractor.js.map +1 -1
- package/dist/utils/cleanup-manager.d.ts +0 -0
- package/dist/utils/cleanup-manager.d.ts.map +0 -0
- package/dist/utils/cleanup-manager.js +0 -0
- package/dist/utils/cleanup-manager.js.map +0 -0
- package/dist/utils/logger.d.ts +0 -0
- package/dist/utils/logger.d.ts.map +0 -0
- package/dist/utils/logger.js +0 -0
- package/dist/utils/logger.js.map +0 -0
- package/dist/utils/page-utils.d.ts +0 -0
- package/dist/utils/page-utils.d.ts.map +1 -1
- package/dist/utils/page-utils.js +12 -13
- package/dist/utils/page-utils.js.map +1 -1
- package/dist/utils/stealth-utils.d.ts +0 -0
- package/dist/utils/stealth-utils.d.ts.map +0 -0
- package/dist/utils/stealth-utils.js +0 -0
- package/dist/utils/stealth-utils.js.map +0 -0
- package/docs/ADDING_A_LANGUAGE.md +0 -0
- package/docs/ARCHITECTURE_MIGRATION_STUDY.md +0 -0
- package/docs/CHROME_PROFILE_LIMITATION.md +0 -0
- package/docs/MULTI_ACCOUNT_SYSTEM.md +0 -0
- package/docs/archive/auto-discovery-complet.md +906 -0
- package/package.json +4 -2
- package/scripts/add-totp.ts +110 -0
- package/scripts/archive/add-and-activate-notebook.ps1 +0 -0
- package/scripts/archive/add-new-notebook.ps1 +0 -0
- package/scripts/archive/add-rom1pey.ps1 +0 -0
- package/scripts/archive/add-rpmonster.ps1 +0 -0
- package/scripts/archive/add-source-debug.ps1 +0 -0
- package/scripts/archive/add-source-e2e.ps1 +0 -0
- package/scripts/archive/add-source-visible.ps1 +0 -0
- package/scripts/archive/add-test-notebook.ps1 +0 -0
- package/scripts/archive/add-test-source.ps1 +0 -0
- package/scripts/archive/capture-screen.ps1 +0 -0
- package/scripts/archive/change-language.mjs +0 -0
- package/scripts/archive/change-language.ts +0 -0
- package/scripts/archive/check-account.ps1 +0 -0
- package/scripts/archive/check-notebook-2.ps1 +0 -0
- package/scripts/archive/check-test-notebook.ps1 +0 -0
- package/scripts/archive/create-notebook-auto.ps1 +0 -0
- package/scripts/archive/create-notebook.ps1 +0 -0
- package/scripts/archive/create-rom1pey-notebook.ps1 +0 -0
- package/scripts/archive/create-rom1pey.ps1 +0 -0
- package/scripts/archive/create-test-notebook-fresh.ps1 +0 -0
- package/scripts/archive/create-test-notebook.ps1 +0 -0
- package/scripts/archive/debug-add-source-auto.ps1 +0 -0
- package/scripts/archive/debug-add-source.ps1 +0 -0
- package/scripts/archive/debug-add-text-source.ps1 +0 -0
- package/scripts/archive/debug-home.ps1 +0 -0
- package/scripts/archive/debug-selectors.ps1 +0 -0
- package/scripts/archive/debug-sources-panel.ps1 +0 -0
- package/scripts/archive/debug-ui.ps1 +0 -0
- package/scripts/archive/discover-home.ps1 +0 -0
- package/scripts/archive/kill-automation-chrome.ps1 +0 -0
- package/scripts/archive/list-my-notebooks.ps1 +0 -0
- package/scripts/archive/navigate-home-visible.ps1 +0 -0
- package/scripts/archive/navigate-home.ps1 +0 -0
- package/scripts/archive/run-e2e-english.ps1 +0 -0
- package/scripts/archive/run-e2e-rom1pey-v2.ps1 +0 -0
- package/scripts/archive/run-e2e-rom1pey.ps1 +0 -0
- package/scripts/archive/setup-english-test.ps1 +0 -0
- package/scripts/archive/setup-test-notebook.ps1 +0 -0
- package/scripts/archive/simple-add-source.ps1 +0 -0
- package/scripts/archive/t10.ps1 +0 -0
- package/scripts/archive/t20.ps1 +0 -0
- package/scripts/archive/t30.ps1 +0 -0
- package/scripts/archive/t31.ps1 +0 -0
- package/scripts/archive/t32.ps1 +0 -0
- package/scripts/archive/t39.ps1 +0 -0
- package/scripts/archive/t40.ps1 +0 -0
- package/scripts/archive/t53.ps1 +0 -0
- package/scripts/archive/t54.ps1 +0 -0
- package/scripts/archive/t55.ps1 +0 -0
- package/scripts/archive/t9.ps1 +0 -0
- package/scripts/archive/test-access.ps1 +0 -0
- package/scripts/archive/test-add-delete-source.ps1 +0 -0
- package/scripts/archive/test-add-source-visible.ps1 +0 -0
- package/scripts/archive/test-add-source.ps1 +0 -0
- package/scripts/archive/test-add-text-debug.ps1 +0 -0
- package/scripts/archive/test-add-text-source.ps1 +0 -0
- package/scripts/archive/test-add-url-source.ps1 +0 -0
- package/scripts/archive/test-ask-ascii.ps1 +0 -0
- package/scripts/archive/test-ask-cnv.ps1 +0 -0
- package/scripts/archive/test-ask-headed.ps1 +0 -0
- package/scripts/archive/test-ask-ifs.ps1 +0 -0
- package/scripts/archive/test-ask-now.ps1 +0 -0
- package/scripts/archive/test-ask-real.ps1 +0 -0
- package/scripts/archive/test-ask-visible.ps1 +0 -0
- package/scripts/archive/test-create-notebook.ps1 +0 -0
- package/scripts/archive/test-create-then-add.ps1 +0 -0
- package/scripts/archive/test-delete-source.ps1 +0 -0
- package/scripts/archive/test-e2e-notebook.ps1 +0 -0
- package/scripts/archive/test-english-notebook.ps1 +0 -0
- package/scripts/archive/test-english.ps1 +0 -0
- package/scripts/archive/test-full-custom-instructions.ps1 +0 -0
- package/scripts/archive/test-full-infographic.ps1 +0 -0
- package/scripts/archive/test-full-language.ps1 +0 -0
- package/scripts/archive/test-full-presentation.ps1 +0 -0
- package/scripts/archive/test-full-report.ps1 +0 -0
- package/scripts/archive/test-full-source-selection.ps1 +0 -0
- package/scripts/archive/test-full-video-brief.ps1 +0 -0
- package/scripts/archive/test-full-video-explainer.ps1 +0 -0
- package/scripts/archive/test-full-video-styles.ps1 +0 -0
- package/scripts/archive/test-generate-report.ps1 +0 -0
- package/scripts/archive/test-generate-study-guide.ps1 +0 -0
- package/scripts/archive/test-headed-ask.ps1 +0 -0
- package/scripts/archive/test-headed-now.ps1 +0 -0
- package/scripts/archive/test-headed.ps1 +0 -0
- package/scripts/archive/test-hello.ps1 +0 -0
- package/scripts/archive/test-i18n-studio.ps1 +0 -0
- package/scripts/archive/test-i18n.ps1 +0 -0
- package/scripts/archive/test-manual-headed.ps1 +0 -0
- package/scripts/archive/test-mathieu-quota.ps1 +0 -0
- package/scripts/archive/test-notebook-1.ps1 +0 -0
- package/scripts/archive/test-notebook-2-sources.ps1 +0 -0
- package/scripts/archive/test-notebook1.ps1 +0 -0
- package/scripts/archive/test-personal-notebook.ps1 +0 -0
- package/scripts/archive/test-rate-limit.ps1 +0 -0
- package/scripts/archive/test-real-ask.ps1 +0 -0
- package/scripts/archive/test-real-ask2.ps1 +0 -0
- package/scripts/archive/test-rom1pey.ps1 +0 -0
- package/scripts/archive/test-rotation-complete.ps1 +0 -0
- package/scripts/archive/test-rotation.ps1 +0 -0
- package/scripts/archive/test-show-browser.ps1 +0 -0
- package/scripts/archive/test-update-notebook.ps1 +0 -0
- package/scripts/archive/verify-language-slow.ps1 +0 -0
- package/scripts/archive/verify-language.ps1 +0 -0
- package/scripts/check-server.ps1 +0 -0
- package/scripts/docker-entrypoint.sh +25 -29
- package/scripts/mcp-proxy-hidden.ps1 +31 -0
- package/scripts/mcp-wsl-helper.sh +146 -146
- package/scripts/start-server-hidden.vbs +13 -0
- package/scripts/start-server.ps1 +0 -0
- package/scripts/start-vnc.sh +0 -0
- package/scripts/stop-server.bat +5 -0
- package/scripts/stop-server.ps1 +0 -0
- package/scripts/switch-account-language.sh +0 -0
- package/scripts/test-account.ps1 +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomi-fields/notebooklm-mcp",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
|
+
"mcpName": "io.github.roomi-fields/notebooklm-mcp",
|
|
4
5
|
"description": "MCP server for NotebookLM API with HTTP REST API - Zero hallucinations from your notebooks",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"bin": {
|
|
@@ -44,7 +45,8 @@
|
|
|
44
45
|
],
|
|
45
46
|
"author": "Romain Peyrichou (https://github.com/roomi-fields)",
|
|
46
47
|
"contributors": [
|
|
47
|
-
"Gérôme Dexheimer <hello@geromedexheimer.de> (https://github.com/PleasePrompto)"
|
|
48
|
+
"Gérôme Dexheimer <hello@geromedexheimer.de> (https://github.com/PleasePrompto)",
|
|
49
|
+
"Julien Cantoni (https://github.com/JulienCANTONI)"
|
|
48
50
|
],
|
|
49
51
|
"license": "MIT",
|
|
50
52
|
"repository": {
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/usr/bin/env npx tsx
|
|
2
|
+
/**
|
|
3
|
+
* Add TOTP Secret to Existing Account
|
|
4
|
+
*
|
|
5
|
+
* Usage: npx tsx scripts/add-totp.ts <account-id> <totp-secret>
|
|
6
|
+
*
|
|
7
|
+
* Example: npx tsx scripts/add-totp.ts account-1766565732376 JBSWY3DPEHPK3PXP
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import fs from 'fs/promises';
|
|
11
|
+
import { existsSync } from 'fs';
|
|
12
|
+
import path from 'path';
|
|
13
|
+
import { CONFIG } from '../src/config.js';
|
|
14
|
+
import { encrypt } from '../src/accounts/crypto.js';
|
|
15
|
+
|
|
16
|
+
interface EncryptedCredentials {
|
|
17
|
+
emailEncrypted: string;
|
|
18
|
+
passwordEncrypted: string;
|
|
19
|
+
totpSecretEncrypted?: string;
|
|
20
|
+
encryptedAt: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface AccountConfig {
|
|
24
|
+
id: string;
|
|
25
|
+
email: string;
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
priority: number;
|
|
28
|
+
hasCredentials: boolean;
|
|
29
|
+
hasTotp: boolean;
|
|
30
|
+
createdAt: string;
|
|
31
|
+
notes?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface AccountsConfig {
|
|
35
|
+
accounts: AccountConfig[];
|
|
36
|
+
rotationStrategy: string;
|
|
37
|
+
keepAliveIntervalHours: number;
|
|
38
|
+
autoLoginEnabled: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
async function main() {
|
|
42
|
+
const args = process.argv.slice(2);
|
|
43
|
+
|
|
44
|
+
if (args.length < 2) {
|
|
45
|
+
console.log('Usage: npx tsx scripts/add-totp.ts <account-id> <totp-secret>');
|
|
46
|
+
console.log('');
|
|
47
|
+
console.log('Example:');
|
|
48
|
+
console.log(' npx tsx scripts/add-totp.ts account-1766565732376 JBSWY3DPEHPK3PXP');
|
|
49
|
+
process.exit(1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const [accountId, totpSecret] = args;
|
|
53
|
+
|
|
54
|
+
console.log(`\n🔐 Adding TOTP secret to account: ${accountId}\n`);
|
|
55
|
+
|
|
56
|
+
// Validate TOTP secret format (base32)
|
|
57
|
+
const base32Regex = /^[A-Z2-7]+=*$/i;
|
|
58
|
+
const cleanSecret = totpSecret.replace(/\s/g, '').toUpperCase();
|
|
59
|
+
|
|
60
|
+
if (!base32Regex.test(cleanSecret)) {
|
|
61
|
+
console.error('❌ Invalid TOTP secret format. Expected base32 string (A-Z, 2-7)');
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Check account exists
|
|
66
|
+
const accountDir = path.join(CONFIG.dataDir, 'accounts', accountId);
|
|
67
|
+
const credentialsPath = path.join(accountDir, 'credentials.enc.json');
|
|
68
|
+
const configPath = path.join(CONFIG.dataDir, 'accounts.json');
|
|
69
|
+
|
|
70
|
+
if (!existsSync(credentialsPath)) {
|
|
71
|
+
console.error(`❌ Account not found: ${accountId}`);
|
|
72
|
+
console.error(` Expected credentials at: ${credentialsPath}`);
|
|
73
|
+
process.exit(1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Read existing credentials
|
|
77
|
+
const credentialsData = await fs.readFile(credentialsPath, 'utf-8');
|
|
78
|
+
const credentials: EncryptedCredentials = JSON.parse(credentialsData);
|
|
79
|
+
|
|
80
|
+
// Encrypt and add TOTP
|
|
81
|
+
console.log('🔒 Encrypting TOTP secret...');
|
|
82
|
+
credentials.totpSecretEncrypted = await encrypt(cleanSecret);
|
|
83
|
+
credentials.encryptedAt = new Date().toISOString();
|
|
84
|
+
|
|
85
|
+
// Save updated credentials
|
|
86
|
+
await fs.writeFile(credentialsPath, JSON.stringify(credentials, null, 2), { mode: 0o600 });
|
|
87
|
+
console.log('✅ Credentials updated');
|
|
88
|
+
|
|
89
|
+
// Update account config
|
|
90
|
+
if (existsSync(configPath)) {
|
|
91
|
+
const configData = await fs.readFile(configPath, 'utf-8');
|
|
92
|
+
const config: AccountsConfig = JSON.parse(configData);
|
|
93
|
+
|
|
94
|
+
const accountConfig = config.accounts.find(a => a.id === accountId);
|
|
95
|
+
if (accountConfig) {
|
|
96
|
+
accountConfig.hasTotp = true;
|
|
97
|
+
await fs.writeFile(configPath, JSON.stringify(config, null, 2));
|
|
98
|
+
console.log('✅ Account config updated (hasTotp: true)');
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
console.log('\n🎉 TOTP secret added successfully!');
|
|
103
|
+
console.log(' You can now test auto-login with:');
|
|
104
|
+
console.log(` npx tsx src/cli/accounts.ts test ${accountId} --show\n`);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
main().catch(error => {
|
|
108
|
+
console.error('❌ Error:', error);
|
|
109
|
+
process.exit(1);
|
|
110
|
+
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/scripts/archive/t10.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t20.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t30.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t31.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t32.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t39.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t40.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t53.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t54.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t55.ps1
CHANGED
|
File without changes
|
package/scripts/archive/t9.ps1
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/scripts/check-server.ps1
CHANGED
|
File without changes
|
|
@@ -1,29 +1,25 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Docker entrypoint for NotebookLM MCP Server
|
|
3
|
-
# Starts VNC services (for visual auth) and Node.js HTTP server
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
echo "==========================================="
|
|
8
|
-
echo "
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
echo "
|
|
17
|
-
|
|
18
|
-
echo ""
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
echo ""
|
|
27
|
-
|
|
28
|
-
# Start the Node.js server (foreground)
|
|
29
|
-
exec node dist/http-wrapper.js
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Docker entrypoint for NotebookLM MCP Server
|
|
3
|
+
# Starts VNC services (for visual auth) and Node.js HTTP server
|
|
4
|
+
set -e
|
|
5
|
+
echo "==========================================="
|
|
6
|
+
echo " NotebookLM MCP Server - Docker"
|
|
7
|
+
echo "==========================================="
|
|
8
|
+
echo ""
|
|
9
|
+
# Check if VNC should be started (default: yes in Docker)
|
|
10
|
+
ENABLE_VNC="${ENABLE_VNC:-true}"
|
|
11
|
+
if [ "$ENABLE_VNC" = "true" ]; then
|
|
12
|
+
echo "[Entrypoint] Starting VNC services..."
|
|
13
|
+
source /app/scripts/start-vnc.sh
|
|
14
|
+
echo ""
|
|
15
|
+
echo "[Entrypoint] VNC ready at: http://<host>:${NOVNC_PORT:-6080}/vnc.html"
|
|
16
|
+
echo ""
|
|
17
|
+
else
|
|
18
|
+
echo "[Entrypoint] VNC disabled (ENABLE_VNC=false)"
|
|
19
|
+
fi
|
|
20
|
+
# Render injecte automatiquement PORT, on l'utilise en priorité
|
|
21
|
+
export HTTP_PORT=${PORT:-${HTTP_PORT:-3000}}
|
|
22
|
+
echo "[Entrypoint] Starting Node.js HTTP server on port ${HTTP_PORT}..."
|
|
23
|
+
echo ""
|
|
24
|
+
# Start the Node.js server (foreground)
|
|
25
|
+
exec node dist/http-wrapper.js
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# MCP Proxy Launcher - Hidden Window
|
|
2
|
+
# Lance le stdio-http-proxy sans fenêtre visible
|
|
3
|
+
|
|
4
|
+
$scriptPath = Split-Path -Parent $PSScriptRoot
|
|
5
|
+
$proxyPath = Join-Path $scriptPath "dist\stdio-http-proxy.js"
|
|
6
|
+
|
|
7
|
+
$env:NBLM_HOST = "localhost"
|
|
8
|
+
$env:NBLM_PORT = "3000"
|
|
9
|
+
|
|
10
|
+
# Lance node avec la fenêtre cachée
|
|
11
|
+
$psi = New-Object System.Diagnostics.ProcessStartInfo
|
|
12
|
+
$psi.FileName = "node"
|
|
13
|
+
$psi.Arguments = $proxyPath
|
|
14
|
+
$psi.WorkingDirectory = $scriptPath
|
|
15
|
+
$psi.UseShellExecute = $false
|
|
16
|
+
$psi.RedirectStandardInput = $true
|
|
17
|
+
$psi.RedirectStandardOutput = $true
|
|
18
|
+
$psi.RedirectStandardError = $true
|
|
19
|
+
$psi.CreateNoWindow = $true
|
|
20
|
+
|
|
21
|
+
$process = [System.Diagnostics.Process]::Start($psi)
|
|
22
|
+
|
|
23
|
+
# Relay stdin/stdout pour le protocole MCP
|
|
24
|
+
$inputTask = [System.Threading.Tasks.Task]::Run({
|
|
25
|
+
param($proc)
|
|
26
|
+
try {
|
|
27
|
+
[Console]::OpenStandardInput().CopyTo($proc.StandardInput.BaseStream)
|
|
28
|
+
} catch {}
|
|
29
|
+
}, $process)
|
|
30
|
+
|
|
31
|
+
$process.StandardOutput.BaseStream.CopyTo([Console]::OpenStandardOutput())
|