createRepo
Create a Git repository, push initial files, and publish it to Nostr in a single call. Automatically loads credentials from .nostr-keys.json for quick agent setup.
Instructions
CREATE A REPO IN ONE CALL - Push files AND publish to Nostr. Best for agents! Auto-loads credentials from .nostr-keys.json.
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": {
"name": "<name>"
},
"name": "createRepo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Repository name (required) | |
| files | No | Initial files to push | |
| branch | No | Branch name (default: main) | |
| pubkey | No | Public key (auto-derived from privkey) | |
| relays | No | ||
| privkey | No | Private key (auto-loaded if .nostr-keys.json exists) | |
| publicRead | No | false = private repo (hidden from listings, content only readable by owner/contributors). Default true. Note: the repo name/description in the kind 30617 announcement stay publicly visible on relays. | |
| description | No | Repository description | |
| graspServer | No | GRASP server (default: relay.ngit.dev) | |
| pushCostSats | No | Optional pay-to-push cost in sats (synced to bridge + kind 30617 push_cost_sats) |