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
+43-16Lines changed: 43 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,22 +83,56 @@ or as a **local server** running on your machine.
83
83
84
84
The Actor runs in [**Standby mode**](https://docs.apify.com/platform/actors/running/standby) with an HTTP web server that receives and processes requests.
85
85
86
-
1.**Start server with default Actors**. To use the Apify MCP Server with set of default Actors,
87
-
send an HTTP GET request with your [Apify API token](https://console.apify.com/settings/integrations) to the following URL.
The server will respond with a `sessionId`, which you can use to send messages to the server:
96
130
```shell
97
131
event: endpoint
98
132
data: /message?sessionId=a1b
99
133
```
100
134
101
-
3. **Send a message to the server** by making a POST request with the `sessionId`:
135
+
2. Send a message to the server by making a POST request with the `sessionId`:
102
136
```shell
103
137
curl -X POST "https://mcp-server.apify.actor?token=<APIFY_API_TOKEN>&session_id=a1b" -H "Content-Type: application/json" -d '{
104
138
"jsonrpc": "2.0",
@@ -117,21 +151,14 @@ The Actor runs in [**Standby mode**](https://docs.apify.com/platform/actors/runn
117
151
Accepted
118
152
```
119
153
120
-
4. **Receive the response.** The server will invoke the specified Actor as a tool using the provided query parameters and stream the response back to the client via SSE.
154
+
3. Receive the response. The server will invoke the specified Actor as a tool using the provided query parameters and stream the response back to the client via SSE.
121
155
The response will be returned as JSON text.
122
156
123
157
```text
124
158
event: message
125
159
data: {"result":{"content":[{"type":"text","text":"{\"searchString\":\"restaurants in San Francisco\",\"rank\":1,\"title\":\"Gary Danko\",\"description\":\"Renowned chef Gary Danko's fixed-price menus of American cuisine ... \",\"price\":\"$100+\"...}}]}}
126
160
```
127
161
128
-
You can also start MCP server with a different set of tools by providing a list of Actor names in the `actors` query parameter.
129
-
Provide a comma-separated list of Actors in the `actors` query parameter:
0 commit comments