canvas-parent-mcp 1.1.5 → 1.1.7
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/dist/auth.js +10 -7
- package/dist/bundle.js +794 -132
- package/dist/client.js +70 -56
- package/dist/index.js +1 -1
- package/dist/qr-login.js +8 -2
- package/dist/session-login.js +5 -5
- package/package.json +3 -3
- package/server.json +2 -2
|
@@ -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.
|
|
10
|
+
"version": "1.1.7"
|
|
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.
|
|
18
|
+
"version": "1.1.7",
|
|
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
|
+
"version": "1.1.7",
|
|
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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chris Hall
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# canvas-parent-mcp
|
|
2
2
|
|
|
3
|
+
[](https://github.com/chrischall/canvas-parent-mcp/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/canvas-parent-mcp)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
|
|
3
7
|
MCP server for Canvas LMS (Instructure), scoped for parent observers and student self-access. Targets `https://cms.instructure.com` by default but works against any Canvas instance.
|
|
4
8
|
|
|
5
9
|
Mirrors the read-only parent-portal scope of sibling [`infinitecampus-mcp`](https://github.com/chrischall/infinitecampus-mcp). Users interact via the `canvas_*` tool prefix.
|
package/dist/auth.js
CHANGED
|
@@ -14,17 +14,20 @@
|
|
|
14
14
|
// most reliable mode but most schools have disabled token creation
|
|
15
15
|
// for non-admins. Unchanged from pre-fetchproxy behavior.
|
|
16
16
|
//
|
|
17
|
-
// 2.
|
|
18
|
-
// CANVAS_CLIENT_ID + CANVAS_CLIENT_SECRET + CANVAS_REFRESH_TOKEN →
|
|
19
|
-
// `grant_type=refresh_token` against `/login/oauth2/token`, bootstrap
|
|
20
|
-
// via the bundled QR-login helper. Unchanged.
|
|
21
|
-
//
|
|
22
|
-
// 3. Username/password session-scrape (existing)
|
|
17
|
+
// 2. Username/password session-scrape (existing)
|
|
23
18
|
// CANVAS_USERNAME + CANVAS_PASSWORD → scrape `authenticity_token`
|
|
24
19
|
// from `/login/canvas`, POST creds, capture `canvas_session` +
|
|
25
20
|
// `pseudonym_credentials` cookies. Brittle (breaks on SSO/2FA and
|
|
26
21
|
// every Canvas login-page restyling) but works for direct Canvas
|
|
27
|
-
// accounts.
|
|
22
|
+
// accounts. Takes precedence over OAuth (path 3) — see the
|
|
23
|
+
// precedence order in `loadAccount()` (config.ts), which returns the
|
|
24
|
+
// username/password account before checking the OAuth triple.
|
|
25
|
+
// Unchanged from pre-fetchproxy behavior.
|
|
26
|
+
//
|
|
27
|
+
// 3. OAuth refresh token (existing)
|
|
28
|
+
// CANVAS_CLIENT_ID + CANVAS_CLIENT_SECRET + CANVAS_REFRESH_TOKEN →
|
|
29
|
+
// `grant_type=refresh_token` against `/login/oauth2/token`, bootstrap
|
|
30
|
+
// via the bundled QR-login helper. Unchanged.
|
|
28
31
|
//
|
|
29
32
|
// 4. fetchproxy fallback (new)
|
|
30
33
|
// When no env vars are set, lift the user's session out of their
|