cortexdb-mcp 0.3.2__tar.gz → 0.4.0__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.
@@ -77,3 +77,6 @@ blog/
77
77
  sales/
78
78
  videos/
79
79
  local-instance/
80
+
81
+ # doc-claims verifier scratch output
82
+ tools/verifier_out*/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortexdb-mcp
3
- Version: 0.3.2
3
+ Version: 0.4.0
4
4
  Summary: MCP Server for CortexDB — expose memory operations to AI agents
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
@@ -180,6 +180,16 @@ On Windows, MCP clients sometimes need the absolute path:
180
180
  | `entity_edges` | `GET /v1/facts?subject=…` | Predicate/object pairs for an entity. |
181
181
  | `entity_link` | `POST /v1/experience` | Store a sentence the extractor will turn into a fact. |
182
182
 
183
+ ### Bi-temporal Conflicts & Claim History
184
+
185
+ | Tool | Maps to | Description |
186
+ |------|---------|-------------|
187
+ | `list_conflicts` | `GET /v1/conflicts` | Queue of contradicting values detected for the same claim. |
188
+ | `resolve_conflict` | `POST /v1/conflicts/{id}/resolve` | Resolve: `pick` / `split` / `new_information` / `dismiss`. |
189
+ | `claim_history` | `GET /v1/claims/history` | Full bi-temporal change-log of one claim (+ its conflicts). |
190
+
191
+ Validity boundaries carry a basis: `stated` boundaries render as "since/until \<date\>"; `observed` boundaries are knowledge bounds and render as "by \<date\>" — never "on \<date\>".
192
+
183
193
  ### Admin & Observability
184
194
 
185
195
  | Tool | Maps to | Description |
@@ -167,6 +167,16 @@ On Windows, MCP clients sometimes need the absolute path:
167
167
  | `entity_edges` | `GET /v1/facts?subject=…` | Predicate/object pairs for an entity. |
168
168
  | `entity_link` | `POST /v1/experience` | Store a sentence the extractor will turn into a fact. |
169
169
 
170
+ ### Bi-temporal Conflicts & Claim History
171
+
172
+ | Tool | Maps to | Description |
173
+ |------|---------|-------------|
174
+ | `list_conflicts` | `GET /v1/conflicts` | Queue of contradicting values detected for the same claim. |
175
+ | `resolve_conflict` | `POST /v1/conflicts/{id}/resolve` | Resolve: `pick` / `split` / `new_information` / `dismiss`. |
176
+ | `claim_history` | `GET /v1/claims/history` | Full bi-temporal change-log of one claim (+ its conflicts). |
177
+
178
+ Validity boundaries carry a basis: `stated` boundaries render as "since/until \<date\>"; `observed` boundaries are knowledge bounds and render as "by \<date\>" — never "on \<date\>".
179
+
170
180
  ### Admin & Observability
171
181
 
172
182
  | Tool | Maps to | Description |
@@ -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