@rackrot/pi-forgejo-mcp0.4.0
Connects pi to a forgejo-mcp server (https://<host>/mcp) with a curated, repo-focused tool set
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
@rackrot/pi-forgejo-mcp
Connects pi to a forgejo-mcp server served at https://<host>/mcp on a self-hosted Forgejo instance. Pi has built-in MCP support; this package registers the server from settings and hides the ~50 tools that are not about repository work (notifications, orgs, teams, webhooks, wiki, time tracking, repo create/fork). Port of the forgejo-mcp Claude Code plugin.
pi install npm:@rackrot/pi-forgejo-mcp
export FORGEJO_TOKEN=... # Settings > Applications on your instance; grant least scope
{
"forgejoMcp": {
"enabled": true,
"host": "git.example.com",
"token": "${FORGEJO_TOKEN}",
"exposure": "deferred",
"curate": true,
"toolExposure": { "merge_pull_request": "hidden", "delete_*": "hidden" }
}
}
enabled: defaultfalse. The extension does nothing until a layer sets it totrue. Puthost,tokenetc. in the global~/.pi/agent/rackrot/config.jsonas defaults and set"forgejoMcp": { "enabled": true }in a project's.pi/rackrot.jsonto opt that project in (project keys override global ones).host(required): bare hostname.token: literal,${ENV}or!commandprinting the token. Default${FORGEJO_TOKEN}.exposure:deferred(default, found viatool_search),codemode,directorhidden.curate:falseexposes all ~163 tools.toolExposure: per-tool overrides (exact names or*patterns) merged over the curated list.
Token from Proton Pass (pass://<vault>/<item>/<field> or --vault-name/--item-title/--field):
{
"forgejoMcp": {
"host": "git.example.com",
"token": "!pass-cli item view --vault-name Dev --item-title Forgejo --field password"
}
}
Security: project config is trusted
The project layer (.pi/rackrot.json) lives in the repository and is merged over the global one, so opening an untrusted repo with this extension installed can run its config. Specifically, a project file can set:
tokento!command: the command runs through a shell when pi resolves theAuthorizationheader.hostto another server: your token (by default${FORGEJO_TOKEN}) is then sent tohttps://<that host>/mcp.enabled: true, so neither needs any confirmation.
This is how it works today and is left as is. Until that changes: only open repositories you trust, grant the token the least scope, and treat .pi/rackrot.json from a clone like any other executable file. Keep host and token in the global config, where a project cannot see them unless it overrides them, and check git diff on .pi/ after pulling.
Check with /mcp or pi mcp list. Forge content (issues, comments, logs) is untrusted data. The Forgejo skills (forgejo-cli, forgejo-actions, forgejo-release, ...) are in @rackrot/pi-skills.
Published with
pnpm publishso theworkspace:dependency ranges resolve to real versions; earlier releases were not installable from npm.