@apify/actors-mcp-server 0.17.3-beta.2 → 0.17.4-beta.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/mcp/errors.d.ts +2 -2
- package/dist/mcp/errors.js +2 -2
- package/dist/prompts/prompt_service.d.ts +2 -1
- package/dist/prompts/prompt_service.d.ts.map +1 -1
- package/dist/prompts/prompt_service.js +2 -1
- package/dist/prompts/prompt_service.js.map +1 -1
- package/dist/resources/api_resources.d.ts +4 -4
- package/dist/resources/api_resources.js +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +1 -1
package/dist/mcp/errors.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Protocol-neutral domain errors for the prompt and resource services. They carry the message and
|
|
3
|
-
* optional `data` payload but no protocol error code
|
|
4
|
-
*
|
|
3
|
+
* optional `data` payload but no protocol error code. Each adapter maps them 1:1 right before
|
|
4
|
+
* serialization: `legacy_server.ts` to a v1 `McpError`, `stateless_server.ts` to a v2 `ProtocolError`.
|
|
5
5
|
* This module imports nothing from any MCP SDK.
|
|
6
6
|
*/
|
|
7
7
|
/** A request/resource-level fault (bad URI, missing token, non-Apify origin, 3xx/4xx except 429). */
|
package/dist/mcp/errors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Protocol-neutral domain errors for the prompt and resource services. They carry the message and
|
|
3
|
-
* optional `data` payload but no protocol error code
|
|
4
|
-
*
|
|
3
|
+
* optional `data` payload but no protocol error code. Each adapter maps them 1:1 right before
|
|
4
|
+
* serialization: `legacy_server.ts` to a v1 `McpError`, `stateless_server.ts` to a v2 `ProtocolError`.
|
|
5
5
|
* This module imports nothing from any MCP SDK.
|
|
6
6
|
*/
|
|
7
7
|
/** A request/resource-level fault (bad URI, missing token, non-Apify origin, 3xx/4xx except 429). */
|
|
@@ -19,7 +19,8 @@ type PromptService = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Prompt list/get logic, mirroring `createResourceService`'s factory + explicit-dependency shape.
|
|
21
21
|
* Throws {@link InvalidParamsError} for an unknown prompt name or arguments that fail AJV validation;
|
|
22
|
-
* the `
|
|
22
|
+
* the protocol adapters (`legacy_server.ts`, `stateless_server.ts`) map that to an InvalidParams
|
|
23
|
+
* JSON-RPC error at the wire seam.
|
|
23
24
|
*/
|
|
24
25
|
export declare function createPromptService(prompts: PromptBase[]): PromptService;
|
|
25
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_service.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt_service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;CACL,CAAC;AAEF,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,aAAa,GAAG;IACjB,WAAW,EAAE,MAAM;QAAE,OAAO,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAC7C,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,eAAe,CAAC;CAC/E,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"prompt_service.d.ts","sourceRoot":"","sources":["../../src/prompts/prompt_service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;CACL,CAAC;AAEF,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC7B,CAAC;AAEF,KAAK,aAAa,GAAG;IACjB,WAAW,EAAE,MAAM;QAAE,OAAO,EAAE,UAAU,EAAE,CAAA;KAAE,CAAC;IAC7C,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,eAAe,CAAC;CAC/E,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,aAAa,CAmCxE"}
|
|
@@ -2,7 +2,8 @@ import { InvalidParamsError } from '../mcp/errors.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Prompt list/get logic, mirroring `createResourceService`'s factory + explicit-dependency shape.
|
|
4
4
|
* Throws {@link InvalidParamsError} for an unknown prompt name or arguments that fail AJV validation;
|
|
5
|
-
* the `
|
|
5
|
+
* the protocol adapters (`legacy_server.ts`, `stateless_server.ts`) map that to an InvalidParams
|
|
6
|
+
* JSON-RPC error at the wire seam.
|
|
6
7
|
*/
|
|
7
8
|
export function createPromptService(prompts) {
|
|
8
9
|
const listPrompts = () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt_service.js","sourceRoot":"","sources":["../../src/prompts/prompt_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAqBtD
|
|
1
|
+
{"version":3,"file":"prompt_service.js","sourceRoot":"","sources":["../../src/prompts/prompt_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAqBtD;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAqB;IACrD,MAAM,WAAW,GAAG,GAA8B,EAAE;QAChD,OAAO,EAAE,OAAO,EAAE,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,IAAY,EAAE,IAA6B,EAAmB,EAAE;QAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,MAAM,IAAI,kBAAkB,CACxB,UAAU,IAAI,kCAAkC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAC1F,CAAC;QACN,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,kBAAkB,CACxB,gCAAgC,IAAI,WAAW,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAC5H,CAAC;QACN,CAAC;QACD,OAAO;YACH,WAAW,EAAE,MAAM,CAAC,WAAW;YAC/B,QAAQ,EAAE;gBACN;oBACI,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;qBAClC;iBACJ;aACJ;SACJ,CAAC;IACN,CAAC,CAAC;IAEF,OAAO;QACH,WAAW;QACX,SAAS;KACZ,CAAC;AACN,CAAC"}
|
|
@@ -20,10 +20,10 @@ export declare function isApifyApiUri(uri: string): boolean;
|
|
|
20
20
|
* JSON primitives, formatting, and bytes round-trip exactly.
|
|
21
21
|
*
|
|
22
22
|
* Genuine failures (no token, bad origin, a missing resource, a bad token, a 5xx, a network error)
|
|
23
|
-
* throw a domain error (`InvalidParamsError`/`InternalError`) that the
|
|
24
|
-
* JSON-RPC error, so the SDK returns an error
|
|
25
|
-
* resource (see SEP-2164). A body over
|
|
26
|
-
* successful read returning a download pointer.
|
|
23
|
+
* throw a domain error (`InvalidParamsError`/`InternalError`) that the protocol adapters
|
|
24
|
+
* (`legacy_server.ts`, `stateless_server.ts`) map to a JSON-RPC error, so the SDK returns an error
|
|
25
|
+
* rather than success-shaped content for an unreadable resource (see SEP-2164). A body over
|
|
26
|
+
* `MAX_INLINE_BYTES` is NOT a failure — it is a successful read returning a download pointer.
|
|
27
27
|
*
|
|
28
28
|
* The request goes straight through `apifyClient.httpClient.axios` (the same axios instance
|
|
29
29
|
* apify-client builds internally, so token/origin headers still apply) instead of
|
|
@@ -155,10 +155,10 @@ function parseApiErrorMessage(body) {
|
|
|
155
155
|
* JSON primitives, formatting, and bytes round-trip exactly.
|
|
156
156
|
*
|
|
157
157
|
* Genuine failures (no token, bad origin, a missing resource, a bad token, a 5xx, a network error)
|
|
158
|
-
* throw a domain error (`InvalidParamsError`/`InternalError`) that the
|
|
159
|
-
* JSON-RPC error, so the SDK returns an error
|
|
160
|
-
* resource (see SEP-2164). A body over
|
|
161
|
-
* successful read returning a download pointer.
|
|
158
|
+
* throw a domain error (`InvalidParamsError`/`InternalError`) that the protocol adapters
|
|
159
|
+
* (`legacy_server.ts`, `stateless_server.ts`) map to a JSON-RPC error, so the SDK returns an error
|
|
160
|
+
* rather than success-shaped content for an unreadable resource (see SEP-2164). A body over
|
|
161
|
+
* `MAX_INLINE_BYTES` is NOT a failure — it is a successful read returning a download pointer.
|
|
162
162
|
*
|
|
163
163
|
* The request goes straight through `apifyClient.httpClient.axios` (the same axios instance
|
|
164
164
|
* apify-client builds internally, so token/origin headers still apply) instead of
|