ims-mcp 1.0.6__tar.gz → 1.0.8__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.
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/PKG-INFO +1 -1
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp/__init__.py +1 -1
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp/server.py +16 -15
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/PKG-INFO +1 -1
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/pyproject.toml +1 -1
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/LICENSE +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/README.md +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp/__main__.py +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/SOURCES.txt +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/dependency_links.txt +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/entry_points.txt +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/requires.txt +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/ims_mcp.egg-info/top_level.txt +0 -0
- {ims_mcp-1.0.6 → ims_mcp-1.0.8}/setup.cfg +0 -0
|
@@ -40,21 +40,6 @@ def get_authenticated_client() -> R2RClient:
|
|
|
40
40
|
if _authenticated_client is not None:
|
|
41
41
|
return _authenticated_client
|
|
42
42
|
|
|
43
|
-
# Log startup info (only on first call)
|
|
44
|
-
from ims_mcp import __version__
|
|
45
|
-
base_url = os.getenv('R2R_API_BASE') or os.getenv('R2R_BASE_URL') or 'http://localhost:7272'
|
|
46
|
-
collection = os.getenv('R2R_COLLECTION', 'default')
|
|
47
|
-
api_key = os.getenv('R2R_API_KEY', '')
|
|
48
|
-
email = os.getenv('R2R_EMAIL', '')
|
|
49
|
-
password = os.getenv('R2R_PASSWORD', '')
|
|
50
|
-
|
|
51
|
-
print(f"[ims-mcp v{__version__}]", file=sys.stderr)
|
|
52
|
-
print(f" server={base_url}", file=sys.stderr)
|
|
53
|
-
print(f" collection={collection}", file=sys.stderr)
|
|
54
|
-
print(f" api_key={api_key[:3] + '...' if api_key else 'none'}", file=sys.stderr)
|
|
55
|
-
print(f" email={email if email else 'none'}", file=sys.stderr)
|
|
56
|
-
print(f" password={password[:3] + '...' if password else 'none'}", file=sys.stderr)
|
|
57
|
-
|
|
58
43
|
# Create new client
|
|
59
44
|
client = R2RClient()
|
|
60
45
|
|
|
@@ -613,6 +598,22 @@ async def delete_document(document_id: str) -> str:
|
|
|
613
598
|
|
|
614
599
|
def main():
|
|
615
600
|
"""Main entry point for console script."""
|
|
601
|
+
# Log configuration at startup
|
|
602
|
+
from ims_mcp import __version__
|
|
603
|
+
base_url = os.getenv('R2R_API_BASE') or os.getenv('R2R_BASE_URL') or 'http://localhost:7272'
|
|
604
|
+
collection = os.getenv('R2R_COLLECTION', 'default')
|
|
605
|
+
api_key = os.getenv('R2R_API_KEY', '')
|
|
606
|
+
email = os.getenv('R2R_EMAIL', '')
|
|
607
|
+
password = os.getenv('R2R_PASSWORD', '')
|
|
608
|
+
|
|
609
|
+
print(f"[ims-mcp v{__version__}]", file=sys.stderr)
|
|
610
|
+
print(f" server={base_url}", file=sys.stderr)
|
|
611
|
+
print(f" collection={collection}", file=sys.stderr)
|
|
612
|
+
print(f" api_key={api_key[:3] + '...' if api_key else 'none'}", file=sys.stderr)
|
|
613
|
+
print(f" email={email if email else 'none'}", file=sys.stderr)
|
|
614
|
+
print(f" password={password[:3] + '...' if password else 'none'}", file=sys.stderr)
|
|
615
|
+
sys.stderr.flush() # Ensure output is visible
|
|
616
|
+
|
|
616
617
|
mcp.run()
|
|
617
618
|
|
|
618
619
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|