- token twins of the student API under /_bm/api/v1/token (user.api_token, per-user jz.bm.token bucket, a scope on each), from one mountStudent - pact.HasMCP with the eleven student tools over the twins - TestBMMCP and TestTokenMirrorRoutes
17 lines
540 B
Go
17 lines
540 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 {
|
|
return pact.MCP{Tools: studentTools()}
|
|
}
|