# /publish — Publish to PyPI

Release a new version of livemcp.

## Pre-flight

1. Run `/verify` first
2. Test with Ableton Live (run `/restart-ableton` + verify all 171 tools work)
3. Update version in `pyproject.toml`
4. Update CHANGELOG or README with new features/fixes
5. Commit: `git commit -m "Bump version to X.Y.Z"`
6. Tag: `git tag vX.Y.Z`
7. Push: `git push && git push --tags`

## Build and Publish

```bash
# Clean previous builds
rm -rf dist/

# Build package
uv build

# Check package contents
tar tzf dist/livemcp-*.tar.gz

# Publish to PyPI (requires API token)
uv publish
```

## Verify Publication

```bash
# Install from PyPI
uvx livemcp@X.Y.Z

# Should connect to Ableton on port 9877
# Test with Claude Desktop or Claude Code
```

## Rollback

PyPI doesn't allow deleting versions. If bad release:
1. Publish a new patch version (X.Y.Z+1)
2. Update docs/README to skip the broken version
