Spaces:
Runtime error
Runtime error
Download src/mcp_server.py from travelhawk/ChessCoach: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/travelhawk/ChessCoach/resolve/main/src/mcp_server.py
- Command line
-
hf download hf://spaces/travelhawk/ChessCoach/src/mcp_server.py
-
curl -L -o mcp_server.py https://huggingface.co/spaces/travelhawk/ChessCoach/resolve/main/src/mcp_server.py
302 Bytes
| from mcp.server.fastmcp import FastMCP | |
| app = FastMCP() | |
| def get_opening_from_eco(eco_code: str) -> str: | |
| # Placeholder implementation, replace with actual logic | |
| return "Unknown Opening" | |
| def start(): | |
| app.run(transport='streamable-http') | |
| if __name__ == '__main__': | |
| start() | |