Missing create_repo tool #5

Closed
opened 2026-03-02 05:28:43 +00:00 by forgejo_admin · 0 comments
Contributor

Plan

No plan — bug fix. Project context: project-ai-agency

Repo

forgejo_admin/forgejo-mcp — the Forgejo MCP server

User Story

As an agent orchestrator (Betty Sue)
I need a create_repo MCP tool
So that I can create new Forgejo repos without falling back to raw curl with hardcoded credentials

Acceptance Criteria

When I call mcp__forgejo__create_repo(name="test-repo", description="test")
Then a new repo is created on Forgejo
And the tool returns the repo URL and clone URL

Additional Information

Discovered during plan-2026-03-01-dora-metrics-dashboard Phase 1. Had to use raw curl POST /api/v1/user/repos with credentials from ~/secrets/ to create pal-e-dora-exporter.

The MCP has 12 tools covering the PR lifecycle (issue -> branch -> PR -> review -> merge) but missed the repo creation step that precedes it. POST /api/v1/user/repos needs to be wrapped in tools/workflows.py.

Parameters needed: name (required), description (optional), auto_init (default true), default_branch (default "main"), private (default false).

Checklist

  • create_repo tool added to tools/workflows.py
  • Returns repo URL and clone URL
  • MCP server restarts cleanly with new tool
  • pal-e-docs: bug-forgejo-mcp-missing-create-repo
  • plan-2026-03-01-dora-metrics-dashboard — where the gap was discovered
### Plan No plan — bug fix. Project context: `project-ai-agency` ### Repo `forgejo_admin/forgejo-mcp` — the Forgejo MCP server ### User Story As an agent orchestrator (Betty Sue) I need a `create_repo` MCP tool So that I can create new Forgejo repos without falling back to raw `curl` with hardcoded credentials ### Acceptance Criteria When I call `mcp__forgejo__create_repo(name="test-repo", description="test")` Then a new repo is created on Forgejo And the tool returns the repo URL and clone URL ### Additional Information Discovered during `plan-2026-03-01-dora-metrics-dashboard` Phase 1. Had to use raw `curl POST /api/v1/user/repos` with credentials from `~/secrets/` to create `pal-e-dora-exporter`. The MCP has 12 tools covering the PR lifecycle (issue -> branch -> PR -> review -> merge) but missed the repo creation step that precedes it. `POST /api/v1/user/repos` needs to be wrapped in `tools/workflows.py`. Parameters needed: `name` (required), `description` (optional), `auto_init` (default true), `default_branch` (default "main"), `private` (default false). ### Checklist - [ ] `create_repo` tool added to `tools/workflows.py` - [ ] Returns repo URL and clone URL - [ ] MCP server restarts cleanly with new tool ### Related - pal-e-docs: `bug-forgejo-mcp-missing-create-repo` - `plan-2026-03-01-dora-metrics-dashboard` — where the gap was discovered
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/forgejo-mcp#5
No description provided.