Files
sm-quizzes-plugin/mcp.go
Jakub Zych 2fa8aa4178 feat: list, show and confirm open answers over MCP
- classes/review.go: review queue, detail and Confirm, shared by MCP and
  the admin screen; AnswerReviewed and AttemptReviewed after commit
- /api/v1/quiz-reviews routes behind the quizzes permission
- quizzes_review_list, quizzes_review_show, quizzes_review_confirm
2026-11-09 18:02:35 +01:00

16 lines
591 B
Go

package quizzes
import "git.golem15.com/golem15/summercms/modules/pact"
var _ pact.HasMCP = (*Plugin)(nil)
// MCP declares the owner's quiz tools (exposed as quizzes_*) and the
// review tools of the open-answer queue (quizzes_review_*). Every tool
// lists the golem15.quizzes.access_quizzes permission, so a user whose
// groups lack it never lists them, and every route the tools bind checks
// it again (D-13). The plugin still requires only golem15.user and names
// no OAuth server.
func (p *Plugin) MCP() pact.MCP {
return pact.MCP{Tools: append(quizTools(), reviewTools()...)}
}