memorix 1.8.1 → 1.8.2

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 (37) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cli/index.js +326 -52
  3. package/dist/index.js +581 -315
  4. package/dist/maintenance-runner.js +31 -25
  5. package/dist/media-audio-runner.js +31 -25
  6. package/dist/media-video-runner.js +31 -25
  7. package/dist/memcode-runtime/CHANGELOG.md +20 -0
  8. package/dist/sdk.js +573 -314
  9. package/dist/vector-backfill-runner.js +31 -25
  10. package/docs/1.2.0-PROVIDER-QUALITY.md +15 -6
  11. package/docs/1.3.3-MULTIMODAL-MEDIA-AND-MCP-COMPAT.md +7 -6
  12. package/docs/1.8.0-RELEASE-CANDIDATE-SPEC.md +10 -8
  13. package/docs/API_REFERENCE.md +10 -8
  14. package/docs/CONFIGURATION.md +2 -2
  15. package/docs/DEVELOPMENT.md +2 -2
  16. package/docs/README.md +10 -7
  17. package/package.json +1 -1
  18. package/plugins/antigravity/memorix/plugin.json +2 -1
  19. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  20. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  21. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  22. package/plugins/copilot/memorix/plugin.json +1 -1
  23. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  24. package/plugins/hermes/memorix/plugin.yaml +1 -1
  25. package/plugins/omp/memorix/package.json +1 -1
  26. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  27. package/plugins/pi/memorix/package.json +1 -1
  28. package/server.json +3 -3
  29. package/src/cli/commands/serve-http.ts +10 -2
  30. package/src/codegraph/external-provider.ts +299 -19
  31. package/src/config/dotenv-loader.ts +9 -4
  32. package/src/config.ts +16 -16
  33. package/src/dashboard/maintenance.ts +4 -1
  34. package/src/llm/provider.ts +17 -4
  35. package/src/server/mcp-compat.ts +82 -0
  36. package/src/server/mcp-diagnostics.ts +13 -4
  37. package/src/server.ts +5 -2
@@ -1,7 +1,8 @@
1
1
  /** MCP compatibility diagnostics shared by HTTP and CLI-facing checks. */
2
2
 
3
3
  export const CURRENT_MCP_PROTOCOL_VERSION = '2026-07-28';
4
- export const LEGACY_MCP_PROTOCOL_VERSION = '2024-11-05';
4
+ export const LEGACY_MCP_PROTOCOL_VERSION = '2025-11-25';
5
+ export const OLDEST_LEGACY_MCP_PROTOCOL_VERSION = '2024-11-05';
5
6
  export const MCP_SERVER_NAME = 'io.github.AVIDS2/memorix';
6
7
 
7
8
  export interface McpDiagnostics {
@@ -9,13 +10,17 @@ export interface McpDiagnostics {
9
10
  protocol: {
10
11
  current: string;
11
12
  legacy: string;
13
+ discovery: 'supported';
14
+ versionlessRequests: 'legacy-compatible';
15
+ modernResultMetadata: 'discovery-only';
12
16
  statelessRequests: 'supported' | 'compatibility-only' | 'unsupported';
13
17
  statefulStreamableHttp: 'supported';
14
18
  };
15
19
  capabilities: {
16
20
  tasks: 'supported' | 'unsupported';
17
21
  polling: 'supported' | 'unsupported';
18
- listCache: 'supported';
22
+ subscriptions: 'supported' | 'unsupported';
23
+ listCache: 'supported' | 'unsupported';
19
24
  explicitProjectHandle: 'supported';
20
25
  };
21
26
  }
@@ -27,13 +32,17 @@ export function getMcpDiagnostics(): McpDiagnostics {
27
32
  protocol: {
28
33
  current: CURRENT_MCP_PROTOCOL_VERSION,
29
34
  legacy: LEGACY_MCP_PROTOCOL_VERSION,
30
- statelessRequests: 'supported',
35
+ discovery: 'supported',
36
+ versionlessRequests: 'legacy-compatible',
37
+ modernResultMetadata: 'discovery-only',
38
+ statelessRequests: 'compatibility-only',
31
39
  statefulStreamableHttp: 'supported',
32
40
  },
33
41
  capabilities: {
34
42
  tasks: 'unsupported',
35
43
  polling: 'unsupported',
36
- listCache: 'supported',
44
+ subscriptions: 'unsupported',
45
+ listCache: 'unsupported',
37
46
  explicitProjectHandle: 'supported',
38
47
  },
39
48
  };
package/src/server.ts CHANGED
@@ -62,6 +62,7 @@ import {
62
62
  type ProjectBindingController,
63
63
  type ProjectBindingSource,
64
64
  } from './server/request-context.js';
65
+ import { registerMcpDiscovery } from './server/mcp-compat.js';
65
66
 
66
67
  // ── Timeout budgets for LLM-heavy paths ──────────────────────────
67
68
  const FORMATION_TIMEOUT_MS = parseFormationTimeoutMs(process.env.MEMORIX_FORMATION_TIMEOUT_MS); // Formation pipeline (extract+resolve+evaluate)
@@ -593,10 +594,12 @@ export async function createMemorixServer(
593
594
  };
594
595
 
595
596
  // Create MCP server (or use existing one from roots-aware flow)
596
- const server = existingServer ?? new McpServer({
597
+ const serverInfo = {
597
598
  name: 'memorix',
598
599
  version: typeof __MEMORIX_VERSION__ !== 'undefined' ? __MEMORIX_VERSION__ : '1.0.1',
599
- });
600
+ };
601
+ const server = existingServer ?? new McpServer(serverInfo);
602
+ registerMcpDiscovery(server, serverInfo);
600
603
 
601
604
  const originalRegisterTool = server.registerTool.bind(server);
602
605
  server.registerTool = ((name: string, ...args: unknown[]) => {