Thanks for helping with the MeshArc Python client. This repository is the only home of the
package that is published to PyPI as mesharc.
Python 3.10 or newer.
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev,mcp]"To try the client against an API running on your own machine, point it there:
export MESHARC_API_URL=http://localhost:8010These are what CI runs on every pull request, on Python 3.10 to 3.14:
ruff check .
mypy
python -m pytest -q
python scripts/check_release.py # the version is the same in pyproject.toml and mesharc/__init__.py- Work on a branch and open a pull request against
main.mainonly changes through pull requests whose checks pass, and every pull request is squash-merged. - Keep a pull request to one change, with tests for it.
- Add a line under
## UnreleasedinCHANGELOG.mdfor anything a user of the client will notice. Internal changes (tests, CI) need no entry. - Only add an option once the live API at mesharc.dev accepts it. The client must never offer something production refuses.
- Comments: docstrings on the public API, since they are the help users see in their editor. Inline comments only where the reason for the code is not obvious.
Please report vulnerabilities privately, as described in SECURITY.md, not in an issue.
Releases are published by .github/workflows/release.yml, through PyPI trusted publishing. No
token is stored anywhere. Releasing is merging a version bump:
- In one pull request, set the new version in
pyproject.tomlandmesharc/__init__.py, and rename## UnreleasedinCHANGELOG.mdto that version, leaving a fresh empty## Unreleasedabove it. - Merge it. On
main, the workflow finds that version has no tag yet: it checks that the version and the changelog agree, tests and builds the package, then waits for an owner to approve thepypienvironment. Once approved it publishes to PyPI (with attestations), creates the tagvX.Y.Zon the merge commit, and the GitHub Release from the changelog section, withmcp-tools.json(the MCP server's tools, fromscripts/mcp_tools.py).
A merge that leaves the version alone releases nothing. Pushing a v* tag by hand still
releases that tag, as before, but only for a version that was not merged as a bump: after a
bump is merged, the workflow makes the tag itself, and a tag pushed by hand as well would start
a second release of the same version.
- Declining the
pypiapproval does not cancel the release: the version is still untagged, so the next merge tomainasks again. - If PyPI accepted the release but creating the tag or the GitHub Release failed, open that run and use Re-run failed jobs. A new run would ask to publish the same version again, which PyPI refuses.
Versioning follows SemVer. While the version is 0.x, a minor release may contain breaking changes, and the changelog says so. A Python version is supported until six months after its upstream end of life; dropping one is a minor release with a changelog entry.
To rehearse a release without publishing, run the Release workflow by hand (Actions → Release → Run workflow). It checks, tests, builds and inspects the package, and publishes nothing.