From 9a5a28ab2fe41a20d29d601a097dc8de36137ef7 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Mon, 9 Nov 2026 14:48:14 +0100 Subject: [PATCH] fix: state material privacy on the pin tools bm_pin_material and bm_unpin_material bind /materials paths, so their descriptions carry MCPMaterialPrivacy like the other material tools. --- mcp_student.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp_student.go b/mcp_student.go index 3deac57..d5e32b1 100644 --- a/mcp_student.go +++ b/mcp_student.go @@ -199,7 +199,7 @@ func studentTools() []pact.MCPTool { { Name: "pin_material", Title: "Pin a material", - Description: "Pins a material the signed-in student may see, for this student only (nobody else sees the pin): bm_materials without q then lists it first, newest pin first, and the material answers carry pinned true. Pinning again keeps the first pin time. Answers with no content; a material the student cannot see is not found." + needsScopeWrite, + Description: "Pins a material the signed-in student may see, for this student only (nobody else sees the pin): bm_materials without q then lists it first, newest pin first, and the material answers carry pinned true. Pinning again keeps the first pin time. Answers with no content; a material the student cannot see is not found. " + MCPMaterialPrivacy + needsScopeWrite, Guard: "user", Method: http.MethodPut, Path: TokenPrefix + "/materials/{id}/pin", @@ -208,7 +208,7 @@ func studentTools() []pact.MCPTool { { Name: "unpin_material", Title: "Unpin a material", - Description: "Removes the signed-in student's own pin from a material (it can be pinned again); unpinning a material that is not pinned is not an error. Answers with no content." + needsScopeWrite, + Description: "Removes the signed-in student's own pin from a material (it can be pinned again); unpinning a material that is not pinned is not an error. Answers with no content. " + MCPMaterialPrivacy + needsScopeWrite, Guard: "user", Method: http.MethodDelete, Path: TokenPrefix + "/materials/{id}/pin",