Connect to my adapter
use_adapterSwitch the current session between a real OBD-II adapter and the built-in mock by passing a serial: or tcp: connection string, without editing settings or restarting the server.
Instructions
Switch this session to a real adapter, or back to mock, without editing settings or restarting. Use the connection value from find_adapter (serial:...) or a WiFi address (tcp:192.168.0.10:35000). The adapter is checked first; if it does not answer, the current connection is kept. Only the adapter is contacted, not the vehicle. The change lasts until the server restarts; to keep it, the user sets Adapter connection in the Claude Desktop extension settings (or OBD2MCP_CONNECTION). Clearing codes on a real vehicle stays disabled. Ask the user before switching.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>"
},
"name": "use_adapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud | No | Serial baud rate, only if find_adapter reported one other than 38400 | |
| connection | Yes | serial:<port>, tcp:<host>:<port>, or mock |