Install
Install with PiG
pig install npm:@rackrot/pi-forgejo-mcpInstall with Pi
pi install npm:@rackrot/pi-forgejo-mcpPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./src/index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.1 (README.md). PiG does not review it.
@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"
}
}
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.