brightspace-mcp-server 5.1.30 → 5.1.31

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.
@@ -3,7 +3,6 @@
3
3
  * Copyright (c) 2026 Rohan Muppa. All rights reserved.
4
4
  * Licensed under MIT — see LICENSE file for details.
5
5
  */
6
- import { DEFAULT_CACHE_TTLS } from "./types.js";
7
6
  import { TTLCache } from "./cache.js";
8
7
  import { TokenBucket } from "./rate-limiter.js";
9
8
  import { discoverVersions } from "./version-discovery.js";
@@ -114,7 +113,7 @@ const LE_VERSION = "{le}";
114
113
  * - Auto-discovers LP/LE versions from /d2l/api/versions/ on the first request
115
114
  * - Supports both Bearer tokens and cookie-based auth (auto-detected via "cookie:" prefix)
116
115
  * - Client-side rate limiting using token bucket algorithm
117
- * - In-memory response caching with per-data-type TTLs
116
+ * - In-memory response caching (each caller passes its TTL to get())
118
117
  * - 401 recovery: refresh the token before requesting browser authentication
119
118
  * - HTTPS-only enforcement
120
119
  * - Browser-like User-Agent for requests
@@ -125,7 +124,6 @@ export class D2LApiClient {
125
124
  tokenManager;
126
125
  cache;
127
126
  rateLimiter;
128
- cacheTTLs;
129
127
  timeoutMs;
130
128
  onAuthExpired;
131
129
  authExpiredMessage;
@@ -181,8 +179,6 @@ export class D2LApiClient {
181
179
  this.onAuthExpired = options.onAuthExpired;
182
180
  this.authExpiredMessage = options.authExpiredMessage;
183
181
  this.retryConfig = options.retry ?? {};
184
- // Merge user-provided TTLs with defaults
185
- this.cacheTTLs = { ...DEFAULT_CACHE_TTLS, ...options.cacheTTLs };
186
182
  // Initialize cache and rate limiter
187
183
  this.cache = new TTLCache();
188
184
  // Sized for the per-course fan-out the tools do (a dozen courses is ~60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brightspace-mcp-server",
3
- "version": "5.1.30",
3
+ "version": "5.1.31",
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",