brightspace-mcp-server 3.12.2 → 3.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,6 +138,7 @@ async function getForumDetail(apiClient, courseId, forumId) {
|
|
|
138
138
|
log("DEBUG", `Failed to fetch posts for topic ${topic.TopicId}`, error);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
const formatted = formatPosts(posts);
|
|
141
142
|
topicsWithPosts.push({
|
|
142
143
|
topicId: topic.TopicId,
|
|
143
144
|
name: topic.Name,
|
|
@@ -148,8 +149,8 @@ async function getForumDetail(apiClient, courseId, forumId) {
|
|
|
148
149
|
isLocked: topic.IsLocked,
|
|
149
150
|
mustPostToParticipate: topic.MustPostToParticipate,
|
|
150
151
|
scoreOutOf: topic.ScoreOutOf,
|
|
151
|
-
postCount:
|
|
152
|
-
posts:
|
|
152
|
+
postCount: formatted.length,
|
|
153
|
+
posts: formatted,
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
156
|
log("INFO", `get_discussions: Retrieved forum ${forumId} with ${topics.length} topics for course ${courseId}`);
|
|
@@ -180,7 +181,9 @@ async function getTopicPosts(apiClient, courseId, forumId, topicId) {
|
|
|
180
181
|
const posts = await apiClient.get(postsPath, {
|
|
181
182
|
ttl: DEFAULT_CACHE_TTLS.announcements,
|
|
182
183
|
});
|
|
183
|
-
|
|
184
|
+
// Count what is returned: formatPosts drops deleted posts.
|
|
185
|
+
const formatted = formatPosts(posts);
|
|
186
|
+
log("INFO", `get_discussions: Retrieved ${formatted.length} posts for topic ${topicId} in forum ${forumId}`);
|
|
184
187
|
return toolResponse({
|
|
185
188
|
courseId,
|
|
186
189
|
forumId,
|
|
@@ -195,8 +198,8 @@ async function getTopicPosts(apiClient, courseId, forumId, topicId) {
|
|
|
195
198
|
mustPostToParticipate: topic.MustPostToParticipate,
|
|
196
199
|
scoreOutOf: topic.ScoreOutOf,
|
|
197
200
|
},
|
|
198
|
-
postCount:
|
|
199
|
-
posts:
|
|
201
|
+
postCount: formatted.length,
|
|
202
|
+
posts: formatted,
|
|
200
203
|
});
|
|
201
204
|
}
|
|
202
205
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brightspace-mcp-server",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.3",
|
|
4
4
|
"mcpName": "io.github.RohanMuppa/brightspace",
|
|
5
5
|
"description": "MCP server for Brightspace (D2L). Check grades, due dates, assignments, announcements, syllabus, rosters and more via Claude, ChatGPT, Cursor, Windsurf, or any MCP client.",
|
|
6
6
|
"type": "module",
|