Skip to content

Commit ae54fc9

Browse files
committed
Correct README.md
1 parent bd99e21 commit ae54fc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Alternatively, you can use simple python [client_see.py](https://github.com/apif
129129
130130
2. Send a message to the server by making a POST request with the `sessionId`:
131131
```shell
132-
curl -X POST "https://actors-mcp-server.apify.actor?token=<APIFY_TOKEN>&session_id=a1b" -H "Content-Type: application/json" -d '{
132+
curl -X POST "https://actors-mcp-server.apify.actor/message?token=<APIFY_TOKEN>&session_id=a1b" -H "Content-Type: application/json" -d '{
133133
"jsonrpc": "2.0",
134134
"id": 1,
135135
"method": "tools/call",

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const mcpServer = new ApifyMcpServer();
2424
let transport: SSEServerTransport;
2525

2626
const HELP_MESSAGE = `Connect to the server with GET request to ${HOST}/sse?token=YOUR-APIFY-TOKEN`
27-
+ ` and then send POST requests to ${HOST}/message?token=YOUR-APIFY-TOKEN.`;
27+
+ ` and then send POST requests to ${HOST}/message?token=YOUR-APIFY-TOKEN`;
2828

2929
/**
3030
* Process input parameters and update tools
@@ -102,13 +102,13 @@ if (STANDBY_MODE) {
102102
log.info('Actor is running in the STANDBY mode.');
103103
await mcpServer.addToolsFromDefaultActors();
104104
app.listen(PORT, () => {
105-
log.info(`The Actor web server is listening for user requests at ${HOST}.`);
105+
log.info(`The Actor web server is listening for user requests at ${HOST}`);
106106
});
107107
} else {
108108
log.info('Actor is not designed to run in the NORMAL model (use this mode only for debugging purposes)');
109109

110110
if (input && !input.debugActor && !input.debugActorInput) {
111-
await Actor.fail('If you need to debug a specific actor, please provide the debugActor and debugActorInput fields in the input.');
111+
await Actor.fail('If you need to debug a specific actor, please provide the debugActor and debugActorInput fields in the input');
112112
}
113113
await mcpServer.callActorGetDataset(input.debugActor!, input.debugActorInput!);
114114
await Actor.exit();

0 commit comments

Comments
 (0)