cortexdb-mcp 0.3.2__tar.gz → 0.3.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortexdb-mcp
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: MCP Server for CortexDB — expose memory operations to AI agents
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -1,3 +1,3 @@
1
1
  """CortexDB MCP Server -- expose CortexDB memory operations to AI agents via MCP."""
2
2
 
3
- __version__ = "0.3.2"
3
+ __version__ = "0.3.3"
@@ -59,6 +59,10 @@ class CortexMCPConfig:
59
59
  actor: str | None = None
60
60
  scope: str | None = None
61
61
  tenant_id: str | None = None
62
+ # Default recall reach. "holistic" = the scope + its parents (the server
63
+ # default); "descend" = the scope + all sub-scopes (e.g. query the org root
64
+ # and reach every per-source sub-scope at once); "granular" = exact scope.
65
+ view: str = "holistic"
62
66
  timeout: float = 30.0
63
67
 
64
68
  # Set by save_state() / from_env() when an anonymous signup happens; used
@@ -76,6 +80,8 @@ class CortexMCPConfig:
76
80
  CORTEXDB_API_KEY -- PASETO token (preferred) or legacy v0 key.
77
81
  CORTEXDB_ACTOR -- ActorId for X-Cortex-Actor (e.g. ``user:alice``).
78
82
  CORTEXDB_SCOPE -- Default scope path for tool calls.
83
+ CORTEXDB_VIEW -- Default recall reach: ``holistic`` (default),
84
+ ``descend`` (scope + all sub-scopes), or ``granular``.
79
85
  CORTEXDB_TENANT_ID -- Legacy tenant id (v0 callers only).
80
86
  CORTEXDB_TIMEOUT -- Request timeout in seconds (default ``30.0``).
81
87
 
@@ -90,6 +96,7 @@ class CortexMCPConfig:
90
96
  actor=os.environ.get("CORTEXDB_ACTOR"),
91
97
  scope=os.environ.get("CORTEXDB_SCOPE"),
92
98
  tenant_id=os.environ.get("CORTEXDB_TENANT_ID"),
99
+ view=os.environ.get("CORTEXDB_VIEW", cls.view),
93
100
  timeout=float(os.environ.get("CORTEXDB_TIMEOUT", str(cls.timeout))),
94
101
  )
95
102