mfai-viewer
The writer behind the open_in_viewer tool of the MODFLOW AI MCP
(https://mcp.modflow.ai). It turns a MODFLOW 6 simulation that was built
with FloPy and run on this machine into the snapshot the MODFLOW AI web
viewer (viewer.modflow.ai) reads, and uploads that snapshot to the link
the MCP tool created.
python -m pip install mfai-viewer
mfai-viewer snapshot --workdir <model dir> --out <snapshot dir>
mfai-viewer upload <snapshot dir> "<uploads url from open_in_viewer>"
mfai-viewer version
snapshot refuses a model that has not been run (no head file). It writes
manifest.json and a small summary.json; the MCP tool takes the summary
and answers the one upload command to run. upload sends every file in
parallel, retries, marks the link complete and prints the URL.
Exit codes: 0 done, 2 the environment cannot run it (Python older than 3.10, missing packages, bad arguments), 3 the model has not been run, 4 files are still missing after the upload, 1 anything else.
The writer code (mfai_viewer/writer) and the GWlink slice it vendors
(mfai_viewer/gwlink) are copied byte for byte from the mfai-chat and gwlink
repositories; mfai_viewer/sources.json records the commits and the sha256
of every file. Nothing is edited here.
Release files for mfai-viewer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mfai_viewer-0.1.0.tar.gz | 138.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mfai_viewer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 295.7 kB
Release files / mfai_viewer-0.1.0.tar.gz
| Download URL | mfai_viewer-0.1.0.tar.gz |
|---|---|
| Size | 138.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fb6e0d4eef9f0ddd14fe1ace04872c1ba5d54012c0a7f05ccc48974d55e9f54
|
|
BLAKE2b-256 checksum How to use checksums |
a00bcc36e0066c1203fc7ef4992dea91298141994e8bc816da12f3916ae2b7ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / mfai_viewer-0.1.0-py3-none-any.whl
| Download URL | mfai_viewer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 157.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
573562fd1badee36bad757cb84cd652e9c0f77645f15c6ca2f194fa309d12c84
|
|
BLAKE2b-256 checksum How to use checksums |
6a589a10abc7bc2b42758c172ee80471c62993e4eb10eb404fd912840c3c8315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|