← Catalog

@rackrot/pi-forgejo-mcp

Connects pi to a forgejo-mcp server (https://<host>/mcp) with a curated, repo-focused tool set

Extension

Install

Install with PiG

pig install npm:@rackrot/pi-forgejo-mcp

Install with Pi

pi install npm:@rackrot/pi-forgejo-mcp
Review before installing

Packages 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: default false. The extension does nothing until a layer sets it to true. Put host, token etc. in the global ~/.pi/agent/rackrot/config.json as defaults and set "forgejoMcp": { "enabled": true } in a project's .pi/rackrot.json to opt that project in (project keys override global ones).
  • host (required): bare hostname.
  • token: literal, ${ENV} or !command printing the token. Default ${FORGEJO_TOKEN}.
  • exposure: deferred (default, found via tool_search), codemode, direct or hidden.
  • curate: false exposes 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 publish so the workspace: dependency ranges resolve to real versions; earlier releases were not installable from npm.