Files
sm-bm-plugin/mcp.go
Jakub Zych d7cd5baedf feat: private checklists for zjazd preparation
Per-user checklists with items that may link a course, reading, deadline,
material or own presentation deck. An item with a reading shares the
reading's read mark. Student API routes with token twins, MCP tools,
migrations, tests and README.
2026-10-30 12:41:04 +01:00

19 lines
650 B
Go

package bm
import (
"git.golem15.com/golem15/summercms/modules/pact"
)
var _ pact.HasMCP = (*Plugin)(nil)
// MCP declares the plugin's MCP tools. They are exposed with the bm_ prefix,
// bind token-guarded routes only (the token twins of the student API under
// TokenPrefix and the management API under ManagePrefix), run as the
// signed-in user under golem15.user's "user" guard, and their titles and
// descriptions are static text, never built from data.
func (p *Plugin) MCP() pact.MCP {
tools := append(studentTools(), checklistTools()...)
tools = append(tools, manageTools()...)
return pact.MCP{Tools: append(tools, fileTools()...)}
}