You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: Update README.md with information about clientSse.ts
* Working client with issues
* Add internal tools
* Move client to a separate repository. Update README.md
* Require APIFY_TOKEN when server starts
Copy file name to clipboardExpand all lines: .actor/input_schema.json
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,19 @@
14
14
"lukaskrivka/google-maps-with-contact-details"
15
15
]
16
16
},
17
+
"enableActorAutoLoading": {
18
+
"title": "Enable automatic loading of Actors based on context and use-case (experimental, check if it supported by your client)",
19
+
"type": "boolean",
20
+
"description": "When enabled, the server can dynamically add Actors as tools based on user requests and context. \n\nNote: Not all MCP clients support this feature. To try it, you can use the [Tester MCP Client](https://apify.com/jiri.spilka/tester-mcp-client). This is an experimental feature and may require client-specific support.",
21
+
"default": false
22
+
},
23
+
"maxActorMemoryBytes": {
24
+
"title": "Limit the maximum memory used by an Actor",
25
+
"type": "integer",
26
+
"description": "Limit the maximum memory used by an Actor in bytes. This is important setting for Free plan users to avoid exceeding the memory limit.",
27
+
"prefill": 4096,
28
+
"default": 4096
29
+
},
17
30
"debugActor": {
18
31
"title": "Debug Actor",
19
32
"type": "string",
@@ -28,7 +41,7 @@
28
41
"description": "Specify the input for the Actor that will be used for debugging in normal mode",
-[LibreChat](https://www.librechat.ai/) (stdio and SSE support (yeah without Authorization header))
29
+
-[Apify Tester MCP Client](https://apify.com/jiri.spilka/tester-mcp-client) (SSE support with Authorization headers)
30
+
- other clients at [https://modelcontextprotocol.io/clients](https://modelcontextprotocol.io/clients)
31
+
- more clients at [https://glama.ai/mcp/clients](https://glama.ai/mcp/clients)
22
32
23
-
To interact with the Apify MCP server, you can use MCP clients such as [Claude Desktop](https://claude.ai/download), [LibreChat](https://www.librechat.ai/), or other [MCP clients](https://glama.ai/mcp/clients).
24
33
Additionally, you can use simple example clients found in the [examples](https://github.com/apify/actor-mcp-server/tree/main/src/examples) directory.
25
34
26
35
When you have Actors integrated with the MCP server, you can ask:
@@ -54,6 +63,8 @@ To learn more, check out the blog post: [What are AI Agents?](https://blog.apify
54
63
55
64
## Tools
56
65
66
+
### Actors
67
+
57
68
Any [Apify Actor](https://apify.com/store) can be used as a tool.
58
69
By default, the server is pre-configured with the Actors specified below, but it can be overridden by providing Actor input.
59
70
@@ -79,6 +90,19 @@ You don't need to specify the input parameters or which Actor to call, everythin
79
90
When a tool is called, the arguments are automatically passed to the Actor by the LLM.
80
91
You can refer to the specific Actor's documentation for a list of available arguments.
81
92
93
+
### Helper tools
94
+
95
+
The server provides a set of helper tools to discover available Actors and retrieve their details:
96
+
-`get-actor-details`: Retrieves documentation, input schema, and other details about a specific Actor.
97
+
-`discover-actors`: Searches for relevant Actors using keywords and returns their details.
98
+
99
+
There are also tools to manage the available tools list. However, dynamically adding and removing tools requires the MCP client to have the capability to manage the tools list, which is typically not supported.
100
+
101
+
You can try this functionality using the [Apify Tester MCP Client](https://apify.com/jiri.spilka/tester-mcp-client) Actor. To enable it, set the `enableActorAutoLoading` parameter.
102
+
103
+
-`add-actor-as-tool`: Adds an Actor by name to the available tools list without executing it, requiring user consent to run later.
104
+
-`remove-actor-from-tool`: Removes an Actor by name from the available tools list when it's no longer needed.
105
+
82
106
## Prompt & Resources
83
107
84
108
The server does not provide any resources and prompts.
You can find a list of all available Actors in the [Apify Store](https://apify.com/store).
112
136
113
-
#### 💬 Interact with the MCP Server
137
+
#### 💬 Interact with the MCP Server over SSE
114
138
115
139
Once the server is running, you can interact with Server-Sent Events (SSE) to send messages to the server and receive responses.
116
-
You can use MCP clients such as [Superinference.ai](https://superinterface.ai/) or [LibreChat](https://www.librechat.ai/).
140
+
The easiest way is to use [Tester MCP Client](https://apify.com/jiri.spilka/tester-mcp-client) on Apify.
141
+
142
+
Other clients do not support SSE yet, but this will likely change.
143
+
Please verify if MCP clients such ass [Superinference.ai](https://superinterface.ai/) or [LibreChat](https://www.librechat.ai/) support SSE with custom headers.
117
144
([Claude Desktop](https://claude.ai/download) does not support SSE transport yet, see [Claude Desktop Configuration](#claude-desktop) section for more details).
118
145
119
146
In the client settings you need to provide server configuration:
To test the server with the SSE transport, you can use python script `examples/client_sse.py`:
336
+
To test the server with the SSE transport, you can use python script `examples/clientSse.ts`:
309
337
Currently, the node.js client does not support to establish a connection to remote server witch custom headers.
310
338
You need to change URL to your local server URL in the script.
311
339
312
340
```bash
313
-
python src/examples/client_sse.py
341
+
node dist/examples/clientSse.js
314
342
```
315
343
316
344
## Debugging
@@ -334,17 +362,15 @@ Upon launching, the Inspector will display a URL that you can access in your bro
334
362
335
363
## ⓘ Limitations and feedback
336
364
337
-
To limit the context size the properties in the `input schema` are pruned and description is truncated to 200 characters.
365
+
To limit the context size the properties in the `input schema` are pruned and description is truncated to 500 characters.
338
366
Enum fields and titles are truncated to max 50 options.
339
367
340
368
Memory for each Actor is limited to 4GB.
341
369
Free users have an 8GB limit, 128MB needs to be allocated for running `Actors-MCP-Server`.
342
370
343
-
If you need other features or have any feedback, please [submit an issue](https://console.apify.com/actors/3ox4R101TgZz67sLr/issues) in Apify Console to let us know.
371
+
If you need other features or have any feedback, please [submit an issue](https://console.apify.com/actors/1lSvMAaRcadrM1Vgv/issues) in Apify Console to let us know.
344
372
345
373
# 🚀 Roadmap (January 2025)
346
374
347
-
- Document examples for [LibreChat](https://www.librechat.ai/).
348
-
- Provide tools to search for Actors and load them as needed.
349
375
- Add Apify's dataset and key-value store as resources.
350
376
- Add tools such as Actor logs and Actor runs for debugging.
0 commit comments