ims-mcp 1.0.2__py3-none-any.whl → 1.0.3__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 +20 -4
- {ims_mcp-1.0.2.dist-info → ims_mcp-1.0.3.dist-info}/METADATA +1 -1
- ims_mcp-1.0.3.dist-info/RECORD +9 -0
- ims_mcp-1.0.2.dist-info/RECORD +0 -9
- {ims_mcp-1.0.2.dist-info → ims_mcp-1.0.3.dist-info}/WHEEL +0 -0
- {ims_mcp-1.0.2.dist-info → ims_mcp-1.0.3.dist-info}/entry_points.txt +0 -0
- {ims_mcp-1.0.2.dist-info → ims_mcp-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {ims_mcp-1.0.2.dist-info → ims_mcp-1.0.3.dist-info}/top_level.txt +0 -0
ims_mcp/__init__.py
CHANGED
ims_mcp/server.py
CHANGED
|
@@ -15,6 +15,7 @@ configuration is needed when running via uvx or other launchers.
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
import os
|
|
18
|
+
import sys
|
|
18
19
|
import uuid
|
|
19
20
|
from r2r import R2RClient
|
|
20
21
|
|
|
@@ -38,6 +39,21 @@ def get_authenticated_client() -> R2RClient:
|
|
|
38
39
|
if _authenticated_client is not None:
|
|
39
40
|
return _authenticated_client
|
|
40
41
|
|
|
42
|
+
# Log startup info (only on first call)
|
|
43
|
+
from ims_mcp import __version__
|
|
44
|
+
base_url = os.getenv('R2R_API_BASE') or os.getenv('R2R_BASE_URL') or 'http://localhost:7272'
|
|
45
|
+
collection = os.getenv('R2R_COLLECTION', 'default')
|
|
46
|
+
api_key = os.getenv('R2R_API_KEY', '')
|
|
47
|
+
email = os.getenv('R2R_EMAIL', '')
|
|
48
|
+
password = os.getenv('R2R_PASSWORD', '')
|
|
49
|
+
|
|
50
|
+
print(f"[ims-mcp v{__version__}]", file=sys.stderr)
|
|
51
|
+
print(f" server={base_url}", file=sys.stderr)
|
|
52
|
+
print(f" collection={collection}", file=sys.stderr)
|
|
53
|
+
print(f" api_key={api_key[:3] + '...' if api_key else 'none'}", file=sys.stderr)
|
|
54
|
+
print(f" email={email if email else 'none'}", file=sys.stderr)
|
|
55
|
+
print(f" password={password[:3] + '...' if password else 'none'}", file=sys.stderr)
|
|
56
|
+
|
|
41
57
|
# Create new client
|
|
42
58
|
client = R2RClient()
|
|
43
59
|
|
|
@@ -47,11 +63,11 @@ def get_authenticated_client() -> R2RClient:
|
|
|
47
63
|
|
|
48
64
|
if email and password:
|
|
49
65
|
try:
|
|
50
|
-
# Login
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
client.access_token = result.results.access_token.token
|
|
66
|
+
# Login - R2RClient automatically handles token internally
|
|
67
|
+
client.users.login(email=email, password=password)
|
|
68
|
+
print(f"[ims-mcp] Login successful", file=sys.stderr)
|
|
54
69
|
except Exception as e:
|
|
70
|
+
print(f"[ims-mcp] Login failed: {e}", file=sys.stderr)
|
|
55
71
|
# If login fails, continue without authentication (might work for local servers)
|
|
56
72
|
pass
|
|
57
73
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ims_mcp/__init__.py,sha256=IXSdAG7JlNgU0FZHnI56CEvjhIHzAc3cxuuEINXfbRQ,631
|
|
2
|
+
ims_mcp/__main__.py,sha256=z4P1aCVfOgS3cTM2wgJd2pxjMmKCkGkiqYDRGgrspxw,191
|
|
3
|
+
ims_mcp/server.py,sha256=g_MwgGhVN9jv03qKYTLWNRz_Q-7_cMl9zmbCaVh6LNI,21741
|
|
4
|
+
ims_mcp-1.0.3.dist-info/licenses/LICENSE,sha256=4d1dlH04mbnN3ya4lybcVOUwljRHGy-aSc9MYqGYW44,2534
|
|
5
|
+
ims_mcp-1.0.3.dist-info/METADATA,sha256=TuJNag9JatA25mo5PWAm4hAfsn6FtSJ0MH1UcZyOCv4,9200
|
|
6
|
+
ims_mcp-1.0.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
ims_mcp-1.0.3.dist-info/entry_points.txt,sha256=xCH9I8g1pTTEqrfjnE-ANHaZo4W6EBJVy0Lg5z8SaIQ,48
|
|
8
|
+
ims_mcp-1.0.3.dist-info/top_level.txt,sha256=wEXA33qFr_eov3S1PY2OF6EQBA2rtAWB_ZNJOzNNQuM,8
|
|
9
|
+
ims_mcp-1.0.3.dist-info/RECORD,,
|
ims_mcp-1.0.2.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
ims_mcp/__init__.py,sha256=_6NlDOhSJOSX3jaL2jl2rXydaa2CWsV6pN1BCrYnOtw,631
|
|
2
|
-
ims_mcp/__main__.py,sha256=z4P1aCVfOgS3cTM2wgJd2pxjMmKCkGkiqYDRGgrspxw,191
|
|
3
|
-
ims_mcp/server.py,sha256=QOjniyXYYcZVeUDhD_w73NLBWE2KUejOTp4vqawubMg,20925
|
|
4
|
-
ims_mcp-1.0.2.dist-info/licenses/LICENSE,sha256=4d1dlH04mbnN3ya4lybcVOUwljRHGy-aSc9MYqGYW44,2534
|
|
5
|
-
ims_mcp-1.0.2.dist-info/METADATA,sha256=40x-xkXd7POWXBB-8Lg0x44-p-Nl5oODsE9V6nh-oi8,9200
|
|
6
|
-
ims_mcp-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
ims_mcp-1.0.2.dist-info/entry_points.txt,sha256=xCH9I8g1pTTEqrfjnE-ANHaZo4W6EBJVy0Lg5z8SaIQ,48
|
|
8
|
-
ims_mcp-1.0.2.dist-info/top_level.txt,sha256=wEXA33qFr_eov3S1PY2OF6EQBA2rtAWB_ZNJOzNNQuM,8
|
|
9
|
-
ims_mcp-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|