@topolo/mcp 0.9.1 → 0.9.3
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/README.md +8 -4
- package/dist/dispatch.js +3 -3
- package/dist/http.js +182 -176
- package/dist/index.js +139 -39
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -168,10 +168,14 @@ relevant permissions, and new actions become discoverable/callable without an
|
|
|
168
168
|
MCP release once the application publishes them.
|
|
169
169
|
|
|
170
170
|
`topolo_read_action` and `topolo_call_action` accept an optional paired
|
|
171
|
-
`resourceType` / `resourceId` context
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
171
|
+
`resourceType` / `resourceId` context that scopes the call to one workspace (or
|
|
172
|
+
another cataloged resource alias). Workspaces are platform-owned — the record
|
|
173
|
+
lives once in TopoloAuth and a workspace belongs to exactly one app — so this
|
|
174
|
+
only selects which workspace the call is scoped to; it does not create or own
|
|
175
|
+
one. The SDK sends it as resource headers without changing the credential's
|
|
176
|
+
personal or organization context. This lets agents address many workspaces
|
|
177
|
+
independently; providing only one of the pair is rejected before the request is
|
|
178
|
+
sent.
|
|
175
179
|
|
|
176
180
|
## Safety rails
|
|
177
181
|
|
package/dist/dispatch.js
CHANGED
|
@@ -203,7 +203,7 @@ var TOOLS = [
|
|
|
203
203
|
properties: {
|
|
204
204
|
actionId: { type: "string", minLength: 1 },
|
|
205
205
|
input: { type: "object", additionalProperties: true },
|
|
206
|
-
resourceType: { type: "string", description: "Optional
|
|
206
|
+
resourceType: { type: "string", description: "Optional resource-scoping alias published in the app resource catalog (e.g. workspace, brand, merchant)." },
|
|
207
207
|
resourceId: { type: "string", description: "Resource id. Required when resourceType is provided." }
|
|
208
208
|
},
|
|
209
209
|
required: ["actionId"],
|
|
@@ -235,7 +235,7 @@ var TOOLS = [
|
|
|
235
235
|
properties: {
|
|
236
236
|
actionId: { type: "string", minLength: 1 },
|
|
237
237
|
input: { type: "object", additionalProperties: true },
|
|
238
|
-
resourceType: { type: "string", description: "Optional
|
|
238
|
+
resourceType: { type: "string", description: "Optional resource-scoping alias published in the app resource catalog (e.g. workspace, brand, merchant)." },
|
|
239
239
|
resourceId: { type: "string", description: "Resource id. Required when resourceType is provided." },
|
|
240
240
|
confirm: { type: "boolean" }
|
|
241
241
|
},
|
|
@@ -296,7 +296,7 @@ var TOOLS = [
|
|
|
296
296
|
properties: {
|
|
297
297
|
actionId: { type: "string", minLength: 1 },
|
|
298
298
|
input: { type: "object", additionalProperties: true },
|
|
299
|
-
resourceType: { type: "string", description: "Optional
|
|
299
|
+
resourceType: { type: "string", description: "Optional resource-scoping alias published in the app resource catalog (e.g. workspace, brand, merchant)." },
|
|
300
300
|
resourceId: { type: "string", description: "Resource id. Required when resourceType is provided." },
|
|
301
301
|
confirm: { type: "boolean", description: "Include confirmation in the plan without executing the action." }
|
|
302
302
|
},
|