Files
gitea-mcp/internal/tools
Mathias 5545d6ab4b fix(create_project_from_template): accept per-call template_name override
The template name was hardcoded into the binary at startup via
NewCreateProjectFromTemplate("mathias", "template-go-web"), so
generating from a different template (e.g. template-go-agent)
required a code change and restart. The constructor already
parameterised it correctly — the gap was at the tool's input
schema, which never exposed template_name to the caller.

Adds an optional template_name input field. When set, it overrides
the server-configured default for that call only; when omitted,
behavior is unchanged. Template owner stays server-configured —
only the repo name is per-call.

Server-side validation already verifies the resolved template
exists and is marked as a template repo, so no enum constraint
is added — keeps the door open for future templates (go-ml,
go-service, ...) without redeploys.

Adds TestCreateProjectTemplateNameOverride verifying the override
directs both the template lookup and the /generate POST.

Closes #24
2026-05-16 23:24:16 +02:00
..
2026-05-06 22:42:38 +02:00
2026-05-06 22:38:15 +02:00
2026-05-06 22:49:50 +02:00
2026-05-06 22:49:50 +02:00
2026-05-06 22:51:21 +02:00
2026-05-06 22:51:21 +02:00
2026-05-04 22:21:20 +02:00
2026-05-04 22:21:20 +02:00
2026-05-06 22:46:11 +02:00
2026-05-06 22:46:11 +02:00
2026-05-06 22:48:02 +02:00
2026-05-06 22:48:02 +02:00
2026-05-04 22:08:24 +02:00
2026-05-04 22:08:24 +02:00
2026-05-04 22:07:44 +02:00
2026-05-06 22:59:51 +02:00
2026-05-06 22:59:51 +02:00
2026-05-06 22:54:22 +02:00
2026-05-06 22:54:22 +02:00