File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
examples/clients/simple-sampling-client Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,25 @@ This example demonstrates how to use the sampling capability of the MCP SDK with
17
17
18
18
1 . Install dependencies:
19
19
20
- ```sh
21
- cd examples/clients/simple-sampling-client/
22
- uv sync
23
- ```
20
+ ``` sh
21
+ cd examples/clients/simple-sampling-client/
22
+ uv sync
23
+ ```
24
24
25
25
2 . Set environment variables in a ` .env ` file. A sample ` .env ` file is provided as ` .env.example ` .
26
26
27
27
3 . Start the MCP server in a separate terminal:
28
28
29
- ```sh
30
- cd examples/snippets/servers/
31
- uv run server sampling streamable-http
32
- ```
29
+ ``` sh
30
+ cd examples/snippets/servers/
31
+ uv run server sampling streamable-http
32
+ ```
33
33
34
34
4 . Run the sampling client in previous terminal:
35
35
36
- ```sh
37
- uv run mcp-simple-sampling-client
38
- ```
36
+ ``` sh
37
+ uv run mcp-simple-sampling-client
38
+ ```
39
39
40
40
## Usage
41
41
You can’t perform that action at this time.
0 commit comments