Download run_server.py from jdewitte/mcp: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/jdewitte/mcp/resolve/main/run_server.py
- Command line
-
hf download hf://spaces/jdewitte/mcp/run_server.py
-
curl -L -o run_server.py https://huggingface.co/spaces/jdewitte/mcp/resolve/main/run_server.py
698 Bytes
| #!/usr/bin/env python3 | |
| """ | |
| Standalone MCP server runner | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Add the parent directory to the path so we can import mcp_server | |
| sys.path.insert(0, str(Path(__file__).parent.parent)) | |
| from mcp_server.http_server import start_server | |
| if __name__ == "__main__": | |
| import argparse | |
| parser = argparse.ArgumentParser(description="Run MCP HTTP Server") | |
| parser.add_argument("--host", default="0.0.0.0", help="Host to bind to") | |
| parser.add_argument("--port", type=int, default=8081, help="Port to bind to") | |
| args = parser.parse_args() | |
| print(f"Starting MCP HTTP Server on {args.host}:{args.port}") | |
| start_server(args.host, args.port) | |