@plitzi/sdk-mcp 0.38.23 → 0.38.24

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,29 @@
1
1
  # @plitzi/sdk-mcp
2
2
 
3
+ ## 0.38.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 5858b9f: ## Server
8
+
9
+ - **`ctx.oauth.callbackUrl()`** (`@plitzi/sdk-server`) — PZ-161. The address providers send a visitor back to, as this
10
+ run's `connect` hands it to them: for a page that shows whoever sets up the app what to register, instead of
11
+ rebuilding the platform's rule. Refused in a run no visitor's request started when the deployment fixed no
12
+ `functions.oauth.callbackOrigin`.
13
+ - **In production the project's server fixes no OAuth callback** (`@plitzi/sdk-server`). 0.38.23's loopback default
14
+ applied wherever `PUBLIC_URL` was not HTTPS — a container behind a proxy sent providers to its own
15
+ `http://127.0.0.1:8080`. Now loopback is the default while developing only; in production the callback is on the
16
+ address each visitor's request came on (the site's domain, from `Host` and `X-Forwarded-Proto`), and the server says
17
+ to register that domain's `/fn/oauth/callback`.
18
+
19
+ - Updated dependencies [5858b9f]
20
+ - @plitzi/plitzi-sdk@0.38.24
21
+ - @plitzi/sdk-server@0.38.24
22
+ - @plitzi/sdk-authoring@0.38.24
23
+ - @plitzi/sdk-schema@0.38.24
24
+ - @plitzi/sdk-shared@0.38.24
25
+ - @plitzi/sdk-style@0.38.24
26
+
3
27
  ## 0.38.23
4
28
 
5
29
  ### Patch Changes
@@ -781,7 +781,8 @@ any other (\`<namespace>.<action>\`), listed in \`plitzi://actions/{env}/tasks\`
781
781
  \`(await ctx.oauth.connect("calendar", { returnTo: "/settings" })).url\` (\`authorizeParams\` adds to that one consent:
782
782
  \`{ prompt: "select_account" }\`), and \`ctx.oauth.fetch("calendar", url)\` calls the API with the token written in;
783
783
  \`status\`, \`disconnect\` beside them. The platform keeps the token sealed and renews it — never put one in \`kv\`. The
784
- user registers \`/fn/oauth/callback\` on the space's host with the provider. Not connected yet is a refusal with
784
+ user registers \`/fn/oauth/callback\` on the space's host with the provider (\`ctx.oauth.callbackUrl()\` says the
785
+ exact address, for a page that shows it). Not connected yet is a refusal with
785
786
  \`code: "oauth-not-connected"\`. \`token\` hands the access token only to a connection declaring \`exposeToken: true\`.
786
787
  - **Stateless:** nothing a function keeps in memory outlives the call — a module-level cache or counter starts empty
787
788
  every time, on whichever instance runs it. What must last goes in \`ctx.kv\`. A call gets 100 ms of CPU and 10 s;
@@ -73,7 +73,7 @@ var createMcpServer = async ({ adapters, getGrant, preview, screenshot, logger,
73
73
  const getSpace = () => spacePromise ??= loadSpace();
74
74
  const server = new McpServer({
75
75
  name: "plitzi-mcp",
76
- version: "0.38.23"
76
+ version: "0.38.24"
77
77
  }, { instructions: hasSpace ? serverInstructions : widgetsOnlyInstructions });
78
78
  const { getChanges } = adapters;
79
79
  registerResources(server, getSpace, MCP_ENV, log, hasSpace, getChanges ? (query) => getChanges(requireSpaceId(), MCP_ENV, query) : void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-mcp",
3
- "version": "0.38.23",
3
+ "version": "0.38.24",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "@modelcontextprotocol/ext-apps": "^1.7.5",
43
43
  "@modelcontextprotocol/sdk": "^1.32.1",
44
- "@plitzi/plitzi-sdk": "0.38.23",
45
- "@plitzi/sdk-authoring": "0.38.23",
46
- "@plitzi/sdk-schema": "0.38.23",
47
- "@plitzi/sdk-server": "0.38.23",
48
- "@plitzi/sdk-shared": "0.38.23",
49
- "@plitzi/sdk-style": "0.38.23",
44
+ "@plitzi/plitzi-sdk": "0.38.24",
45
+ "@plitzi/sdk-authoring": "0.38.24",
46
+ "@plitzi/sdk-schema": "0.38.24",
47
+ "@plitzi/sdk-server": "0.38.24",
48
+ "@plitzi/sdk-shared": "0.38.24",
49
+ "@plitzi/sdk-style": "0.38.24",
50
50
  "ejs": "^7.0.2",
51
51
  "esbuild": "^0.28.2",
52
52
  "zod": "^4.6.7"