frameworc-mcp 0.2.0 → 0.4.0

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/dist/session.js CHANGED
@@ -6,6 +6,8 @@ const sites_js_1 = require("./sites.js");
6
6
  class Session {
7
7
  url = null;
8
8
  tokenOverride = null;
9
+ /** The CMS multisite site to read and write. Null means the primary site. */
10
+ siteId = null;
9
11
  id;
10
12
  constructor() {
11
13
  this.id = (0, node_crypto_1.randomUUID)();
@@ -18,6 +20,14 @@ class Session {
18
20
  else {
19
21
  this.tokenOverride = null;
20
22
  }
23
+ // A different install has its own site ids.
24
+ this.siteId = null;
25
+ }
26
+ setSiteId(siteId) {
27
+ this.siteId = siteId;
28
+ }
29
+ getSiteId() {
30
+ return this.siteId;
21
31
  }
22
32
  getToken() {
23
33
  if (!this.url) {
@@ -41,6 +51,7 @@ class Session {
41
51
  clear() {
42
52
  this.url = null;
43
53
  this.tokenOverride = null;
54
+ this.siteId = null;
44
55
  }
45
56
  }
46
57
  exports.Session = Session;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frameworc-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "MCP server for the FrameworC OctoberCMS plugin — programmatically create/edit FrameworC pages and blocks.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",