Spaces:
Runtime error
Runtime error
| """ | |
| 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() | |