You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MCP_README.md
+75-5Lines changed: 75 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ This server provides comprehensive tools for game development, rom hacking, reve
15
15
-**Bookmarks**: Memory and disassembler bookmarks for navigation
16
16
-**Call Stack**: View function call hierarchy
17
17
-**Screenshot Capture**: Get current frame as PNG image
18
+
-**Documentation Resources**: Built-in hardware and programming documentation for AI context
18
19
-**GUI Integration**: MCP server runs alongside the emulator GUI, sharing the same state
19
20
20
21
## Available MCP Tools
@@ -107,7 +108,7 @@ The default mode uses standard input/output for communication. The emulator is l
107
108
108
109
### HTTP Transport
109
110
110
-
The HTTP transport mode runs the emulator with an embedded web server on `localhost:7777`. The emulator stays running independently while the AI client connects via HTTP.
111
+
The HTTP transport mode runs the emulator with an embedded web server on `localhost:7777/mcp`. The emulator stays running independently while the AI client connects via HTTP.
111
112
112
113
**Advantages:**
113
114
- Persistent emulator instance
@@ -185,10 +186,11 @@ The HTTP transport mode runs the emulator with an embedded web server on `localh
185
186
1.**Start the emulator manually** with HTTP transport:
186
187
```bash
187
188
./geargrafx --mcp-http
188
-
# Server will start on http://localhost:7777
189
+
# Server will start on http://localhost:7777/mcp
189
190
190
191
# Or specify a custom port:
191
192
./geargrafx --mcp-http --mcp-http-port 3000
193
+
# Server will start on http://localhost:3000/mcp
192
194
```
193
195
194
196
You can optionally start the server using the "MCP" menu in the GUI.
@@ -199,7 +201,7 @@ The HTTP transport mode runs the emulator with an embedded web server on `localh
199
201
"servers": {
200
202
"geargrafx": {
201
203
"type": "http",
202
-
"url": "http://localhost:7777",
204
+
"url": "http://localhost:7777/mcp",
203
205
"headers": {}
204
206
}
205
207
}
@@ -212,7 +214,7 @@ The HTTP transport mode runs the emulator with an embedded web server on `localh
212
214
"github.copilot.chat.mcp.servers": {
213
215
"geargrafx": {
214
216
"type": "http",
215
-
"url": "http://localhost:7777"
217
+
"url": "http://localhost:7777/mcp"
216
218
}
217
219
}
218
220
}
@@ -224,7 +226,7 @@ The HTTP transport mode runs the emulator with an embedded web server on `localh
224
226
"mcpServers": {
225
227
"geargrafx": {
226
228
"type": "http",
227
-
"url": "http://localhost:7777"
229
+
"url": "http://localhost:7777/mcp"
228
230
}
229
231
}
230
232
}
@@ -252,6 +254,74 @@ Once configured, you can ask your AI assistant:
252
254
- "Show me the VDC registers"
253
255
- "Capture a screenshot of the current frame"
254
256
257
+
## Available Resources
258
+
259
+
In addition to tools, the MCP server provides documentation resources that AI assistants can access to better understand the PC Engine / TurboGrafx-16 hardware and programming.
260
+
261
+
Resources are organized into categories and are automatically loaded when the server starts. They provide context and reference material for AI-assisted debugging and development.
262
+
263
+
### Hardware Documentation Resources
264
+
265
+
Complete technical reference documentation for all PC Engine / TurboGrafx-16 hardware components:
266
+
267
+
-**HuC6280 CPU — 8-bit CMOS Microprocessor** (`geargrafx://hardware/huc6280_cpu`)
268
+
- 65C02-compatible core architecture
269
+
- CPU registers (A/X/Y/S/P/PC) and status flags
270
+
- Memory Management Unit (MMU) with 8×8KB page mapping
271
+
- Interrupt controller, 7-bit timer, I/O ports
272
+
- Clock speeds (1.79MHz/7.16MHz switchable)
273
+
274
+
-**HuC6280 Instruction Set Reference** (`geargrafx://hardware/huc6280_instructions`)
275
+
- Complete instruction set with all 65C02 base opcodes
- RAM configuration, ROM banking, CD-ROM/Arcade Card extensions
306
+
307
+
### How Resources Work
308
+
309
+
Resources are read-only documentation that AI assistants can reference during conversations:
310
+
311
+
1.**Automatic Loading**: Resources are loaded when the MCP server starts
312
+
2.**Context Enhancement**: AI assistants can retrieve resources to understand hardware specifics
313
+
3.**Format**: Resources are provided in Markdown format for easy reading
314
+
4.**URIs**: Each resource has a unique URI like `geargrafx://category/resource_id`
315
+
316
+
### Accessing Resources
317
+
318
+
Resources are accessed through the MCP protocol's resource capabilities:
319
+
320
+
-`resources/list` - List all available resources
321
+
-`resources/read` - Read the content of a specific resource
322
+
323
+
AI clients automatically handle resource retrieval, so you typically don't need to manually request them. The AI assistant will fetch relevant resources when needed to answer your questions or provide better debugging assistance.
324
+
255
325
## How It Works
256
326
257
327
- The MCP server runs **alongside** the GUI in a background thread
0 commit comments