prism-mcp-server 1.5.0

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.
Files changed (47) hide show
  1. package/.gitmodules +3 -0
  2. package/Dockerfile +30 -0
  3. package/LICENSE +21 -0
  4. package/README.md +970 -0
  5. package/benchmark.ts +172 -0
  6. package/call_chrome_mcp.py +96 -0
  7. package/docker-compose.yml +67 -0
  8. package/execute_via_chrome_mcp.py +133 -0
  9. package/gmail_auth_test.py +29 -0
  10. package/gmail_list_latest_5.py +27 -0
  11. package/index.ts +34 -0
  12. package/list_chrome_tools.py +70 -0
  13. package/package.json +64 -0
  14. package/patch_cgc_mcp.py +90 -0
  15. package/repomix-output.xml +9 -0
  16. package/run_server.sh +9 -0
  17. package/server.json +78 -0
  18. package/src/config.ts +85 -0
  19. package/src/server.ts +627 -0
  20. package/src/tools/compactionHandler.ts +313 -0
  21. package/src/tools/definitions.ts +367 -0
  22. package/src/tools/handlers.ts +261 -0
  23. package/src/tools/index.ts +38 -0
  24. package/src/tools/sessionMemoryDefinitions.ts +437 -0
  25. package/src/tools/sessionMemoryHandlers.ts +774 -0
  26. package/src/utils/braveApi.ts +375 -0
  27. package/src/utils/embeddingApi.ts +97 -0
  28. package/src/utils/executor.ts +105 -0
  29. package/src/utils/googleAi.ts +107 -0
  30. package/src/utils/keywordExtractor.ts +207 -0
  31. package/src/utils/supabaseApi.ts +194 -0
  32. package/supabase/migrations/015_session_memory.sql +145 -0
  33. package/supabase/migrations/016_knowledge_accumulation.sql +315 -0
  34. package/supabase/migrations/017_ledger_compaction.sql +74 -0
  35. package/supabase/migrations/018_semantic_search.sql +110 -0
  36. package/supabase/migrations/019_concurrency_control.sql +320 -0
  37. package/supabase/migrations/020_multi_tenant_rls.sql +459 -0
  38. package/test_cross_mcp.js +393 -0
  39. package/test_mcp_schema.js +83 -0
  40. package/tests/test_knowledge_system.js +319 -0
  41. package/tsconfig.json +16 -0
  42. package/vertex-ai/test_claude_vertex.py +78 -0
  43. package/vertex-ai/test_gemini_vertex.py +39 -0
  44. package/vertex-ai/test_hybrid_search_pipeline.ts +296 -0
  45. package/vertex-ai/test_pipeline_benchmark.ts +251 -0
  46. package/vertex-ai/test_realworld_comparison.ts +290 -0
  47. package/vertex-ai/verify_discovery_engine.ts +72 -0
package/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "Brave-Gemini-Research-MCP-Server"]
2
+ path = Brave-Gemini-Research-MCP-Server
3
+ url = https://github.com/falahgs/Brave-Gemini-Research-MCP-Server.git
package/Dockerfile ADDED
@@ -0,0 +1,30 @@
1
+ FROM node:20-slim AS builder
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy package files
6
+ COPY package.json package-lock.json ./
7
+ COPY tsconfig.json ./
8
+
9
+ # Install dependencies
10
+ RUN npm ci
11
+
12
+ # Copy source code
13
+ COPY src/ ./src/
14
+
15
+ # Build TypeScript
16
+ RUN npm run build
17
+
18
+ FROM node:20-slim
19
+
20
+ WORKDIR /app
21
+
22
+ # Copy package files and install production deps only
23
+ COPY package.json package-lock.json ./
24
+ RUN npm ci --production
25
+
26
+ # Copy built output from builder
27
+ COPY --from=builder /app/dist ./dist
28
+
29
+ # The MCP server communicates via stdio
30
+ ENTRYPOINT ["node", "dist/server.js"]
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dmitri Costenco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.