c64-debug-mcp 1.0.2 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -3
- package/dist/http.cjs +444 -140
- package/dist/http.js +444 -140
- package/dist/stdio.cjs +444 -140
- package/dist/stdio.js +444 -140
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,64 @@ Debug Commodore 64 programs through conversation - AI-powered control of the VIC
|
|
|
14
14
|
- 📸 **Display Capture**: Capture screen state and text content
|
|
15
15
|
- ⌨️ **Input Control**: Send keyboard and joystick input
|
|
16
16
|
- 📝 **Program Loading**: Load PRG files and manage execution
|
|
17
|
+
- 🔢 **Flexible Formats**: Use C64 notation ($D000, $FF, %11111111) or standard formats (0xD000, 255, 0b11111111)
|
|
18
|
+
|
|
19
|
+
## Address Formats
|
|
20
|
+
|
|
21
|
+
The MCP server accepts C64 addresses in multiple formats for natural interaction:
|
|
22
|
+
|
|
23
|
+
- **C64 style**: `$D000` (dollar sign prefix - classic 6502 assembler notation)
|
|
24
|
+
- **C style**: `0xD000` (0x prefix - standard programming hex notation)
|
|
25
|
+
- **Decimal**: `53248` (traditional decimal format)
|
|
26
|
+
|
|
27
|
+
**Note**: Bare hex without prefix (e.g., `D000`) is NOT supported to avoid ambiguity with 4-digit decimals.
|
|
28
|
+
|
|
29
|
+
**Common C64 Addresses**:
|
|
30
|
+
- `$D000` - SID chip registers (sound)
|
|
31
|
+
- `$D020` - Border color register
|
|
32
|
+
- `$D021` - Background color register
|
|
33
|
+
- `$0400` - Default screen memory
|
|
34
|
+
- `$0800` - Common program start
|
|
35
|
+
- `$C000` - BASIC ROM start
|
|
36
|
+
|
|
37
|
+
## Byte Value Formats
|
|
38
|
+
|
|
39
|
+
The MCP server accepts byte values (0-255) in multiple formats for natural C64-style input:
|
|
40
|
+
|
|
41
|
+
- **C64 hex**: `$FF` (dollar sign prefix - classic 6502 notation)
|
|
42
|
+
- **C hex**: `0xFF` (0x prefix - standard programming notation)
|
|
43
|
+
- **C64 binary**: `%11111111` (percent prefix - classic 6502 bit notation)
|
|
44
|
+
- **C binary**: `0b11111111` (0b prefix - standard programming notation)
|
|
45
|
+
- **Decimal**: `255` (traditional decimal format)
|
|
46
|
+
|
|
47
|
+
**Note**: Bare hex/binary without prefix (e.g., `FF`, `11111111`) is NOT supported to avoid ambiguity.
|
|
48
|
+
|
|
49
|
+
**Mixed formats in arrays**:
|
|
50
|
+
```json
|
|
51
|
+
[255, "$FF", "0xFF", "%11111111", "0b11111111"]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Common C64 Byte Values**:
|
|
55
|
+
- `$00`-`$0F` - Color values (0-15)
|
|
56
|
+
- `$20` - PETSCII space character
|
|
57
|
+
- `$41` - PETSCII 'A' character
|
|
58
|
+
- `%00011011` - VIC-II D011 control register (text mode, 25 rows, screen on)
|
|
59
|
+
- `%11111111` - All bits set (enable all sprites, etc.)
|
|
60
|
+
|
|
61
|
+
**Use Cases**:
|
|
62
|
+
```javascript
|
|
63
|
+
// Set border to light blue
|
|
64
|
+
memory_write(address="$D020", data=["$0E"])
|
|
65
|
+
|
|
66
|
+
// Enable all 8 sprites
|
|
67
|
+
memory_write(address="$D015", data=["%11111111"])
|
|
68
|
+
|
|
69
|
+
// Write " AB" to screen (PETSCII)
|
|
70
|
+
memory_write(address="$0400", data=["$20", "$41", "$42"])
|
|
71
|
+
|
|
72
|
+
// Set VIC-II control register with bit pattern
|
|
73
|
+
memory_write(address="$D011", data=["%00011011"])
|
|
74
|
+
```
|
|
17
75
|
|
|
18
76
|
## Requirements
|
|
19
77
|
|
|
@@ -24,7 +82,7 @@ Debug Commodore 64 programs through conversation - AI-powered control of the VIC
|
|
|
24
82
|
## Installation
|
|
25
83
|
|
|
26
84
|
```bash
|
|
27
|
-
claude mcp add
|
|
85
|
+
claude mcp add c64-dev-tools -- npx -y c64-debug-mcp@latest
|
|
28
86
|
```
|
|
29
87
|
|
|
30
88
|
Or add manually to your MCP client config:
|
|
@@ -32,9 +90,9 @@ Or add manually to your MCP client config:
|
|
|
32
90
|
```json
|
|
33
91
|
{
|
|
34
92
|
"mcpServers": {
|
|
35
|
-
"
|
|
93
|
+
"c64-dev-tools": {
|
|
36
94
|
"command": "npx",
|
|
37
|
-
"args": ["-y", "c64-debug-mcp"]
|
|
95
|
+
"args": ["-y", "c64-debug-mcp@latest"]
|
|
38
96
|
}
|
|
39
97
|
}
|
|
40
98
|
}
|