ims-mcp 1.0.5__tar.gz → 1.0.6__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.5 → ims_mcp-1.0.6}/PKG-INFO +1 -1
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp/__init__.py +1 -1
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp/server.py +15 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/PKG-INFO +1 -1
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/pyproject.toml +1 -1
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/LICENSE +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/README.md +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp/__main__.py +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/SOURCES.txt +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/dependency_links.txt +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/entry_points.txt +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/requires.txt +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/ims_mcp.egg-info/top_level.txt +0 -0
- {ims_mcp-1.0.5 → ims_mcp-1.0.6}/setup.cfg +0 -0
|
@@ -538,6 +538,12 @@ async def get_document(
|
|
|
538
538
|
|
|
539
539
|
# Found exactly one match
|
|
540
540
|
document_id = matching_docs[0][0]
|
|
541
|
+
except R2RException as e:
|
|
542
|
+
# Re-raise authentication errors so the decorator can handle them
|
|
543
|
+
if hasattr(e, 'status_code') and e.status_code in [401, 403]:
|
|
544
|
+
raise
|
|
545
|
+
# For other R2RExceptions, return error message
|
|
546
|
+
return f"Error searching for document by title: {str(e)}"
|
|
541
547
|
except Exception as e:
|
|
542
548
|
return f"Error searching for document by title: {str(e)}"
|
|
543
549
|
|
|
@@ -555,6 +561,15 @@ async def get_document(
|
|
|
555
561
|
|
|
556
562
|
return "\n".join(output_lines)
|
|
557
563
|
|
|
564
|
+
except R2RException as e:
|
|
565
|
+
# Re-raise authentication errors so the decorator can handle them
|
|
566
|
+
if hasattr(e, 'status_code') and e.status_code in [401, 403]:
|
|
567
|
+
raise
|
|
568
|
+
# For other R2RExceptions, return error message
|
|
569
|
+
error_msg = str(e)
|
|
570
|
+
if "not found" in error_msg.lower():
|
|
571
|
+
return f"Error: Document with ID '{document_id}' not found"
|
|
572
|
+
return f"Error downloading document: {error_msg}"
|
|
558
573
|
except Exception as e:
|
|
559
574
|
error_msg = str(e)
|
|
560
575
|
if "not found" in error_msg.lower():
|
|
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
|