AtlatestRepositoryfjo
1
# fjo3
A Forgejo/Codeberg management tool built with [Sigil](https://codeberg.org/sigil/sigil). Works as both a CLI for humans and an MCP server for AI agents.5
## CLI Usage7
```8
fjo repos list sigil # List repos in org9
fjo repos info sigil kiln # Repo details10
fjo repos create sigil new-repo "desc" # Create repo11
fjo topics list sigil kiln # List topics12
fjo topics set sigil kiln app ci # Set topics13
fjo topics add sigil kiln library # Add topic14
fjo issues list sigil kiln # List issues15
fjo issues get sigil kiln 42 # Get issue details16
fjo issues create sigil kiln "Bug title" # Create issue17
fjo prs list sigil kiln # List pull requests18
fjo prs get sigil kiln 7 # Get PR details19
fjo releases list sigil sigil # List releases20
```22
## MCP Server24
Start with `fjo serve`. Exposes these tools:26
- `fjo/repos-list`, `fjo/repos-info`, `fjo/repos-create`27
- `fjo/topics-list`, `fjo/topics-set`, `fjo/topics-add`28
- `fjo/issues-list`, `fjo/issues-get`, `fjo/issues-create`, `fjo/issues-comment`29
- `fjo/pulls-list`, `fjo/pulls-get`, `fjo/pulls-create`, `fjo/pulls-merge`30
- `fjo/releases-list`, `fjo/releases-create`32
## Configuration34
fjo reads a `.env-fjo` file from the working directory at startup if present.35
This is the standard convention for Sigil MCP servers — credentials live in a36
dotenv file rather than in the MCP server configuration.38
Create a `.env-fjo` in your project root:40
```41
FORGEJO_TOKEN=your-api-token-here42
FORGEJO_URL=https://codeberg.org43
```45
Environment variables set through other means (shell export, MCP config) take46
precedence over the dotenv file.48
| Variable | Description | Default |49
|----------|-------------|---------|50
| `FORGEJO_TOKEN` | API token (required) | — |51
| `FORGEJO_URL` | Instance base URL | `https://codeberg.org` |53
## Building55
```bash56
sigil deps install57
sigil build58
```60
The bundled binary is at `build/dev/bin/fjo`.62
## Dependencies64
- [sigil-forgejo](https://codeberg.org/sigil/sigil-forgejo) — Forgejo API client library66
## License68
BSD-3-Clause