bstraehle commited on
Commit
7886f2b
·
verified ·
1 Parent(s): d59a286

Update agents/mcp/mcp_client.py

Browse files
Files changed (1) hide show
  1. agents/mcp/mcp_client.py +3 -1
agents/mcp/mcp_client.py CHANGED
@@ -8,7 +8,9 @@ from mcp.client.session import ClientSession, DEFAULT_CLIENT_INFO
8
 
9
  # Chess position evaluation
10
 
11
- MCP_SSE_URL_CHESS_POSITION_EVALUATION = f"https://bstraehle-chess.hf.space/gradio_api/mcp/sse"
 
 
12
  MCP_TOOL_CHESS_POSITION_EVALUATION = "chess_position_evaluation"
13
 
14
  async def call_mcp_tool_async(mcp_url: str, tool_name: str, arguments: dict, timeout: int = 5) -> str:
 
8
 
9
  # Chess position evaluation
10
 
11
+ SPACE_AUTHOR_NAME = os.getenv("SPACE_AUTHOR_NAME")
12
+
13
+ MCP_SSE_URL_CHESS_POSITION_EVALUATION = f"https://{SPACE_AUTHOR_NAME}-chess.hf.space/gradio_api/mcp/sse"
14
  MCP_TOOL_CHESS_POSITION_EVALUATION = "chess_position_evaluation"
15
 
16
  async def call_mcp_tool_async(mcp_url: str, tool_name: str, arguments: dict, timeout: int = 5) -> str: