hub_publish
Publishes a project component to MOGA Hub by packing its version, name, and previews, then listing it for import under the signed-in account; requires sign-in or MOGA_HUB_TOKEN.
Instructions
Publish a project component to MOGA Hub: packs it (pack_component: version, name, title, description, license, with light and dark previews) and sends it; it is listed at once for anyone to import, under the name of whoever signed in. A name belongs to whoever published it first; a version once published never changes: publish a new version instead. Needs an account (hub_sign_in), or MOGA_HUB_TOKEN.
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": {
"tag": "<tag>",
"version": "<version>"
},
"name": "hub_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| name | No | e.g. @acme/price-ticker (default the tag) | |
| title | No | ||
| license | No | MIT | |
| preview | No | ||
| version | Yes | ||
| description | No |