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.
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/PKG-INFO +1 -1
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/__init__.py +1 -1
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/config.py +7 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/insights.py +480 -480
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/render.py +103 -103
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/server.py +4 -4
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/pyproject.toml +21 -21
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/tests/test_server.py +794 -775
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/.gitignore +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/Dockerfile +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/README.md +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/__main__.py +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/cortexdb_mcp/api.py +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/tests/__init__.py +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/tests/test_insights.py +0 -0
- {cortexdb_mcp-0.3.2 → cortexdb_mcp-0.3.3}/tests/test_integration.py +0 -0
|
@@ -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
|
|