publish_package
Publish Python packages to PyPI using uv publish. Provide project directory and PyPI token via parameter or environment variable.
Instructions
Publish the built package to PyPI using 'uv publish'. Requires a PyPI token — either pass it directly or set UV_PUBLISH_TOKEN env var.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_dir": "<project_dir>"
},
"name": "publish_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | Yes | ||
| token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |