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.
19 lines
650 B
Go
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()...)}
|
|
}
|