canvas-parent-mcp 1.1.4 → 1.1.5

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.
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "metadata": {
9
9
  "description": "MCP server for Canvas LMS (Instructure) — courses, grades, assignments, announcements, planner, conversations, files",
10
- "version": "1.1.4"
10
+ "version": "1.1.5"
11
11
  },
12
12
  "plugins": [
13
13
  {
@@ -15,7 +15,7 @@
15
15
  "displayName": "Canvas LMS",
16
16
  "source": "./",
17
17
  "description": "Canvas LMS (Instructure) MCP server for Claude — student/observer access via natural language",
18
- "version": "1.1.4",
18
+ "version": "1.1.5",
19
19
  "author": {
20
20
  "name": "Chris Hall"
21
21
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "canvas-parent-mcp",
3
3
  "displayName": "Canvas LMS",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "description": "Canvas LMS (Instructure) MCP server for Claude — courses, grades, assignments, announcements, planner, conversations, files",
6
6
  "author": {
7
7
  "name": "Chris Hall",
package/dist/auth.js CHANGED
@@ -53,20 +53,14 @@
53
53
  // the legacy paths keep working unchanged.
54
54
  import { bootstrap } from '@fetchproxy/bootstrap';
55
55
  import { classifyBridgeError } from '@fetchproxy/server';
56
+ import { readEnvVar } from '@chrischall/mcp-utils';
56
57
  import { loadAccount } from './config.js';
57
58
  import pkg from '../package.json' with { type: 'json' };
59
+ // Fleet-shared env sanitization (`@chrischall/mcp-utils`): trim + suppress
60
+ // empty/"undefined"/"null"/unsubstituted-${...}-placeholder. Reads process.env
61
+ // by default. Thin alias keeps the existing call sites unchanged.
58
62
  function readEnv(key) {
59
- const raw = process.env[key];
60
- if (typeof raw !== 'string')
61
- return undefined;
62
- const trimmed = raw.trim();
63
- if (trimmed.length === 0)
64
- return undefined;
65
- if (trimmed === 'undefined' || trimmed === 'null')
66
- return undefined;
67
- if (/^\$\{[^}]*\}$/.test(trimmed))
68
- return undefined;
69
- return trimmed;
63
+ return readEnvVar(key);
70
64
  }
71
65
  function fetchproxyDisabled() {
72
66
  const raw = readEnv('CANVAS_DISABLE_FETCHPROXY');