@zuplo/runtime 6.64.44 → 6.64.46
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/out/esm/index.js +59 -59
- package/out/esm/index.js.map +1 -1
- package/out/types/index.d.ts +26 -0
- package/package.json +1 -1
package/out/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CallToolRequest } from "@zuplo/mcp/types";
|
|
2
|
+
import { CallToolResult } from "@zuplo/mcp/types";
|
|
1
3
|
import { KeyLike } from "jose";
|
|
2
4
|
import { RequestGeneric as RequestGeneric_2 } from "../../request.js";
|
|
3
5
|
import type { ValidateFunction } from "ajv";
|
|
@@ -9767,6 +9769,30 @@ export declare interface ZuploContext extends EventTarget {
|
|
|
9767
9769
|
|
|
9768
9770
|
/* Excluded from this release type: ZuploEventContext */
|
|
9769
9771
|
|
|
9772
|
+
/**
|
|
9773
|
+
* A helper SDK for MCP module authors to interact with the MCP runtime.
|
|
9774
|
+
*
|
|
9775
|
+
* Allows access to the original MCP request and setting metadata on the response.
|
|
9776
|
+
*/
|
|
9777
|
+
export declare class ZuploMcpSdk {
|
|
9778
|
+
private context;
|
|
9779
|
+
constructor(context: ZuploContext);
|
|
9780
|
+
/**
|
|
9781
|
+
* Retrieves the MCP request object from the context.
|
|
9782
|
+
* Use this to access metadata like `_meta` from the incoming tool call.
|
|
9783
|
+
*
|
|
9784
|
+
* @returns The "@zuplo/mcp" MCP call tool request object or null if not found
|
|
9785
|
+
*/
|
|
9786
|
+
getRawCallToolRequest(): CallToolRequest | null;
|
|
9787
|
+
/**
|
|
9788
|
+
* Sets the MCP request/response context object.
|
|
9789
|
+
* Use this to set `_meta` that should be included in the tool result.
|
|
9790
|
+
*
|
|
9791
|
+
* @param req - The object containing metadata (e.g. `{ _meta: { ... } }`)
|
|
9792
|
+
*/
|
|
9793
|
+
setRawCallToolResult(req: CallToolResult): void;
|
|
9794
|
+
}
|
|
9795
|
+
|
|
9770
9796
|
/**
|
|
9771
9797
|
* Enhanced Request class that extends the standard Web Request API with
|
|
9772
9798
|
* convenient properties for accessing path parameters, query strings, and user data.
|