ims-mcp 1.0.7__tar.gz → 1.0.9__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.7 → ims_mcp-1.0.9}/PKG-INFO +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp/__init__.py +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp/server.py +16 -15
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/PKG-INFO +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/pyproject.toml +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/LICENSE +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/README.md +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp/__main__.py +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/SOURCES.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/dependency_links.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/entry_points.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/requires.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/ims_mcp.egg-info/top_level.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.9}/setup.cfg +0 -0
|
@@ -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
|
|
|
@@ -168,21 +184,6 @@ def format_search_results_for_llm(results) -> str:
|
|
|
168
184
|
return result
|
|
169
185
|
|
|
170
186
|
|
|
171
|
-
# Log configuration at startup
|
|
172
|
-
from ims_mcp import __version__
|
|
173
|
-
base_url = os.getenv('R2R_API_BASE') or os.getenv('R2R_BASE_URL') or 'http://localhost:7272'
|
|
174
|
-
collection = os.getenv('R2R_COLLECTION', 'default')
|
|
175
|
-
api_key = os.getenv('R2R_API_KEY', '')
|
|
176
|
-
email = os.getenv('R2R_EMAIL', '')
|
|
177
|
-
password = os.getenv('R2R_PASSWORD', '')
|
|
178
|
-
|
|
179
|
-
print(f"[ims-mcp v{__version__}]", file=sys.stderr)
|
|
180
|
-
print(f" server={base_url}", file=sys.stderr)
|
|
181
|
-
print(f" collection={collection}", file=sys.stderr)
|
|
182
|
-
print(f" api_key={api_key[:3] + '...' if api_key else 'none'}", file=sys.stderr)
|
|
183
|
-
print(f" email={email if email else 'none'}", file=sys.stderr)
|
|
184
|
-
print(f" password={password[:3] + '...' if password else 'none'}", file=sys.stderr)
|
|
185
|
-
|
|
186
187
|
# Create a FastMCP server
|
|
187
188
|
try:
|
|
188
189
|
from mcp.server.fastmcp import FastMCP
|
|
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
|