File size: 1,570 Bytes
bea46e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Chess Rooms</title>
  <link rel="stylesheet" href="{{ base_path }}/static/style.css">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style>
    pre { white-space: pre-wrap; }
  </style>
  <link rel="icon" href="data:,">
  <meta property="og:title" content="Chess MCP" />
  <meta property="og:description" content="Play chess against an AI via MCP" />
  <meta property="og:image" content="/static/embed.png" />
  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:title" content="Chess MCP" />
  <meta name="twitter:description" content="Play chess against an AI via MCP" />
  <meta name="twitter:image" content="/static/embed.png" />
  <meta name="robots" content="noai" />
  <meta name="ai-access-control" content="none" />
</head>
<body>
  <div class="container">
    <h1>Chess MCP Rooms</h1>
    <form method="post" action="{{ base_path }}/create_room">
      <button type="submit">Create Room</button>
    </form>

    <h2>Join Room</h2>
    <form onsubmit="event.preventDefault(); location.href='{{ base_path }}/room/' + document.getElementById('rid').value;">
      <input id="rid" placeholder="Enter room id" required />
      <button type="submit">Join</button>
    </form>

    <h2>Active Rooms</h2>
    <ul>
      {% for rid, info in rooms.items() %}
        <li><a href="{{ base_path }}/room/{{ rid }}">{{ rid }}</a></li>
      {% else %}
        <li>No rooms yet. Create one!</li>
      {% endfor %}
    </ul>
  </div>
</body>
</html>