@lambdacurry/arbor 0.13.6 → 0.13.7
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/arbor.js +43 -0
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16440,6 +16440,16 @@ var id = exports_external.string();
|
|
|
16440
16440
|
var timestamp = exports_external.string();
|
|
16441
16441
|
var nullableString = exports_external.string().nullable();
|
|
16442
16442
|
var jsonObject = exports_external.looseObject({});
|
|
16443
|
+
var appInvocationResponse = exports_external.object({
|
|
16444
|
+
status: exports_external.number().int().min(100).max(599),
|
|
16445
|
+
headers: exports_external.record(exports_external.string(), exports_external.string()),
|
|
16446
|
+
body: exports_external.string(),
|
|
16447
|
+
byteCount: exports_external.number().int().min(0).max(64 * 1024),
|
|
16448
|
+
truncated: exports_external.boolean(),
|
|
16449
|
+
bodyKind: exports_external.enum(["text", "unsupported"]),
|
|
16450
|
+
unsupportedReason: exports_external.enum(["binary_content_type", "invalid_utf8"]).optional(),
|
|
16451
|
+
json: exports_external.json().optional()
|
|
16452
|
+
});
|
|
16443
16453
|
var spaceRef = exports_external.looseObject({ id, title: nullableString });
|
|
16444
16454
|
var recallHit = exports_external.looseObject({
|
|
16445
16455
|
id,
|
|
@@ -16950,6 +16960,8 @@ var MCP_OUTPUT_SCHEMAS = {
|
|
|
16950
16960
|
url: exports_external.string()
|
|
16951
16961
|
}),
|
|
16952
16962
|
app_deployment_get: exports_external.looseObject({ deployment, bundle: jsonObject }),
|
|
16963
|
+
app_fetch: appInvocationResponse,
|
|
16964
|
+
app_request: appInvocationResponse,
|
|
16953
16965
|
app_create: app2,
|
|
16954
16966
|
app_deploy: exports_external.looseObject({
|
|
16955
16967
|
deployment,
|
|
@@ -17211,6 +17223,8 @@ var MCP_TOOL_ANNOTATIONS = {
|
|
|
17211
17223
|
app_get: readOnly,
|
|
17212
17224
|
app_list: readOnly,
|
|
17213
17225
|
app_deployment_get: readOnly,
|
|
17226
|
+
app_fetch: readOnly,
|
|
17227
|
+
app_request: destructive,
|
|
17214
17228
|
app_create: additive,
|
|
17215
17229
|
app_deploy: idempotent,
|
|
17216
17230
|
app_activate: additive,
|
|
@@ -18851,6 +18865,35 @@ var ACTION_DEFINITIONS = [
|
|
|
18851
18865
|
toolset: "apps",
|
|
18852
18866
|
run: forward("app.deployment_get")
|
|
18853
18867
|
},
|
|
18868
|
+
{
|
|
18869
|
+
name: "app_fetch",
|
|
18870
|
+
title: "Fetch from an App",
|
|
18871
|
+
description: "READ ONLY: Invoke GET or HEAD on one relative path of an App using your current Arbor identity; for Space Apps, current Space membership is rechecked on every call. It cannot modify App lifecycle, deployments, access, or durable SQLite; browser grants, cookies, credentials, and reserved /__arbor paths are never exposed to App code.",
|
|
18872
|
+
inputSchema: {
|
|
18873
|
+
appId: exports_external.string().describe("target App, app_…"),
|
|
18874
|
+
path: exports_external.string().min(1).max(2048).describe("relative App path beginning with /; may include a query string"),
|
|
18875
|
+
method: exports_external.enum(["GET", "HEAD"]).optional().describe("safe read method; default GET")
|
|
18876
|
+
},
|
|
18877
|
+
surfaces: ["mcp"],
|
|
18878
|
+
toolset: "apps",
|
|
18879
|
+
run: forward("app.fetch")
|
|
18880
|
+
},
|
|
18881
|
+
{
|
|
18882
|
+
name: "app_request",
|
|
18883
|
+
title: "Send a mutating App request",
|
|
18884
|
+
description: "Send POST, PUT, PATCH, or DELETE to one relative path of an App using your current Arbor identity; the App may mutate its own state. Supply either json or UTF-8 body, never both; browser grants, cookies, credentials, caller headers, and reserved /__arbor paths are never exposed to App code.",
|
|
18885
|
+
inputSchema: {
|
|
18886
|
+
appId: exports_external.string().describe("target App, app_…"),
|
|
18887
|
+
path: exports_external.string().min(1).max(2048).describe("relative App path beginning with /; may include a query string"),
|
|
18888
|
+
method: exports_external.enum(["POST", "PUT", "PATCH", "DELETE"]).describe("mutating HTTP method"),
|
|
18889
|
+
json: exports_external.json().optional().describe("JSON request value; mutually exclusive with body and sets application/json"),
|
|
18890
|
+
body: exports_external.string().optional().describe("UTF-8 request body; mutually exclusive with json"),
|
|
18891
|
+
contentType: exports_external.string().max(160).optional().describe("body media type; allowed only with body, default text/plain; charset=utf-8")
|
|
18892
|
+
},
|
|
18893
|
+
surfaces: ["mcp"],
|
|
18894
|
+
toolset: "apps",
|
|
18895
|
+
run: forward("app.request")
|
|
18896
|
+
},
|
|
18854
18897
|
{
|
|
18855
18898
|
name: "app_activate",
|
|
18856
18899
|
title: "Activate a verified deployment",
|
package/package.json
CHANGED