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: examples/MCP/README.md
+27-67Lines changed: 27 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,22 +52,21 @@ sequenceDiagram
52
52
53
53
## Prerequisites
54
54
55
-
- Python 3.8+ (64-bit, matching your build architecture: x64 or ARM64)
56
-
- Project built with `build.bat` / `build.sh` (the TACDev library is loaded from `__Builds`)
55
+
| Requirement | Details |
56
+
| :-- | :-- |
57
+
| Python | 3.10+ matching your target architecture (x64 Python on x64, ARM64 Python on ARM64) |
58
+
| OpenSSL | Required to build the `cryptography` package (a fastmcp dependency). Install the version matching your architecture from [slproweb.com](https://slproweb.com/products/Win32OpenSSL.html) or via package manager on Linux. On ARM64 Windows, also set `OPENSSL_DIR` to the install path before running `setup.bat ARM64` - the ARM64 wheel must be compiled from source |
59
+
| QTAC build | Project must be built with `build.bat` / `build.sh` - TACDev library is loaded from `__Builds`|
57
60
58
61
## Setup
59
62
60
-
Run from the `examples/MCP` directory:
61
-
62
-
```cmd
63
-
setup.bat (Windows x64, auto-detected)
64
-
setup.bat ARM64 (Windows ARM64)
65
-
```
66
-
```bash
67
-
./setup.sh (Linux)
68
-
```
63
+
| Platform | Command |
64
+
| :-- | :-- |
65
+
| Windows x64 (auto-detected) |`setup.bat`|
66
+
| Windows ARM64 |`setup.bat ARM64`|
67
+
| Linux |`./setup.sh`|
69
68
70
-
Each script builds the project, installs the TACDev Python library, and installs MCP dependencies.
69
+
Each script checks for an existing build, installs the TACDev Python library, and installs MCP dependencies.
71
70
72
71
For full setup guidance see [Bootcamp guide](../../docs/bootcamp/01-Bootcamp.md) and
73
72
[Python API reference](../../docs/bootcamp/02-Python-API.md).
@@ -76,17 +75,14 @@ For full setup guidance see [Bootcamp guide](../../docs/bootcamp/01-Bootcamp.md)
76
75
77
76
All runtime parameters are in `config.yaml`:
78
77
79
-
```yaml
80
-
server:
81
-
host: "127.0.0.1"
82
-
port: 8000
83
-
84
-
logging:
85
-
file: "tacdev_mcp.log"
86
-
level: "INFO"
87
-
max_bytes: 10485760
88
-
backup_count: 5
89
-
```
78
+
| Parameter | Default | Description |
79
+
| :-- | :-- | :-- |
80
+
|`server.host`|`127.0.0.1`| Host to bind the server on |
81
+
|`server.port`|`8000`| Port the server listens on |
|`ModuleNotFoundError: No module named 'TACDev'`| Run `pip install interfaces/Python` from the repo root, or use `setup.bat` / `setup.sh`|
123
+
|`TACDev library not found`| Build the project first with `build.bat` / `build.sh` and run from repo root |
124
+
|`Architecture mismatch`| Use a 64-bit Python matching your target architecture (x64 or ARM64) |
125
+
|`ModuleNotFoundError: No module named 'fastmcp'`| Requires Python 3.10+. Run `pip install -r requirements.txt`|
126
+
|`cryptography` build failure on ARM64 | Set `OPENSSL_DIR` to the ARM64 OpenSSL install path before running `setup.bat ARM64`. Download the ARM64 OpenSSL installer from [slproweb.com](https://slproweb.com/products/Win32OpenSSL.html), then: `setx OPENSSL_DIR "C:\Program Files\OpenSSL-ARM64"` and reopen the prompt |
127
+
|`get_device_count` returns 0 | Check debug board is connected. On Windows run `FTDICheck.exe` from `__Builds\x64\Release\bin`. On Linux ensure udev rules are installed: `sudo cp udev-rules/99-QTAC-USB.rules /etc/udev/rules.d/ && sudo udevadm control --reload`|
168
128
169
129
See [Bootcamp troubleshooting](../../docs/bootcamp/01-Bootcamp.md#troubleshooting) for more.
0 commit comments