Spaces:
Runtime error
Runtime error
File size: 484 Bytes
036a2db | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """
DiffContext MCP Server Wrapper
Forwards execution to the package-level mcp_server module.
"""
import sys
from pathlib import Path
# Add the project root to sys.path so we can import diffcontext
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent))
try:
from diffcontext.mcp_server import main
except ImportError as e:
print(f"Error: Could not import diffcontext.mcp_server: {e}", file=sys.stderr)
sys.exit(1)
if __name__ == "__main__":
main()
|