@apify/actors-mcp-server 0.11.6-beta.0 → 0.11.6-beta.2
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/actors.d.ts +0 -4
- package/dist/mcp/actors.d.ts.map +1 -1
- package/dist/mcp/actors.js +1 -7
- package/dist/mcp/actors.js.map +1 -1
- package/dist/resources/resource_service.d.ts.map +1 -1
- package/dist/resources/resource_service.js +2 -2
- package/dist/resources/resource_service.js.map +1 -1
- package/dist/resources/widgets.d.ts.map +1 -1
- package/dist/resources/widgets.js +5 -5
- package/dist/resources/widgets.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/actor.d.ts +1 -15
- package/dist/utils/actor.d.ts.map +1 -1
- package/dist/utils/actor.js +0 -62
- package/dist/utils/actor.js.map +1 -1
- package/dist/utils/generic.d.ts +0 -17
- package/dist/utils/generic.d.ts.map +1 -1
- package/dist/utils/generic.js +0 -49
- package/dist/utils/generic.js.map +1 -1
- package/dist/utils/tools.d.ts +0 -10
- package/dist/utils/tools.d.ts.map +1 -1
- package/dist/utils/tools.js +0 -35
- package/dist/utils/tools.js.map +1 -1
- package/dist/web/dist/actor-detail-widget.js +171 -462
- package/dist/web/dist/actor-run-widget.js +189 -480
- package/dist/web/dist/search-actors-widget.js +168 -459
- package/package.json +1 -2
- package/dist/utils/mcp_clients.d.ts +0 -6
- package/dist/utils/mcp_clients.d.ts.map +0 -1
- package/dist/utils/mcp_clients.js +0 -21
- package/dist/utils/mcp_clients.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/actors-mcp-server",
|
|
3
|
-
"version": "0.11.6-beta.
|
|
3
|
+
"version": "0.11.6-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Apify MCP Server",
|
|
6
6
|
"mcpName": "com.apify/apify-mcp-server",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"dedent": "^1.7.2",
|
|
63
63
|
"dotenv": "^17.4.1",
|
|
64
64
|
"express": "^4.21.2",
|
|
65
|
-
"mcp-client-capabilities": "^0.0.14",
|
|
66
65
|
"yargs": "^17.7.2",
|
|
67
66
|
"zod": "^4.1.13"
|
|
68
67
|
},
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { InitializeRequest } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the MCP client supports dynamic tools based on the InitializeRequest data.
|
|
4
|
-
*/
|
|
5
|
-
export declare function doesMcpClientSupportDynamicTools(initializeRequestData?: InitializeRequest): boolean;
|
|
6
|
-
//# sourceMappingURL=mcp_clients.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp_clients.d.ts","sourceRoot":"","sources":["../../src/utils/mcp_clients.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAgBnG"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { mcpClients } from 'mcp-client-capabilities';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the MCP client supports dynamic tools based on the InitializeRequest data.
|
|
4
|
-
*/
|
|
5
|
-
export function doesMcpClientSupportDynamicTools(initializeRequestData) {
|
|
6
|
-
var _a, _b, _c, _d;
|
|
7
|
-
const clientName = (_b = (_a = initializeRequestData === null || initializeRequestData === void 0 ? void 0 : initializeRequestData.params) === null || _a === void 0 ? void 0 : _a.clientInfo) === null || _b === void 0 ? void 0 : _b.name;
|
|
8
|
-
const clientCapabilities = mcpClients[clientName || ''];
|
|
9
|
-
if (!clientCapabilities)
|
|
10
|
-
return false;
|
|
11
|
-
const clientProtocolVersion = clientCapabilities.protocolVersion;
|
|
12
|
-
const knownProtocolVersion = (_c = initializeRequestData === null || initializeRequestData === void 0 ? void 0 : initializeRequestData.params) === null || _c === void 0 ? void 0 : _c.protocolVersion;
|
|
13
|
-
// Compare the protocolVersion to check if the client is up to date
|
|
14
|
-
// We check for strict equality because if the versions differ, we cannot be sure about the capabilities
|
|
15
|
-
if (clientProtocolVersion !== knownProtocolVersion) {
|
|
16
|
-
// Client version is different from the known version, we cannot be sure about its capabilities
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
return ((_d = clientCapabilities.tools) === null || _d === void 0 ? void 0 : _d.listChanged) === true;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=mcp_clients.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp_clients.js","sourceRoot":"","sources":["../../src/utils/mcp_clients.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,gCAAgC,CAAC,qBAAyC;;IACtF,MAAM,UAAU,GAAG,MAAA,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,0CAAE,UAAU,0CAAE,IAAI,CAAC;IACnE,MAAM,kBAAkB,GAAG,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACxD,IAAI,CAAC,kBAAkB;QAAE,OAAO,KAAK,CAAC;IAEtC,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,eAAe,CAAC;IACjE,MAAM,oBAAoB,GAAG,MAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,0CAAE,eAAe,CAAC;IAE5E,mEAAmE;IACnE,wGAAwG;IACxG,IAAI,qBAAqB,KAAK,oBAAoB,EAAE,CAAC;QACjD,+FAA+F;QAC/F,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO,CAAA,MAAA,kBAAkB,CAAC,KAAK,0CAAE,WAAW,MAAK,IAAI,CAAC;AAC1D,CAAC"}
|