ims-mcp 1.0.8__py3-none-any.whl → 1.0.9__py3-none-any.whl
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/__init__.py +1 -1
- ims_mcp/server.py +16 -16
- {ims_mcp-1.0.8.dist-info → ims_mcp-1.0.9.dist-info}/METADATA +1 -1
- ims_mcp-1.0.9.dist-info/RECORD +9 -0
- ims_mcp-1.0.8.dist-info/RECORD +0 -9
- {ims_mcp-1.0.8.dist-info → ims_mcp-1.0.9.dist-info}/WHEEL +0 -0
- {ims_mcp-1.0.8.dist-info → ims_mcp-1.0.9.dist-info}/entry_points.txt +0 -0
- {ims_mcp-1.0.8.dist-info → ims_mcp-1.0.9.dist-info}/licenses/LICENSE +0 -0
- {ims_mcp-1.0.8.dist-info → ims_mcp-1.0.9.dist-info}/top_level.txt +0 -0
ims_mcp/__init__.py
CHANGED
ims_mcp/server.py
CHANGED
|
@@ -40,6 +40,22 @@ def get_authenticated_client() -> R2RClient:
|
|
|
40
40
|
if _authenticated_client is not None:
|
|
41
41
|
return _authenticated_client
|
|
42
42
|
|
|
43
|
+
# Log configuration on first client creation
|
|
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
|
+
sys.stderr.flush()
|
|
58
|
+
|
|
43
59
|
# Create new client
|
|
44
60
|
client = R2RClient()
|
|
45
61
|
|
|
@@ -598,22 +614,6 @@ async def delete_document(document_id: str) -> str:
|
|
|
598
614
|
|
|
599
615
|
def main():
|
|
600
616
|
"""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
|
-
|
|
617
617
|
mcp.run()
|
|
618
618
|
|
|
619
619
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ims_mcp/__init__.py,sha256=_a0FNt-0K9A50hDS6XdMk9mKSBodMX3vDosAcy8AdLI,631
|
|
2
|
+
ims_mcp/__main__.py,sha256=z4P1aCVfOgS3cTM2wgJd2pxjMmKCkGkiqYDRGgrspxw,191
|
|
3
|
+
ims_mcp/server.py,sha256=DeObwXtOSVnolp04llFXBWjQLdMcY6-BSdsZfeJIBhU,23807
|
|
4
|
+
ims_mcp-1.0.9.dist-info/licenses/LICENSE,sha256=4d1dlH04mbnN3ya4lybcVOUwljRHGy-aSc9MYqGYW44,2534
|
|
5
|
+
ims_mcp-1.0.9.dist-info/METADATA,sha256=PvR-jzu9736vKBEfKNonN25dhPgfpKcmxkJ1XyIYmFA,9295
|
|
6
|
+
ims_mcp-1.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
ims_mcp-1.0.9.dist-info/entry_points.txt,sha256=xCH9I8g1pTTEqrfjnE-ANHaZo4W6EBJVy0Lg5z8SaIQ,48
|
|
8
|
+
ims_mcp-1.0.9.dist-info/top_level.txt,sha256=wEXA33qFr_eov3S1PY2OF6EQBA2rtAWB_ZNJOzNNQuM,8
|
|
9
|
+
ims_mcp-1.0.9.dist-info/RECORD,,
|
ims_mcp-1.0.8.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
ims_mcp/__init__.py,sha256=hRF40Qy5ubonhjvlK51ehBkkyWKM0GQ6MDUd38ddQ8c,631
|
|
2
|
-
ims_mcp/__main__.py,sha256=z4P1aCVfOgS3cTM2wgJd2pxjMmKCkGkiqYDRGgrspxw,191
|
|
3
|
-
ims_mcp/server.py,sha256=39Kq5A-up4SbwYlMQCmlnSDsiy-oscOLtd6-5DSKqBA,23829
|
|
4
|
-
ims_mcp-1.0.8.dist-info/licenses/LICENSE,sha256=4d1dlH04mbnN3ya4lybcVOUwljRHGy-aSc9MYqGYW44,2534
|
|
5
|
-
ims_mcp-1.0.8.dist-info/METADATA,sha256=yd53FvQxhFDoSgqw5VakvGyUv-x30qli8kc2_duB-e4,9295
|
|
6
|
-
ims_mcp-1.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
ims_mcp-1.0.8.dist-info/entry_points.txt,sha256=xCH9I8g1pTTEqrfjnE-ANHaZo4W6EBJVy0Lg5z8SaIQ,48
|
|
8
|
-
ims_mcp-1.0.8.dist-info/top_level.txt,sha256=wEXA33qFr_eov3S1PY2OF6EQBA2rtAWB_ZNJOzNNQuM,8
|
|
9
|
-
ims_mcp-1.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|