infomentor-se-mcp 1.3.1 → 1.3.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2
4
+
5
+ - Preserve session-cookie updates from authenticated attachment downloads before
6
+ restoring the original child selection. Add a synthetic rotated-cookie
7
+ regression covering the download-to-restoration boundary.
8
+
3
9
  ## 1.3.1
4
10
 
5
11
  - Attribute account-wide notification feed entries only to their declared pupil,
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # InfoMentor MCP
2
2
 
3
- Current release: `1.3.1`. See [CHANGELOG.md](CHANGELOG.md) for release notes.
3
+ Current release: `1.3.2`. See [CHANGELOG.md](CHANGELOG.md) for release notes.
4
4
 
5
5
  A local MCP server for Swedish InfoMentor parent accounts. It uses InfoMentor's
6
6
  HTTPS endpoints directly; it does not use Playwright, browser automation, or a
@@ -60,8 +60,8 @@ are required; Bun is not required.
60
60
  First verify the package from a terminal:
61
61
 
62
62
  ```sh
63
- npx -y infomentor-se-mcp@1.3.1 --version
64
- npx -y infomentor-se-mcp@1.3.1 --help
63
+ npx -y infomentor-se-mcp@1.3.2 --version
64
+ npx -y infomentor-se-mcp@1.3.2 --help
65
65
  ```
66
66
 
67
67
  Then add the server to the MCP host's configuration. This is the standard
@@ -72,7 +72,7 @@ stdio shape used by Claude Desktop, Cursor, Hermes, and other MCP hosts:
72
72
  "mcpServers": {
73
73
  "infomentor": {
74
74
  "command": "npx",
75
- "args": ["-y", "infomentor-se-mcp@1.3.1"],
75
+ "args": ["-y", "infomentor-se-mcp@1.3.2"],
76
76
  "env": {
77
77
  "INFOMENTOR_SE_SESSION_PATH": "/absolute/path/infomentor-session.json",
78
78
  "INFOMENTOR_SE_CREDENTIALS_FILE": "/absolute/path/credentials.json"
@@ -82,7 +82,7 @@ stdio shape used by Claude Desktop, Cursor, Hermes, and other MCP hosts:
82
82
  }
83
83
  ```
84
84
 
85
- Use absolute paths. The exact `@1.3.1` version keeps the host reproducible;
85
+ Use absolute paths. The exact `@1.3.2` version keeps the host reproducible;
86
86
  change it deliberately when upgrading. `@latest` is also supported when you
87
87
  prefer automatic adoption of the newest published version.
88
88
 
@@ -95,7 +95,7 @@ MCP host after changing its command or environment.
95
95
  To expose the opt-in advanced tools, add the `serve` command and flag:
96
96
 
97
97
  ```json
98
- "args": ["-y", "infomentor-se-mcp@1.3.1", "serve", "--allow-advanced-tools"]
98
+ "args": ["-y", "infomentor-se-mcp@1.3.2", "serve", "--allow-advanced-tools"]
99
99
  ```
100
100
 
101
101
  Only enable `--allow-setup-tools` when the host must expose login, setup-status,
package/dist/http.js CHANGED
@@ -106,6 +106,10 @@ export class InfoMentorHttp {
106
106
  redirect: "manual",
107
107
  signal: requestSignal,
108
108
  });
109
+ // Downloads may rotate the authenticated session, just like ordinary requests.
110
+ // Keep the jar current before the caller restores its original child selection.
111
+ for (const cookie of response.headers.getSetCookie())
112
+ this.jar.setCookieSync(cookie, url.href, { ignoreError: true });
109
113
  if (!response.ok || response.redirected || (response.url && response.url !== url.href)) {
110
114
  await response.body?.cancel();
111
115
  throw new InfoMentorError("UNEXPECTED_PAGE", "Attachment download was denied.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infomentor-se-mcp",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Local MCP server for Swedish InfoMentor parent accounts with direct HTTP login",
5
5
  "keywords": [
6
6
  "infomentor",