brightspace-mcp-server 5.0.10 → 5.0.11
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/build/index.js +14 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -30,6 +30,20 @@ const PKG_VERSION = (() => {
|
|
|
30
30
|
})();
|
|
31
31
|
// ── Subcommand routing (before any MCP initialization) ──────────────
|
|
32
32
|
const subcommand = process.argv[2];
|
|
33
|
+
const COMMANDS = ['setup', 'auth', 'doctor', 'http'];
|
|
34
|
+
// A mistyped command (`htp`) must not quietly start a stdio server that sits
|
|
35
|
+
// waiting on stdin. Flags alone still mean the default stdio server.
|
|
36
|
+
if (subcommand !== undefined && !subcommand.startsWith('-') && !COMMANDS.includes(subcommand)) {
|
|
37
|
+
process.stderr.write(`Unknown command: ${subcommand}\n\n` +
|
|
38
|
+
'Usage: brightspace-mcp-server [command]\n\n' +
|
|
39
|
+
'Commands:\n' +
|
|
40
|
+
' (none) run the MCP server on stdio (what MCP clients launch)\n' +
|
|
41
|
+
' http run one shared MCP server on localhost\n' +
|
|
42
|
+
' setup configure your school and sign-in\n' +
|
|
43
|
+
' auth sign in to Brightspace now\n' +
|
|
44
|
+
' doctor check the install and configuration\n');
|
|
45
|
+
process.exit(2);
|
|
46
|
+
}
|
|
33
47
|
if (subcommand === 'setup') {
|
|
34
48
|
await import('./setup.js');
|
|
35
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brightspace-mcp-server",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.11",
|
|
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",
|