brightspace-mcp-server 5.0.11 → 5.0.12

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.
@@ -72,7 +72,13 @@ export function classifyRegistration(entry, platform = process.platform) {
72
72
  if (argv.length === expected.length && argv.every((part, i) => part === expected[i])) {
73
73
  return { state: "current" };
74
74
  }
75
- return { state: "different", current: argv.join(" ") };
75
+ // A changed stdio entry may pass credentials as flags, inline code or URLs.
76
+ // Keep diagnostics useful without copying those arguments into chat/logs.
77
+ const basename = command.split(/[\\/]/).pop()?.toLowerCase() ?? "";
78
+ const name = ["node", "node.exe", "npx", "npx.cmd", "cmd", "cmd.exe"].includes(basename)
79
+ ? basename : "a command";
80
+ const count = argv.length - 1;
81
+ return { state: "different", current: `${name} [${count} argument${count === 1 ? "" : "s"} hidden]` };
76
82
  }
77
83
  /**
78
84
  * A URL with its user-info, query and fragment removed, which is where a
@@ -111,7 +117,7 @@ function readJsonFile(filePath) {
111
117
  return undefined;
112
118
  }
113
119
  }
114
- /** Codex keeps one global registry; `--json` exposes the entry's command. */
120
+ /** Codex exposes the effective entry for this working directory as JSON. */
115
121
  function readCodexEntry(runCommand) {
116
122
  const lookup = runCommand("codex", ["mcp", "get", "brightspace", "--json"], "pipe");
117
123
  if (lookup.status === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brightspace-mcp-server",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
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",