package user import ( "net/http" "git.golem15.com/golem15/summercms/modules/pact" ) var _ pact.HasMCP = (*Plugin)(nil) // MCP declares the plugin's MCP tools (D-18). me (exposed as user_me) runs // GET /_user/api/v1/token/me as the signed-in frontend user under the // "user" guard and answers the user payload. func (p *Plugin) MCP() pact.MCP { return pact.MCP{Tools: []pact.MCPTool{{ Name: "me", Title: "Current user", Description: "Returns the profile of the signed-in frontend user.", Guard: "user", Method: http.MethodGet, Path: "/_user/api/v1/token/me", Input: struct{}{}, }}} }