Forgejo/Codeberg management CLI and MCP server
|
David Wilson
fa19775172
Relock against sigil 0.17.1; bump to v0.2.2
Regenerate sigil.lock against the reintegrated monorepo. The rebuild had been silently linking stale 0.14.x pins after the package.sgl version bump (lock never regenerated). |
||
|---|---|---|
| src | Read mcp-server version from (app-version); bump to v0.2.1 | |
| .gitignore | Add .sigil/ to gitignore | |
| dev-redirects.sgl | Bump deps to sigil ^0.17 / sigil-mcp 0.16.2 ecosystem | |
| package.sgl | Relock against sigil 0.17.1; bump to v0.2.2 | |
| README.md | Migrate to transitive deps with version ranges and lockfile | |
| sigil.lock | Relock against sigil 0.17.1; bump to v0.2.2 | |
fjo
A Forgejo/Codeberg management tool built with Sigil. Works as both a CLI for humans and an MCP server for AI agents.
CLI Usage
fjo repos list sigil # List repos in org
fjo repos info sigil kiln # Repo details
fjo repos create sigil new-repo "desc" # Create repo
fjo topics list sigil kiln # List topics
fjo topics set sigil kiln app ci # Set topics
fjo topics add sigil kiln library # Add topic
fjo issues list sigil kiln # List issues
fjo issues get sigil kiln 42 # Get issue details
fjo issues create sigil kiln "Bug title" # Create issue
fjo prs list sigil kiln # List pull requests
fjo prs get sigil kiln 7 # Get PR details
fjo releases list sigil sigil # List releases
MCP Server
Start with fjo serve. Exposes these tools:
fjo/repos-list,fjo/repos-info,fjo/repos-createfjo/topics-list,fjo/topics-set,fjo/topics-addfjo/issues-list,fjo/issues-get,fjo/issues-create,fjo/issues-commentfjo/pulls-list,fjo/pulls-get,fjo/pulls-create,fjo/pulls-mergefjo/releases-list,fjo/releases-create
Configuration
fjo reads a .env-fjo file from the working directory at startup if present.
This is the standard convention for Sigil MCP servers — credentials live in a
dotenv file rather than in the MCP server configuration.
Create a .env-fjo in your project root:
FORGEJO_TOKEN=your-api-token-here
FORGEJO_URL=https://codeberg.org
Environment variables set through other means (shell export, MCP config) take precedence over the dotenv file.
| Variable | Description | Default |
|---|---|---|
FORGEJO_TOKEN |
API token (required) | — |
FORGEJO_URL |
Instance base URL | https://codeberg.org |
Building
sigil deps install
sigil build
The bundled binary is at build/dev/bin/fjo.
Dependencies
- sigil-forgejo — Forgejo API client library
License
BSD-3-Clause