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
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -186,12 +186,21 @@ Build the `actor-mcp-server` package:
186
186
npm run build
187
187
```
188
188
189
-
## Debugging
189
+
## Start HTTP streamable MCP server
190
190
191
-
Since MCP servers operate over standard input/output (stdio), debugging can be challenging.
192
-
For the best debugging experience, use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).
191
+
Run using Apify CLI:
193
192
194
-
You can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:
193
+
```bash
194
+
export APIFY_TOKEN="your-apify-token"
195
+
export APIFY_META_ORIGIN=STANDBY
196
+
apify run -p
197
+
```
198
+
199
+
Once the server is running, you can use the [MCP Inspector](https://github.com/modelcontextprotocol/inspector) to debug the server exposed at `http://localhost:3001`.
200
+
201
+
## Start standard input/output (stdio) MCP server
202
+
203
+
You can launch the MCP Inspector with this command:
.describe(`Actor ID or full name in the format "username/name", e.g., "apify/rag-web-browser".`),
15
16
});
16
17
17
-
interfaceIGetActorDetailsToolResult{
18
-
id: string;
19
-
actorFullName: string;
20
-
21
-
isPublic: boolean;
22
-
isDeprecated: boolean;
23
-
createdAt: string;
24
-
modifiedAt: string;
25
-
26
-
categories?: string[];
27
-
description: string;
28
-
readme: string;
29
-
30
-
inputSchema: IActorInputSchema;
31
-
32
-
pricingInfo: string;// We convert the pricing info into a string representation
33
-
34
-
usageStatistics: {
35
-
totalUsers: {
36
-
allTime: number;
37
-
last7Days: number;
38
-
last30Days: number;
39
-
last90Days: number;
40
-
};
41
-
failedRunsInLast30Days: number|string;// string for 'unknown' case
42
-
}
43
-
}
44
-
45
18
exportconstgetActorDetailsTool: ToolEntry={
46
19
type: 'internal',
47
20
tool: {
48
21
name: HelperTools.ACTOR_GET_DETAILS,
49
-
description: `Retrieve information about an Actor by its ID or full name.
50
-
The Actor name is always composed of "username/name", for example, "apify/rag-web-browser".
51
-
This tool returns information about the Actor, including whether it is public or deprecated, when it was created or modified, the categories in which the Actor is listed, a description, a README (the Actor's documentation), the input schema, and usage statistics - such as how many users are using it and the number of failed runs of the Actor.
52
-
For example, use this tool when a user wants to know more about a specific Actor or wants to use optional or advanced parameters of the Actor that are not listed in the default Actor tool input schema - so you know the details and how to pass them.`,
22
+
description: `Get detailed information about an Actor by its ID or full name.\n`
description: `Helper tool to get information on how to use and troubleshoot the Apify MCP server.
124
-
This tool always returns the same help message with information about the server and how to use it.
125
-
ALWAYS CALL THIS TOOL AT THE BEGINNING OF THE CONVERSATION SO THAT YOU HAVE INFORMATION ABOUT THE APIFY MCP SERVER IN CONTEXT, OR WHEN YOU ENCOUNTER ANY ISSUES WITH THE MCP SERVER OR ITS TOOLS.`,
122
+
description: `Helper tool to get information on how to use and troubleshoot the Apify MCP server.\n`
123
+
+'This tool always returns the same help message with information about the server and how to use it.\n'
124
+
+'ALWAYS CALL THIS TOOL AT THE BEGINNING OF THE CONVERSATION SO THAT YOU HAVE INFORMATION ABOUT THE APIFY MCP SERVER IN CONTEXT, '
125
+
+'OR WHEN YOU ENCOUNTER ANY ISSUES WITH THE MCP SERVER OR ITS TOOLS.',
description: `Apify documentation search tool. This tool allows you to search the Apify documentation using Algolia's full-text search.
34
-
You can use it to find relevant documentation pages based on keywords. The results will include the URL of the documentation page, a fragment identifier (if available), and a limited piece of content that matches the search query. You can then fetch the full content of the document using the ${HelperTools.DOCS_FETCH} tool by providing the URL.
35
-
Use this tool when a user asks for help with Apify documentation or when you need to find relevant documentation pages based on keywords. For example, when a user wants to build an Apify Actor, you can search "How to build Actors" to find relevant guidance.`,
33
+
description: `Apify documentation search tool. This tool allows you to search the Apify documentation using Algolia's full-text search.\n`
34
+
+'You can use it to find relevant documentation pages based on keywords. The results will include the URL of the documentation page, '
35
+
+'a fragment identifier (if available), and a limited piece of content that matches the search query. '
36
+
+`You can then fetch the full content of the document using the ${HelperTools.DOCS_FETCH} tool by providing the URL.\n`
37
+
+'Use this tool when a user asks for help with Apify documentation or when you need to find relevant documentation pages based on keywords. '
38
+
+'For example, when a user wants to build an Apify Actor, you can search "How to build Actors" to find relevant guidance.',
0 commit comments