SimHub ShakeIt Audit

v0.5.1
io.github.luangrezende/shakeit-mcp Checked 2 days ago Published 4 days ago

Audit SimHub ShakeIt haptics (redundant events, stacked effects, routing) and switch profiles.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ac_status

Check whether Assetto Corsa and Content Manager are running, where each file root points on this PC and the last 5 recorded changes. Call it first in a session or before a write: AC open means most changes apply next session, CM open means CM may write its own values back. For full backup history use ac_list_backups; for file names use ac_list_files.

ac_list_files

List the editable .ini files at the top level of each file root, i.e. the ids ac_read and ac_set accept. Use it when you don't know a file's name. Scripts and ppfilter files are read with ac_read_text; cars and tracks are listed by ac_list_content.

ParameterTypeDescription
rootstringOne root: cfg, ext, pure, sys, acroot or extcfg; '' lists all of them.

ac_read

Read an INI file as parsed values {section: {key: value}}, inline comments stripped. Use it to check current settings before ac_set. For the raw text (scripts, Lua, comments that matter) use ac_read_text; for CSP's default value and documentation of an option use ac_csp_doc. Returns ok=false with the path if the file does not exist (CSP writes override files only after the first change).

ParameterTypeDescription
file *stringFile as '<root>/<relative path>'. Roots: cfg (Documents/Assetto Corsa/cfg), ext (CSP user overrides), pure (Pure config), sys (game system/cfg, incl. ppfilters), apps (game apps), extcfg (extension/co…
sectionstringOnly this section, e.g. 'VIDEO'; '' = every section.

ac_csp_doc

Look up Custom Shaders Patch options: the default line with its inline doc comment from CSP's shipped config, plus the value you override in ext/<module>.ini, if any. Use it before changing a CSP option you are unsure about; ac_read shows only what is set, not defaults or docs. Returns at most 200 matching lines.

ParameterTypeDescription
module *stringCSP module, i.e. the .ini name under extension/config with or without '.ini', e.g. 'vr_tweaks' or 'graphics_adjustments'.
keystringOnly this key, e.g. 'EYE_TRACKING'; '' = every key in scope.
sectionstringOnly this section, e.g. 'VIDEO'; '' = every section.

ac_list_presets

List Content Manager presets by name: video presets (.cmpreset) and CSP presets (.ini). Use the names with ac_apply_video_preset, ac_apply_csp_preset or ac_set_mode. To see what a video preset contains use ac_read_video_preset; for the named VR/monitor pairs use ac_list_modes.

ac_read_video_preset

Show the video.ini values stored inside one Content Manager video preset, as {section: {key: value}}, without applying it. Use it to compare a preset with the current cfg/video.ini (ac_read) before ac_apply_video_preset. Returns the available names if the preset is not found.

ParameterTypeDescription
name *stringContent Manager video preset name without extension, as listed by ac_list_presets, e.g. 'Pimax VR'.

ac_list_apps

List installed AC apps: Python apps with whether each is enabled in cfg/python.ini, and CSP Lua apps with the name and version from their manifest. Use it to get the folder name ac_set_python_app needs; Lua apps have no on/off switch here (CSP manages them in game). Cars and tracks are listed by ac_list_content.

ac_list_pp_filters

List the post-processing filters installed in system/cfg/ppfilters and the one active in cfg/video.ini. Use it to pick a valid name for ac_set_pp_filter; a filter's own settings are readable with ac_read_text('sys/ppfilters/<name>.ini').

ac_read_text

Read an allowed text file verbatim, comments and formatting kept: Lua/Python app scripts, ppfilter files, or INI files whose comments matter. Use it before ac_replace_text, whose snippet must match this text exactly; for parsed INI values prefer ac_read. Allowed: .ini .txt .lut .lua .py .json .cfg. Returns the line count and truncated=true when cut at max_chars.

ParameterTypeDescription
file *stringFile as '<root>/<relative path>'. Roots: cfg (Documents/Assetto Corsa/cfg), ext (CSP user overrides), pure (Pure config), sys (game system/cfg, incl. ppfilters), apps (game apps), extcfg (extension/co…
max_charsintegerMaximum characters of content returned.

ac_list_backups

List the most recent backups this server made before each write, newest first: folder name, reason (e.g. 'apply csp preset VR') and the files it holds. Use it to pick a backup for ac_diff (what changed since) or ac_undo (restore it).

ParameterTypeDescription
limitintegerHow many backups to return, newest first (minimum 1).

ac_list_modes

List the named setups (e.g. 'vr', 'monitor'), each a Content Manager CSP preset + video preset that must be applied together. 'current' is the mode whose video preset matches cfg/video.ini right now (None if none matches). Use it before ac_switch_mode to get a valid name; define modes with ac_set_mode.

ac_crash_report

Explain why the last session crashed: the 'CRASH in' stack from the AC log, CSP fatal lines, the count of CSP warnings, the track being loaded and the newest crash dump in Documents/Assetto Corsa/logs. Use it right after AC crashes or closes while loading; to see which settings changed recently use ac_diff.

ac_versions

Report installed versions: CSP, every WeatherFX implementation (Pure Gamma/LCS, Sol...) and CSP Lua apps (ppfilter apps like Exilitay Realism). Use it before ac_install_mod to know what is already there; Python apps and their on/off state are in ac_list_apps. With check_online=True it also reads acstuff.club (network) for the latest and recommended CSP and sets update_available; on a network error it adds online_error instead of failing.

ParameterTypeDescription
check_onlinebooleantrue also asks acstuff.club for the latest and recommended CSP (network); false stays offline.

ac_diff

Show what changed since a backup: key by key for .ini files and video presets, as a unified diff for other files, with a status per file (changed, unchanged, created, deleted). Read only. Use it before ac_undo to see what undo would revert, or to answer 'what did we change since it worked'; backup names come from ac_list_backups.

ParameterTypeDescription
backupstringBackup folder name from ac_list_backups, e.g. '20261128-230442-777989'; '' = the most recent backup.

ac_list_content

List installed cars or tracks from content/. Cars: folder id, name, brand, class, version and how many saved setups (Documents/Assetto Corsa/setups, excluding last.ini). Tracks: folder id, country and each layout with its name and length. Use it to find the exact folder id of a car or track; apps are listed by ac_list_apps. Local files only, no network.

ParameterTypeDescription
filterstringCase-insensitive text matched against folder id, name, brand or layout name, e.g. 'gt3'; '' = everything.
kindstringWhat to list: 'cars' or 'tracks'.
limitintegerMaximum items returned; 'total' still counts every match.

ac_set

Change one key in an INI file, keeping comments, spacing and line endings; adds the key, or the section, if missing. The file is backed up and the change logged first, so ac_undo reverts it. For several keys use ac_set_many (one backup); for non-INI text use ac_replace_text. Returns before/after and a warning when AC or Content Manager is open. Example: ac_set('ext/vr_tweaks.ini', 'OPENXR_TWEAKS', 'EYE_TRACKING', '1').

ParameterTypeDescription
file *stringFile as '<root>/<relative path>'. Roots: cfg (Documents/Assetto Corsa/cfg), ext (CSP user overrides), pure (Pure config), sys (game system/cfg, incl. ppfilters), apps (game apps), extcfg (extension/co…
key *stringINI key, e.g. 'EYE_TRACKING'.
section *stringINI section without brackets, e.g. 'OPENXR_TWEAKS'; '' for keys before the first section.
value *stringNew value exactly as written after '=', e.g. '1' or 'OPENVR'.

ac_set_many

Apply several INI key changes with a single backup, so one ac_undo reverts all of them. Use it instead of repeated ac_set when changes belong together (e.g. one VR tweak touching two files). Files are written only where a value actually changes; returns before/after per key, or unchanged=true when nothing changed.

ParameterTypeDescription
changes *arrayChanges to apply together; section may be omitted for keys before the first section.

ac_apply_video_preset

Overwrite cfg/video.ini with a Content Manager video preset, the way CM applies it (resolution, camera/VR mode, filter). video.ini is backed up first. When switching between VR and monitor prefer ac_switch_mode, which also applies the matching CSP preset; mixing the two can crash AC while loading.

ParameterTypeDescription
name *stringContent Manager video preset name without extension, as listed by ac_list_presets, e.g. 'Pimax VR'.

ac_save_video_preset

Save the current cfg/video.ini as a Content Manager video preset, creating it or overwriting a preset with the same name (the old one is backed up). Use it to keep a working setup before experimenting; ac_apply_video_preset loads it back.

ParameterTypeDescription
name *stringContent Manager video preset name without extension, as listed by ac_list_presets, e.g. 'Pimax VR'.

ac_apply_csp_preset

Apply a Content Manager CSP preset: rewrites the ext/*.ini override of every module the preset covers, leaving other modules alone. The touched files are backed up first. For VR/monitor switching prefer ac_switch_mode, which applies the matching video preset too.

ParameterTypeDescription
name *stringContent Manager CSP preset name without extension, as listed by ac_list_presets.

ac_save_csp_preset

Save the current CSP overrides (every ext/*.ini with settings) as a Content Manager CSP preset, creating it or overwriting one with the same name (the old one is backed up). Use it to snapshot a working CSP setup before trying changes, or to pair it with a video preset in ac_set_mode. The game config itself is not touched.

ParameterTypeDescription
name *stringContent Manager CSP preset name without extension, as listed by ac_list_presets.

ac_set_python_app

Turn an AC Python app on or off via ACTIVE in cfg/python.ini (backup + log, undoable); takes effect next session. app is the folder name from ac_list_apps; if it is not installed nothing changes and the installed names are returned. Lua apps are managed by CSP in game, not here.

ParameterTypeDescription
active *booleantrue enables the app, false disables it.
app *stringFolder name under apps/python, as listed by ac_list_apps, e.g. 'helicorsa'.

ac_set_pp_filter

Set the active post-processing filter, [POST_PROCESS] FILTER in cfg/video.ini (backup + log, undoable). The filter must exist in system/cfg/ppfilters (ac_list_pp_filters), otherwise nothing changes and the available names are returned. Video presets carry their own filter, so a later ac_apply_video_preset or ac_switch_mode replaces it; ac_save_video_preset keeps it.

ParameterTypeDescription
name *stringFilter name without '.ini', as listed by ac_list_pp_filters.

ac_write_text

Replace the entire content of a text or script file, creating it if missing; the file's BOM and line endings are kept. The old file is backed up first (undoable). Use it for new files or full rewrites; to change one INI key use ac_set, to change one snippet use ac_replace_text, which leaves the rest untouched.

ParameterTypeDescription
content *stringFull new content of the file.
file *stringFile as '<root>/<relative path>'. Roots: cfg (Documents/Assetto Corsa/cfg), ext (CSP user overrides), pure (Pure config), sys (game system/cfg, incl. ppfilters), apps (game apps), extcfg (extension/co…

ac_replace_text

Replace one exact snippet in a text or script file, leaving everything else as it was. Fails without writing if the snippet appears 0 or 2+ times, so read the file with ac_read_text first and include enough context to be unique. Backup + log, undoable. For INI keys ac_set is simpler.

ParameterTypeDescription
file *stringFile as '<root>/<relative path>'. Roots: cfg (Documents/Assetto Corsa/cfg), ext (CSP user overrides), pure (Pure config), sys (game system/cfg, incl. ppfilters), apps (game apps), extcfg (extension/co…
new *stringText that replaces the snippet.
old *stringExact text to replace; must occur exactly once in the file.

ac_install_mod

Install an already-downloaded mod (CSP/Pure-style folders, ppfilters, apps, cars, tracks) from a .zip, .7z, .rar or an extracted folder. dry_run=True only shows the plan: files, overwrites and skipped entries. Real install: AC must be closed; every overwritten file is backed up, and ac_undo restores them and removes files that did not exist. Executables and scripts are never copied; entries escaping the game folder are refused. .7z/.rar need 7-Zip installed.

ParameterTypeDescription
zip_path *stringFull path to a downloaded .zip/.7z/.rar or an extracted folder, e.g. 'C:/Users/me/Downloads/mod.zip'.
dry_runbooleantrue (default) only returns the install plan; false installs.

ac_undo

Restore the files of a backup (empty = the most recent): copies them back and deletes files that did not exist at that point (e.g. from ac_install_mod). The current state is backed up first, so undo is undoable. Use ac_diff first to see what will be reverted; names come from ac_list_backups.

ParameterTypeDescription
backupstringBackup folder name from ac_list_backups, e.g. '20261128-230442-777989'; '' = the most recent backup.

ac_set_mode

Define or update a named setup (e.g. 'vr', 'monitor') as a CSP preset + video preset pair, stored in modes.json in this server's data folder (backed up). Nothing is applied; run ac_switch_mode for that. Both presets must exist (ac_list_presets), otherwise nothing is saved.

ParameterTypeDescription
csp_preset *stringContent Manager CSP preset name without extension, as listed by ac_list_presets.
mode *stringMode name, e.g. 'vr' or 'monitor'.
video_preset *stringContent Manager video preset name without extension, as listed by ac_list_presets, e.g. 'Pimax VR'.

ac_switch_mode

Switch between setups (e.g. VR <-> monitor) by applying the mode's CSP preset and video preset together. Applying only one of them can leave VR-only CSP options (OpenXR, VRS) active on a monitor, which may crash the game while loading. Refuses while Assetto Corsa is running; nothing changes if a preset is missing. Both files are backed up, so ac_undo reverts each.

ParameterTypeDescription
mode *stringMode name, e.g. 'vr' or 'monitor'.