
TSUNAGI///Matrix — MAPPING
io.github.mushitarov0.1.0Updated Sep 30, 2026
BMW E46 M3 MSS54HP DME: read bins and Testo logs, get VE and rf_korr corrections, all locally.
Installation
In SourceWeft
- Open TSUNAGI///Matrix — MAPPING in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
matrix-tsunagi — TSUNAGI///Matrix
The calculations behind TSUNAGI's BMW E46 M3 tools, as a library, a command line and MCP servers. Read an MSS54HP DME image and a drive log, and get the VE map correction the drive supports — on your own machine, with no car and no cable.
--sample runs on the practice files shipped in the package. Replace it with --bin <file.bin> --log <file.csv> for your own.
TSUNAGI///Matrix is TSUNAGI's family of tools for the E46 M3 (S54 engine, MSS54HP DME, SMG II): m3.tsunagi.app. This package carries the first category, MAPPING, whose tool is MSS54HP CSL CONVERT /// TUNER.
Ask it
How do I correct the VE (alpha-N) map of my CSL-converted MSS54HP from a Testo log?
Which cells change and by how much, which need more driving and how to drive them, and — with --out — the
tuned BIN with its checksums corrected. That file is byte-for-byte what TUNER's DOWNLOAD TUNED gives for the same two files.
What is in my MSS54HP bin? Are its checksums right? Which patches are on it?
Why did most of my log get thrown away?
Every reason a sample was left out (cold engine, transient, full load, overrun…), each with what to change on the next drive.
What rf_korr table does my drive support? (experimental)
The exhaust-temperature density correction (KF_RF_KORR_DRREL), cell by cell, with the evidence behind each.
What can it do?
For AI assistants
- Run
npx matrix-tsunagi describeonce. Every command prints JSON on stdout, and errors come as JSON on stderr with exit code 1. - Each result has a
summaryto relay,resultwith the numbers, andsource, which says which tool and version computed it and whether the calculation is experimental. applyappears only when the owner would have to write the result to the car. It names the app, says whether the app is free or WORKS, and says how.apply.howandsource.noteare in English and Japanese.- With no files yet, add
--sampleto show the command working on the practice BIN and drive. - Nothing is sent anywhere. Files are read from the paths you give.
MCP
The MAPPING server exposes the same calculations as tools: read_bin, read_log, propose_ve, propose_rfkorr and about_matrix. It runs locally over stdio.
Claude Code:
Claude Desktop (claude_desktop_config.json):
On Windows, if npx is not found, use "command": "cmd" with "args": ["/c", "npx", "-y", "matrix-tsunagi", "mcp", "mapping"].
Library
mapping.readBin, mapping.readLog and mapping.proposeRfKorr take the same inputs.
Putting a result on the car
The calculations are free. Writing a result to the car is done in the apps.
The WORKS builds are for people who have bought MILE on MESH, and for owners of cars TSUNAGI has worked on, on request. They are TUNER's experimental features, E46M3SMG2 /// MAPPING, E46M3 /// MONITORING, MSS54HP CSL CONVERT /// BOOT and E46 M35080 /// MIGRATION. MILE is a one-time payment, with no subscription and no renewal. A purchaser can allocate MILE to a MILESTONE to say what they would like it spent on. That is a wish on record, not a promise of any release or date.
Inputs
- BIN: the 65,536-byte MSS54HP calibration partial ("0401 partial BIN"), the file TUNER reads and writes.
- Log: a CSV with a header row, either Testo's MSS54 export or a CSV TUNER exported. Columns are matched as Testo and TUNER spell them. If a required column is missing, the error names the headers that would be accepted.
Where the numbers come from
This package does not re-implement anything. It bundles TUNER's own code from the public repository
mushitaro/mss54hp-csl-convert-tuner, at the commit the vendor/tuner submodule is pinned to.
Every result names that version and commit in source.
npm run verify holds the tuned BIN to a SHA-256 measured from the app's own DOWNLOAD TUNED, read out of that same commit.
It also runs a control showing the comparison can fail.
日本語
TSUNAGI///Matrix(BMW E46 M3 のツール群)の計算を、ライブラリ・コマンド・MCP で使えるようにしたパッケージです。
MSS54HP の BIN と走行ログ(Testo の CSV)から、VE マップの補正案、ログのどこが使われなかったかとその直し方、rf_korr の表(試験中)を出します。
お手元の PC で計算し、どこにも送信しません。ファイルがなくても --sample で試せます。
VE マップは MSS54HP CSL CONVERT /// TUNER(無料・ブラウザで動作)で車に書き込めます。 rf_korr などの試験中の機能は、TUNER のワークス版でファイルにして書き込みます。 ワークス版は、MESH で MILE をご購入いただいた方と、お申し出いただいた施工オーナーさんがお使いいただけます。 MILE は一回限りのお支払いで、自動更新はありません。 MILESTONE への割り当ては使い道のご希望の表示で、公開や時期を約束するものではありません。
License
MIT, © TSUNAGI. See THIRD-PARTY-NOTICES.md for what is bundled, including the practice BIN.
Source: README.md at commit c6e8993
Tools
0Version history
1- v0.1.0LatestSep 30, 2026

