brightspace-mcp-server 5.1.41 → 5.1.42

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.
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { ApiError, DEFAULT_CACHE_TTLS } from "../api/index.js";
7
7
  import { GetDropboxSubmissionsSchema } from "./schemas.js";
8
- import { toolResponse, sanitizeError, errorResponse } from "./tool-helpers.js";
8
+ import { toolResponse, sanitizeError, errorResponse, throwIfCredentialRejected } from "./tool-helpers.js";
9
9
  import { log } from "../utils/logger.js";
10
10
  // Per-submitter feedback lookup is one GET each; cap how many run at once so
11
11
  // a large dropbox folder can't fan out hundreds of concurrent requests.
@@ -100,6 +100,7 @@ export function registerGetDropboxSubmissions(server, apiClient) {
100
100
  feedbackMap.set(userId, fb);
101
101
  }
102
102
  catch (error) {
103
+ throwIfCredentialRejected(error);
103
104
  if (!(error instanceof ApiError && error.status === 404)) {
104
105
  feedbackUnread.add(userId);
105
106
  }
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { ApiError } from "../api/index.js";
7
7
  import { GetDropboxUserSubmissionsSchema } from "./schemas.js";
8
- import { toolResponse, sanitizeError, errorResponse } from "./tool-helpers.js";
8
+ import { toolResponse, sanitizeError, errorResponse, throwIfCredentialRejected } from "./tool-helpers.js";
9
9
  import { log } from "../utils/logger.js";
10
10
  /**
11
11
  * Register get_dropbox_user_submissions tool.
@@ -65,6 +65,7 @@ export function registerGetDropboxUserSubmissions(server, apiClient) {
65
65
  feedback = await apiClient.get(feedbackPath);
66
66
  }
67
67
  catch (error) {
68
+ throwIfCredentialRejected(error);
68
69
  if (!(error instanceof ApiError && error.status === 404)) {
69
70
  feedbackUnread = true;
70
71
  log("INFO", "get_dropbox_user_submissions: Feedback could not be read", { courseId, folderId, userId });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brightspace-mcp-server",
3
- "version": "5.1.41",
3
+ "version": "5.1.42",
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",