feat: create, publish, import and report on quizzes over MCP

- quizzes_create_quiz, update_quiz, delete_quiz (confirm repeats the
  slug), publish, unpublish, import_quiz (the existing import route) and
  quiz_stats on new manage routes
- stats close expired open test attempts first, then report per student
  over completed whole-quiz attempts and per question over every
  completed attempt
- input is checked before the database; TestManageAPIAgainstDatabase is
  written and skipped under -short
This commit is contained in:
Jakub Zych
2026-11-09 14:30:31 +01:00
parent e615cc88db
commit 4a60eda425
10 changed files with 1275 additions and 5 deletions

View File

@@ -75,8 +75,15 @@ func mcpTestApp(t *testing.T) (*backpack.App, []party.Plugin) {
// pinnedTools is the sorted tool list of golem15.user plus this plugin.
var pinnedTools = []string{
"quizzes_create_quiz",
"quizzes_delete_quiz",
"quizzes_import_quiz",
"quizzes_list_quizzes",
"quizzes_publish",
"quizzes_quiz_stats",
"quizzes_show_quiz",
"quizzes_unpublish",
"quizzes_update_quiz",
"user_me",
}