Skip to content

Commit 22c5e7e

Browse files
committed
update readme about default Actors loading using query param, add TODO to remove Actor loading from Actor input directly since it probably does not work
1 parent bec6dfa commit 22c5e7e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.actor/ACTOR.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ Interested in building and monetizing your own AI agent on Apify? Check out our
6767
## Tools
6868

6969
### Actors
70-
7170
Any [Apify Actor](https://apify.com/store) can be used as a tool.
72-
By default, the server is pre-configured with the Actors specified below, but this can be overridden by providing Actor input.
71+
By default, the server is pre-configured with the Actors specified below, but this can be overridden by providing the `?actors` URL query parameter.
7372

7473
```text
7574
'apify/rag-web-browser'
7675
```
76+
For example, to additionally load the `apify/instagram-scraper` Actor, you can start the server with the following URL:
77+
```text
78+
https://actors-mcp-server.apify.actor?token=<APIFY_TOKEN>&actors=apify/rag-web-browser,apify/instagram-scraper
79+
```
80+
7781
The MCP server loads the Actor input schema and creates MCP tools corresponding to the Actors.
7882
See this example of input schema for the [RAG Web Browser](https://apify.com/apify/rag-web-browser/input-schema).
7983

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ log.info(`Loaded input: ${JSON.stringify(input)} `);
3030

3131
if (STANDBY_MODE) {
3232
let actorsToLoad: string[] = [];
33+
// TODO: in standby mode the input loading does not actually work,
34+
// we should remove this since we are using the URL query parameters to load Actors
3335
// Load only Actors specified in the input
3436
// If you wish to start without any Actor, create a task and leave the input empty
3537
if (input.actors && input.actors.length > 0) {

0 commit comments

Comments
 (0)