Abdelkarim Bengrine commited on
Commit
48d8a02
·
1 Parent(s): 2c5fc09

fix: oauth

Browse files
Files changed (1) hide show
  1. echo_server.py +1 -1
echo_server.py CHANGED
@@ -22,7 +22,7 @@ def get_last_game_pgn(username: str):
22
  )
23
  def analyze_latest_game(username: str, player_color: str):
24
  game = get_last_game_pgn(username)
25
- return {"player_username": username, "pgn": game["games"][0]["pgn"]}
26
 
27
 
28
  @mcp.tool(description="Extracts PGN from a Chess.com game URL")
 
22
  )
23
  def analyze_latest_game(username: str, player_color: str):
24
  game = get_last_game_pgn(username)
25
+ return {"player_username": username, "pgn": game["games"][-1]["pgn"]}
26
 
27
 
28
  @mcp.tool(description="Extracts PGN from a Chess.com game URL")