Skip to content

Commit a82d00c

Browse files
docs: Update server IP in usage instructions and add notes on sampling server requirements.
1 parent 0c77778 commit a82d00c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/client/http_client_communication.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,15 @@
99
* - Sampling requests (mocked LLM response)
1010
*
1111
* Usage:
12-
* 1. Start the server: php -S localhost:8000 examples/server/client-communication/server.php
12+
* 1. Start the server: php -S 127.0.0.1:8000 examples/server/client-communication/server.php
1313
* 2. Run this script: php examples/client/http_client_communication.php
14+
*
15+
* Note: PHP's built-in server works for listing tools, calling tools, and receiving
16+
* progress/logging notifications. However, sampling requires a concurrent-capable server
17+
* (e.g., Symfony CLI, PHP-FPM) since the server must process the client's sampling
18+
* response while the original tool request is still pending.
19+
*
20+
* Eg. symfony serve --passthru=examples/server/client-communication/server.php --no-tls
1421
*/
1522

1623
declare(strict_types=1);

0 commit comments

Comments
 (0)