Forgejo Mcp logo

Forgejo Mcp

Community
dujonwalker
forgejo-mcp

Use this skill whenever interacting with a Forgejo instance via the forgejo-mcp MCP server — browsing or managing repositories, files, branches, branch protections, webhooks, issues, dependencies, labels, pull requests, code reviews, Forgejo Actions workflows/jobs/logs/secrets, releases, packages, wikis, organizations, attachments, or time tracking, or reading forgejo:// MCP resources. Also use when configuring, deploying, or troubleshooting forgejo-mcp (stdio, streamable HTTP, SSE, --cli mode, --allowed-hosts, --allow-operator-token-fallback, or OAuth resource-server mode).

Overview

Publisherdujonwalker
Repositoryproject-nova
Skill nameforgejo-mcp
Stars
271
Forks
33
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dujonwalker on GitHub. Read the source before you install it.

Installation

Install the Forgejo Mcp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/forgejo-mcp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dujonwalker/project-nova.git /tmp/project-nova
mkdir -p .claude/skills
cp -r /tmp/project-nova/mcp-skills/forgejo-mcp .claude/skills/forgejo-mcp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Forgejo Mcp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Forgejo Mcp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Forgejo Mcp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Forgejo MCP (forgejo-mcp)

Use the forgejo-mcp MCP tools (and forgejo:// resources when supported) as the primary interface for Forgejo operations.

Core Workflows & Tool Selection

  • forgejo:// resources vs. tools: Prefer a forgejo:// resource when you already have a specific SHA, issue/PR index, or ID; prefer list_* / search_* tools when listing or searching. Resources cap embedded lists at 30 items and include a sentinel naming the list_* tool when truncated.
  • Files & multi-file commits: Use list_repo_contents (path="" for root) or get_repo_tree (recursive=true for full tree), and get_file_content (supports 1-indexed start_line/end_line, ignored if with_metadata=true). Use change_files to atomically create, update, and delete multiple files in one commit; create_file/update_file require exactly one of content or content_base64 (strict standard Base64).
  • Pull requests & diffs: Call list_pull_request_files first, then pass individual filenames as file_path to get_pull_request_diff to avoid loading huge multi-file diffs. Use create_pull_review + submit_pull_review and merge_pull_request.
  • Issues, labels & dependencies: create_issue applies labels (comma-separated names/IDs), assignees, and milestone (numeric ID) in one call. Cross-repo dependencies are supported via add_issue_dependency / remove_issue_dependency (depends_on_owner/depends_on_repo).
  • Forgejo Actions (v16+ for run/job/artifact details): List runs with list_workflow_runs, inspect jobs with list_action_run_jobs, and read tail-first logs with get_action_job_logs (offset/max_bytes). Trigger workflows with dispatch_workflow.
  • Releases, packages & attachments: download_*_attachment returns inline content if < 1 MiB and metadata + URL otherwise. create_*_attachment accepts base64 content or host file_path (disabled by default).

Read references/tools-and-resources.md for the complete tool catalog and forgejo:// URI templates.

Gotchas

  • Actions run_id != web URL run_number: Run-scoped tools (list_action_run_jobs, cancel_workflow_run, delete_workflow_run, list_action_run_artifacts) require the database run_id returned by list_workflow_runs, not the per-repo run_number from .../actions/runs/<N>. Filter list_workflow_runs with "run_number": N to resolve the database run_id.
  • Wiki pages are flat: Slash-separated titles like Guides/Setup do not create hierarchy or a Guides parent. create_wiki_page overwrites existing titles and returns a normalized page_name—always use that page_name in subsequent calls, and %2F-encode / in forgejo://.../wiki/{pageName} URIs without double-encoding.
  • update_issue mutual exclusions & replacements: due_date (RFC3339) and clear_due_date=true cannot both be set. set_labels replaces the entire label set ("" clears all).
  • Label guards & exclusive labels: create_repo_label / create_org_label with exclusive=true requires a scoped name (scope/value, / not at either end). delete_*_label refuses in-use labels unless delete_mode=force.
  • High-impact / irreversible tools: delete_org permanently deletes all repos/teams; reset_issue_time wipes all tracked time on an issue/PR; delete_package deletes one version with no preflight; test_repo_hook triggers a live HTTP webhook delivery; delete_workflow_run fails on live runs and removes logs/artifacts.
  • No file_path uploads by default: create_*_attachment with file_path fails unless the server enables FORGEJO_MCP_ALLOW_FILE_PATH_UPLOAD=1 (ideally confined via FORGEJO_MCP_UPLOAD_ROOT).

Server Setup & Troubleshooting

If forgejo-mcp is not connected or needs transport/network/auth setup (http/sse per-request Authorization vs --allow-operator-token-fallback, --allowed-hosts requirement on non-loopback --host, --cli mode, or OAuth --auth-mode resource-server), read references/setup-and-config.md.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Forgejo Mcp AI skill do?

Use this skill whenever interacting with a Forgejo instance via the forgejo-mcp MCP server — browsing or managing repositories, files, branches, branch protections, webhooks, issues, dependencies, labels, pull requests, code reviews, Forgejo Actions workflows/jobs/logs/secrets, releases, packages, wikis, organizations, attachments, or time tracking, or reading forgejo:// MCP resources. Also use when configuring, deploying, or troubleshooting forgejo-mcp (stdio, streamable HTTP, SSE, --cli mode, --allowed-hosts, --allow-operator-token-fallback, or OAuth resource-server mode).

Why use Forgejo Mcp on TypingMind?

Because you install it once and use it with any model. Forgejo Mcp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Forgejo Mcp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/forgejo-mcp. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Forgejo Mcp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Forgejo Mcp?

As many as you like. As long as a model supports skills, you can use Forgejo Mcp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Forgejo Mcp AI skill free?

Yes. It is published on GitHub by dujonwalker under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇