@roomi-fields/notebooklm-mcp 1.5.2 → 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 -201
- 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 +303 -0
- 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 +45 -28
- 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 +33 -13
- 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 +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +15 -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 +275 -7
- 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 +38 -5
- package/dist/session/shared-context-manager.js.map +1 -1
- package/dist/startup/startup-manager.d.ts +60 -0
- package/dist/startup/startup-manager.d.ts.map +1 -0
- package/dist/startup/startup-manager.js +468 -0
- package/dist/startup/startup-manager.js.map +1 -0
- 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 +55 -34
- 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 -0
- 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 +37 -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
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
# Files Required for NotebookLM MCP HTTP Server Deployment
|
|
2
|
-
# Version: 1.3.0
|
|
3
|
-
|
|
4
|
-
================================================================================
|
|
5
|
-
FILES TO COPY FROM MAIN PROJECT
|
|
6
|
-
================================================================================
|
|
7
|
-
|
|
8
|
-
## Root Files
|
|
9
|
-
/package.json
|
|
10
|
-
/package-lock.json
|
|
11
|
-
/tsconfig.json
|
|
12
|
-
/.gitignore
|
|
13
|
-
/LICENSE → MIT License (original project + HTTP wrapper)
|
|
14
|
-
/README.md → Project overview
|
|
15
|
-
/CHANGELOG.md → Version history
|
|
16
|
-
/CONTRIBUTING.md → Contribution guide
|
|
17
|
-
/CREDITS.md → Credits and acknowledgments
|
|
18
|
-
|
|
19
|
-
## Source Code (src/)
|
|
20
|
-
/src/**/*
|
|
21
|
-
|
|
22
|
-
src/ content details:
|
|
23
|
-
- /src/auth/ → Google authentication management
|
|
24
|
-
- /src/config.ts → Central configuration
|
|
25
|
-
- /src/errors.ts → Custom error classes
|
|
26
|
-
- /src/http-wrapper.ts → HTTP entry point (ESSENTIAL!)
|
|
27
|
-
- /src/index.ts → MCP stdio entry point
|
|
28
|
-
- /src/library/ → Notebook management
|
|
29
|
-
- /src/session/ → Browser session management
|
|
30
|
-
- /src/tools/ → MCP handlers
|
|
31
|
-
- /src/types.ts → TypeScript definitions
|
|
32
|
-
- /src/utils/ → Utilities (logger, cleanup, etc.)
|
|
33
|
-
|
|
34
|
-
## HTTP Deployment Documentation (deployment/)
|
|
35
|
-
/deployment/README.md → HTTP deployment guide
|
|
36
|
-
/deployment/QUICK-START.md → Quick start (5 min)
|
|
37
|
-
/deployment/INDEX.md → Navigation index
|
|
38
|
-
/deployment/PACKAGE-FILES.txt → This file
|
|
39
|
-
/deployment/docs/01-INSTALL.md
|
|
40
|
-
/deployment/docs/02-CONFIGURATION.md
|
|
41
|
-
/deployment/docs/03-API.md
|
|
42
|
-
/deployment/docs/04-N8N-INTEGRATION.md
|
|
43
|
-
/deployment/docs/05-TROUBLESHOOTING.md
|
|
44
|
-
/deployment/docs/06-NOTEBOOK-LIBRARY.md
|
|
45
|
-
/deployment/docs/07-AUTO-DISCOVERY.md
|
|
46
|
-
/deployment/scripts/install.ps1
|
|
47
|
-
/deployment/scripts/start-server.ps1
|
|
48
|
-
/deployment/scripts/stop-server.ps1
|
|
49
|
-
/deployment/scripts/test-server.ps1
|
|
50
|
-
|
|
51
|
-
================================================================================
|
|
52
|
-
FILES GENERATED AFTER INSTALLATION (DO NOT COPY)
|
|
53
|
-
================================================================================
|
|
54
|
-
|
|
55
|
-
These files will be created automatically by npm install and npm run build:
|
|
56
|
-
|
|
57
|
-
/node_modules/ → npm dependencies (DO NOT copy)
|
|
58
|
-
/dist/ → Compiled JavaScript code (generated by npm run build)
|
|
59
|
-
/Data/ → Persistent data (generated by setup-auth)
|
|
60
|
-
|
|
61
|
-
================================================================================
|
|
62
|
-
COMPLETE STRUCTURE AFTER DEPLOYMENT
|
|
63
|
-
================================================================================
|
|
64
|
-
|
|
65
|
-
D:\notebooklm-http\
|
|
66
|
-
├── package.json
|
|
67
|
-
├── package-lock.json
|
|
68
|
-
├── tsconfig.json
|
|
69
|
-
├── .gitignore
|
|
70
|
-
├── LICENSE
|
|
71
|
-
├── README.md
|
|
72
|
-
├── CHANGELOG.md
|
|
73
|
-
├── CONTRIBUTING.md
|
|
74
|
-
├── CREDITS.md
|
|
75
|
-
│
|
|
76
|
-
├── src\
|
|
77
|
-
│ ├── http-wrapper.ts
|
|
78
|
-
│ ├── index.ts
|
|
79
|
-
│ ├── config.ts
|
|
80
|
-
│ ├── errors.ts
|
|
81
|
-
│ ├── types.ts
|
|
82
|
-
│ ├── auth\
|
|
83
|
-
│ ├── library\
|
|
84
|
-
│ ├── session\
|
|
85
|
-
│ ├── tools\
|
|
86
|
-
│ └── utils\
|
|
87
|
-
│
|
|
88
|
-
├── deployment\
|
|
89
|
-
│ ├── README.md
|
|
90
|
-
│ ├── QUICK-START.md
|
|
91
|
-
│ ├── INDEX.md
|
|
92
|
-
│ ├── PACKAGE-FILES.txt
|
|
93
|
-
│ ├── docs\
|
|
94
|
-
│ │ ├── 01-INSTALL.md
|
|
95
|
-
│ │ ├── 02-CONFIGURATION.md
|
|
96
|
-
│ │ ├── 03-API.md
|
|
97
|
-
│ │ ├── 04-N8N-INTEGRATION.md
|
|
98
|
-
│ │ └── 05-TROUBLESHOOTING.md
|
|
99
|
-
│ └── scripts\
|
|
100
|
-
│ ├── install.ps1
|
|
101
|
-
│ ├── start-server.ps1
|
|
102
|
-
│ ├── stop-server.ps1
|
|
103
|
-
│ └── test-server.ps1
|
|
104
|
-
│
|
|
105
|
-
├── node_modules\ (created by npm install)
|
|
106
|
-
├── dist\ (created by npm run build)
|
|
107
|
-
└── Data\ (created by setup-auth)
|
|
108
|
-
├── chrome_profile\
|
|
109
|
-
├── browser_state\
|
|
110
|
-
└── library.json
|
|
111
|
-
|
|
112
|
-
================================================================================
|
|
113
|
-
COMMANDS TO CREATE A DEPLOYABLE PACKAGE
|
|
114
|
-
================================================================================
|
|
115
|
-
|
|
116
|
-
## Method 1: Manual Copy
|
|
117
|
-
```powershell
|
|
118
|
-
# Create a new folder
|
|
119
|
-
mkdir D:\notebooklm-http-deploy
|
|
120
|
-
|
|
121
|
-
# Copy required files
|
|
122
|
-
Copy-Item package.json D:\notebooklm-http-deploy\
|
|
123
|
-
Copy-Item package-lock.json D:\notebooklm-http-deploy\
|
|
124
|
-
Copy-Item tsconfig.json D:\notebooklm-http-deploy\
|
|
125
|
-
Copy-Item .gitignore D:\notebooklm-http-deploy\
|
|
126
|
-
Copy-Item -Recurse src D:\notebooklm-http-deploy\
|
|
127
|
-
Copy-Item -Recurse deployment D:\notebooklm-http-deploy\
|
|
128
|
-
|
|
129
|
-
# Go to the new folder
|
|
130
|
-
cd D:\notebooklm-http-deploy
|
|
131
|
-
|
|
132
|
-
# Installation
|
|
133
|
-
.\deployment\scripts\install.ps1
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
## Method 2: ZIP Archive (Recommended for Distribution)
|
|
137
|
-
```powershell
|
|
138
|
-
# Create a clean archive
|
|
139
|
-
$files = @(
|
|
140
|
-
"package.json",
|
|
141
|
-
"package-lock.json",
|
|
142
|
-
"tsconfig.json",
|
|
143
|
-
".gitignore",
|
|
144
|
-
"src",
|
|
145
|
-
"deployment"
|
|
146
|
-
)
|
|
147
|
-
|
|
148
|
-
Compress-Archive -Path $files -DestinationPath notebooklm-http-v1.3.0.zip
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
## Method 3: Git Clone
|
|
152
|
-
```powershell
|
|
153
|
-
git clone <repo-url> D:\notebooklm-http
|
|
154
|
-
cd D:\notebooklm-http
|
|
155
|
-
.\deployment\scripts\install.ps1
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
================================================================================
|
|
159
|
-
APPROXIMATE SIZE
|
|
160
|
-
================================================================================
|
|
161
|
-
|
|
162
|
-
Source files + config: ~2 MB
|
|
163
|
-
node_modules/: ~150 MB
|
|
164
|
-
dist/: ~3 MB
|
|
165
|
-
Data/ (after auth): ~100 MB
|
|
166
|
-
|
|
167
|
-
TOTAL after installation: ~255 MB
|
|
168
|
-
|
|
169
|
-
================================================================================
|
|
170
|
-
SENSITIVE FILES (NEVER COMMIT)
|
|
171
|
-
================================================================================
|
|
172
|
-
|
|
173
|
-
/Data/chrome_profile/ → Contains Google cookies
|
|
174
|
-
/Data/browser_state/state.json → Contains Google session
|
|
175
|
-
.env → Environment variables (if used)
|
|
176
|
-
node_modules/ → Dependencies (regenerable)
|
|
177
|
-
|
|
178
|
-
These files are already in .gitignore
|
|
179
|
-
|
|
180
|
-
================================================================================
|
|
1
|
+
# Files Required for NotebookLM MCP HTTP Server Deployment
|
|
2
|
+
# Version: 1.3.0
|
|
3
|
+
|
|
4
|
+
================================================================================
|
|
5
|
+
FILES TO COPY FROM MAIN PROJECT
|
|
6
|
+
================================================================================
|
|
7
|
+
|
|
8
|
+
## Root Files
|
|
9
|
+
/package.json
|
|
10
|
+
/package-lock.json
|
|
11
|
+
/tsconfig.json
|
|
12
|
+
/.gitignore
|
|
13
|
+
/LICENSE → MIT License (original project + HTTP wrapper)
|
|
14
|
+
/README.md → Project overview
|
|
15
|
+
/CHANGELOG.md → Version history
|
|
16
|
+
/CONTRIBUTING.md → Contribution guide
|
|
17
|
+
/CREDITS.md → Credits and acknowledgments
|
|
18
|
+
|
|
19
|
+
## Source Code (src/)
|
|
20
|
+
/src/**/*
|
|
21
|
+
|
|
22
|
+
src/ content details:
|
|
23
|
+
- /src/auth/ → Google authentication management
|
|
24
|
+
- /src/config.ts → Central configuration
|
|
25
|
+
- /src/errors.ts → Custom error classes
|
|
26
|
+
- /src/http-wrapper.ts → HTTP entry point (ESSENTIAL!)
|
|
27
|
+
- /src/index.ts → MCP stdio entry point
|
|
28
|
+
- /src/library/ → Notebook management
|
|
29
|
+
- /src/session/ → Browser session management
|
|
30
|
+
- /src/tools/ → MCP handlers
|
|
31
|
+
- /src/types.ts → TypeScript definitions
|
|
32
|
+
- /src/utils/ → Utilities (logger, cleanup, etc.)
|
|
33
|
+
|
|
34
|
+
## HTTP Deployment Documentation (deployment/)
|
|
35
|
+
/deployment/README.md → HTTP deployment guide
|
|
36
|
+
/deployment/QUICK-START.md → Quick start (5 min)
|
|
37
|
+
/deployment/INDEX.md → Navigation index
|
|
38
|
+
/deployment/PACKAGE-FILES.txt → This file
|
|
39
|
+
/deployment/docs/01-INSTALL.md
|
|
40
|
+
/deployment/docs/02-CONFIGURATION.md
|
|
41
|
+
/deployment/docs/03-API.md
|
|
42
|
+
/deployment/docs/04-N8N-INTEGRATION.md
|
|
43
|
+
/deployment/docs/05-TROUBLESHOOTING.md
|
|
44
|
+
/deployment/docs/06-NOTEBOOK-LIBRARY.md
|
|
45
|
+
/deployment/docs/07-AUTO-DISCOVERY.md
|
|
46
|
+
/deployment/scripts/install.ps1
|
|
47
|
+
/deployment/scripts/start-server.ps1
|
|
48
|
+
/deployment/scripts/stop-server.ps1
|
|
49
|
+
/deployment/scripts/test-server.ps1
|
|
50
|
+
|
|
51
|
+
================================================================================
|
|
52
|
+
FILES GENERATED AFTER INSTALLATION (DO NOT COPY)
|
|
53
|
+
================================================================================
|
|
54
|
+
|
|
55
|
+
These files will be created automatically by npm install and npm run build:
|
|
56
|
+
|
|
57
|
+
/node_modules/ → npm dependencies (DO NOT copy)
|
|
58
|
+
/dist/ → Compiled JavaScript code (generated by npm run build)
|
|
59
|
+
/Data/ → Persistent data (generated by setup-auth)
|
|
60
|
+
|
|
61
|
+
================================================================================
|
|
62
|
+
COMPLETE STRUCTURE AFTER DEPLOYMENT
|
|
63
|
+
================================================================================
|
|
64
|
+
|
|
65
|
+
D:\notebooklm-http\
|
|
66
|
+
├── package.json
|
|
67
|
+
├── package-lock.json
|
|
68
|
+
├── tsconfig.json
|
|
69
|
+
├── .gitignore
|
|
70
|
+
├── LICENSE
|
|
71
|
+
├── README.md
|
|
72
|
+
├── CHANGELOG.md
|
|
73
|
+
├── CONTRIBUTING.md
|
|
74
|
+
├── CREDITS.md
|
|
75
|
+
│
|
|
76
|
+
├── src\
|
|
77
|
+
│ ├── http-wrapper.ts
|
|
78
|
+
│ ├── index.ts
|
|
79
|
+
│ ├── config.ts
|
|
80
|
+
│ ├── errors.ts
|
|
81
|
+
│ ├── types.ts
|
|
82
|
+
│ ├── auth\
|
|
83
|
+
│ ├── library\
|
|
84
|
+
│ ├── session\
|
|
85
|
+
│ ├── tools\
|
|
86
|
+
│ └── utils\
|
|
87
|
+
│
|
|
88
|
+
├── deployment\
|
|
89
|
+
│ ├── README.md
|
|
90
|
+
│ ├── QUICK-START.md
|
|
91
|
+
│ ├── INDEX.md
|
|
92
|
+
│ ├── PACKAGE-FILES.txt
|
|
93
|
+
│ ├── docs\
|
|
94
|
+
│ │ ├── 01-INSTALL.md
|
|
95
|
+
│ │ ├── 02-CONFIGURATION.md
|
|
96
|
+
│ │ ├── 03-API.md
|
|
97
|
+
│ │ ├── 04-N8N-INTEGRATION.md
|
|
98
|
+
│ │ └── 05-TROUBLESHOOTING.md
|
|
99
|
+
│ └── scripts\
|
|
100
|
+
│ ├── install.ps1
|
|
101
|
+
│ ├── start-server.ps1
|
|
102
|
+
│ ├── stop-server.ps1
|
|
103
|
+
│ └── test-server.ps1
|
|
104
|
+
│
|
|
105
|
+
├── node_modules\ (created by npm install)
|
|
106
|
+
├── dist\ (created by npm run build)
|
|
107
|
+
└── Data\ (created by setup-auth)
|
|
108
|
+
├── chrome_profile\
|
|
109
|
+
├── browser_state\
|
|
110
|
+
└── library.json
|
|
111
|
+
|
|
112
|
+
================================================================================
|
|
113
|
+
COMMANDS TO CREATE A DEPLOYABLE PACKAGE
|
|
114
|
+
================================================================================
|
|
115
|
+
|
|
116
|
+
## Method 1: Manual Copy
|
|
117
|
+
```powershell
|
|
118
|
+
# Create a new folder
|
|
119
|
+
mkdir D:\notebooklm-http-deploy
|
|
120
|
+
|
|
121
|
+
# Copy required files
|
|
122
|
+
Copy-Item package.json D:\notebooklm-http-deploy\
|
|
123
|
+
Copy-Item package-lock.json D:\notebooklm-http-deploy\
|
|
124
|
+
Copy-Item tsconfig.json D:\notebooklm-http-deploy\
|
|
125
|
+
Copy-Item .gitignore D:\notebooklm-http-deploy\
|
|
126
|
+
Copy-Item -Recurse src D:\notebooklm-http-deploy\
|
|
127
|
+
Copy-Item -Recurse deployment D:\notebooklm-http-deploy\
|
|
128
|
+
|
|
129
|
+
# Go to the new folder
|
|
130
|
+
cd D:\notebooklm-http-deploy
|
|
131
|
+
|
|
132
|
+
# Installation
|
|
133
|
+
.\deployment\scripts\install.ps1
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Method 2: ZIP Archive (Recommended for Distribution)
|
|
137
|
+
```powershell
|
|
138
|
+
# Create a clean archive
|
|
139
|
+
$files = @(
|
|
140
|
+
"package.json",
|
|
141
|
+
"package-lock.json",
|
|
142
|
+
"tsconfig.json",
|
|
143
|
+
".gitignore",
|
|
144
|
+
"src",
|
|
145
|
+
"deployment"
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
Compress-Archive -Path $files -DestinationPath notebooklm-http-v1.3.0.zip
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Method 3: Git Clone
|
|
152
|
+
```powershell
|
|
153
|
+
git clone <repo-url> D:\notebooklm-http
|
|
154
|
+
cd D:\notebooklm-http
|
|
155
|
+
.\deployment\scripts\install.ps1
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
================================================================================
|
|
159
|
+
APPROXIMATE SIZE
|
|
160
|
+
================================================================================
|
|
161
|
+
|
|
162
|
+
Source files + config: ~2 MB
|
|
163
|
+
node_modules/: ~150 MB
|
|
164
|
+
dist/: ~3 MB
|
|
165
|
+
Data/ (after auth): ~100 MB
|
|
166
|
+
|
|
167
|
+
TOTAL after installation: ~255 MB
|
|
168
|
+
|
|
169
|
+
================================================================================
|
|
170
|
+
SENSITIVE FILES (NEVER COMMIT)
|
|
171
|
+
================================================================================
|
|
172
|
+
|
|
173
|
+
/Data/chrome_profile/ → Contains Google cookies
|
|
174
|
+
/Data/browser_state/state.json → Contains Google session
|
|
175
|
+
.env → Environment variables (if used)
|
|
176
|
+
node_modules/ → Dependencies (regenerable)
|
|
177
|
+
|
|
178
|
+
These files are already in .gitignore
|
|
179
|
+
|
|
180
|
+
================================================================================
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ Or for network access: `http://<SERVER-IP>:3000`
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
## Available Endpoints (
|
|
17
|
+
## Available Endpoints (33 total)
|
|
18
18
|
|
|
19
19
|
### Authentication
|
|
20
20
|
|
|
@@ -34,18 +34,20 @@ Or for network access: `http://<SERVER-IP>:3000`
|
|
|
34
34
|
|
|
35
35
|
### Notebooks
|
|
36
36
|
|
|
37
|
-
| Method | Endpoint
|
|
38
|
-
| -------- |
|
|
39
|
-
| `GET` | `/notebooks`
|
|
40
|
-
| `POST` | `/notebooks`
|
|
41
|
-
| `POST` | `/notebooks/create`
|
|
42
|
-
| `POST` | `/notebooks/auto-discover`
|
|
43
|
-
| `GET` | `/notebooks/
|
|
44
|
-
| `
|
|
45
|
-
| `GET` | `/notebooks
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `PUT` | `/notebooks/:id
|
|
37
|
+
| Method | Endpoint | Description |
|
|
38
|
+
| -------- | ------------------------------- | ------------------------------------ |
|
|
39
|
+
| `GET` | `/notebooks` | List all notebooks |
|
|
40
|
+
| `POST` | `/notebooks` | Add a notebook manually |
|
|
41
|
+
| `POST` | `/notebooks/create` | Create a new notebook in NotebookLM |
|
|
42
|
+
| `POST` | `/notebooks/auto-discover` | Auto-generate notebook metadata |
|
|
43
|
+
| `GET` | `/notebooks/scrape` | Scrape notebooks from NotebookLM |
|
|
44
|
+
| `POST` | `/notebooks/import-from-scrape` | Bulk import scraped notebooks |
|
|
45
|
+
| `GET` | `/notebooks/search` | Search notebooks by query |
|
|
46
|
+
| `GET` | `/notebooks/stats` | Get library statistics |
|
|
47
|
+
| `GET` | `/notebooks/:id` | Get notebook details |
|
|
48
|
+
| `PUT` | `/notebooks/:id` | Update notebook metadata |
|
|
49
|
+
| `DELETE` | `/notebooks/:id` | Delete a notebook |
|
|
50
|
+
| `PUT` | `/notebooks/:id/activate` | Activate a notebook (set as default) |
|
|
49
51
|
|
|
50
52
|
### Sessions
|
|
51
53
|
|
|
@@ -1640,6 +1642,90 @@ curl -X POST "http://localhost:3000/content/notes/My%20Research%20Note/to-source
|
|
|
1640
1642
|
|
|
1641
1643
|
---
|
|
1642
1644
|
|
|
1645
|
+
## 23. Scrape Notebooks from NotebookLM
|
|
1646
|
+
|
|
1647
|
+
### `GET /notebooks/scrape`
|
|
1648
|
+
|
|
1649
|
+
Scrape all notebooks from the user's NotebookLM account.
|
|
1650
|
+
|
|
1651
|
+
**Request:**
|
|
1652
|
+
|
|
1653
|
+
```bash
|
|
1654
|
+
curl "http://localhost:3000/notebooks/scrape?show_browser=true"
|
|
1655
|
+
```
|
|
1656
|
+
|
|
1657
|
+
**Query Parameters:**
|
|
1658
|
+
|
|
1659
|
+
| Parameter | Type | Description |
|
|
1660
|
+
| -------------- | ------- | ----------------------------- |
|
|
1661
|
+
| `show_browser` | boolean | Show browser window for debug |
|
|
1662
|
+
|
|
1663
|
+
**Success Response (200):**
|
|
1664
|
+
|
|
1665
|
+
```json
|
|
1666
|
+
{
|
|
1667
|
+
"success": true,
|
|
1668
|
+
"data": {
|
|
1669
|
+
"notebooks": [
|
|
1670
|
+
{
|
|
1671
|
+
"id": "89e31c61-63f9-480d-b0ad-92ed60bd1834",
|
|
1672
|
+
"name": "Internal Family Systems",
|
|
1673
|
+
"url": "https://notebooklm.google.com/notebook/89e31c61-63f9-480d-b0ad-92ed60bd1834"
|
|
1674
|
+
}
|
|
1675
|
+
],
|
|
1676
|
+
"total": 16,
|
|
1677
|
+
"message": "Found 16 notebooks in NotebookLM account"
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
```
|
|
1681
|
+
|
|
1682
|
+
---
|
|
1683
|
+
|
|
1684
|
+
## 24. Bulk Import Scraped Notebooks
|
|
1685
|
+
|
|
1686
|
+
### `POST /notebooks/import-from-scrape`
|
|
1687
|
+
|
|
1688
|
+
Scrape notebooks from NotebookLM and bulk import them into the library.
|
|
1689
|
+
|
|
1690
|
+
**Request:**
|
|
1691
|
+
|
|
1692
|
+
```bash
|
|
1693
|
+
curl -X POST http://localhost:3000/notebooks/import-from-scrape \
|
|
1694
|
+
-H "Content-Type: application/json" \
|
|
1695
|
+
-d '{"auto_discover": false}'
|
|
1696
|
+
```
|
|
1697
|
+
|
|
1698
|
+
**Body Parameters:**
|
|
1699
|
+
|
|
1700
|
+
| Parameter | Type | Required | Description |
|
|
1701
|
+
| --------------- | -------- | -------- | -------------------------------------- |
|
|
1702
|
+
| `notebook_ids` | string[] | No | Filter: only import these notebook IDs |
|
|
1703
|
+
| `auto_discover` | boolean | No | Use AI to generate metadata (slower) |
|
|
1704
|
+
| `show_browser` | boolean | No | Show browser window for debug |
|
|
1705
|
+
|
|
1706
|
+
**Success Response (200):**
|
|
1707
|
+
|
|
1708
|
+
```json
|
|
1709
|
+
{
|
|
1710
|
+
"success": true,
|
|
1711
|
+
"data": {
|
|
1712
|
+
"imported": [{ "id": "89e31c61-...", "name": "Internal Family Systems", "status": "imported" }],
|
|
1713
|
+
"errors": [],
|
|
1714
|
+
"total_scraped": 16,
|
|
1715
|
+
"total_imported": 16,
|
|
1716
|
+
"total_errors": 0
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
```
|
|
1720
|
+
|
|
1721
|
+
**Use Cases:**
|
|
1722
|
+
|
|
1723
|
+
- Initial library setup: import all existing notebooks at once
|
|
1724
|
+
- Sync new notebooks: re-run to import newly created notebooks
|
|
1725
|
+
- Selective import: use `notebook_ids` to import specific notebooks only
|
|
1726
|
+
|
|
1727
|
+
---
|
|
1728
|
+
|
|
1643
1729
|
## 📊 Limits and Quotas
|
|
1644
1730
|
|
|
1645
1731
|
| Limit | Value | Configurable |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|