ims-mcp 1.0.7__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.7 → ims_mcp-1.0.8}/PKG-INFO +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp/__init__.py +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp/server.py +16 -15
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/PKG-INFO +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/pyproject.toml +1 -1
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/LICENSE +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/README.md +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp/__main__.py +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/SOURCES.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/dependency_links.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/entry_points.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/requires.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/ims_mcp.egg-info/top_level.txt +0 -0
- {ims_mcp-1.0.7 → ims_mcp-1.0.8}/setup.cfg +0 -0
|
@@ -168,21 +168,6 @@ def format_search_results_for_llm(results) -> str:
|
|
|
168
168
|
return result
|
|
169
169
|
|
|
170
170
|
|
|
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
171
|
# Create a FastMCP server
|
|
187
172
|
try:
|
|
188
173
|
from mcp.server.fastmcp import FastMCP
|
|
@@ -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
|