Skip to content

Commit eb4ac18

Browse files
committed
chore: update readme
1 parent 7f16718 commit eb4ac18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ impl ServerHandler for MyServerHandler {
9898

9999
---
100100

101-
👉 For a more detailed example of a [Hello World MCP](../../examples/hello-world-mcp-server) Server that supports multiple tools and provides more type-safe handling of `CallToolRequest`, check out: **[examples/hello-world-mcp-server](../../examples/hello-world-mcp-server)**
101+
👉 For a more detailed example of a [Hello World MCP](examples/hello-world-mcp-server) Server that supports multiple tools and provides more type-safe handling of `CallToolRequest`, check out: **[examples/hello-world-mcp-server](examples/hello-world-mcp-server)**
102102

103103
See hello-world-mcp-server example running in [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) :
104104

105-
![mcp-server in rust](../../assets/examples/hello-world-mcp-server.gif)
105+
![mcp-server in rust](assets/examples/hello-world-mcp-server.gif)
106106

107107
---
108108

@@ -183,7 +183,7 @@ async fn main() -> SdkResult<()> {
183183

184184
Here is the output :
185185

186-
![rust-mcp-sdk-client-output](../../assets/sample/mcp-client-sample-code.jpg)
186+
![rust-mcp-sdk-client-output](assets/sample/mcp-client-sample-code.jpg)
187187

188188
> your results may vary slightly depending on the version of the MCP Server in use when you run it.
189189
@@ -192,10 +192,10 @@ Here is the output :
192192
[rust-mcp-sdk](https://github.com/rust-mcp-stack/rust-mcp-sdk) provides two type of handler traits that you can chose from:
193193

194194
- **mcp_server_handler**: This is the recommended trait for your MCP project, offering a default implementation for all types of MCP messages. It includes predefined implementations within the trait, such as handling initialization or responding to ping requests, so you only need to override and customize the handler functions relevant to your specific needs.
195-
Refer to [examples/hello-world-mcp-server/src/handler.rs](../../examples/hello-world-mcp-server/src/handler.rs) for an example.
195+
Refer to [examples/hello-world-mcp-server/src/handler.rs](examples/hello-world-mcp-server/src/handler.rs) for an example.
196196

197197
- **mcp_server_handler_core**: If you need more control over MCP messages, consider using `mcp_server_handler_core`. It offers three primary methods to manage the three MCP message types: `request`, `notification`, and `error`. While still providing type-safe objects in these methods, it allows you to determine how to handle each message based on its type and parameters.
198-
Refer to [examples/hello-world-mcp-server-core/src/handler.rs](../../examples/hello-world-mcp-server-core/src/handler.rs) for an example.
198+
Refer to [examples/hello-world-mcp-server-core/src/handler.rs](examples/hello-world-mcp-server-core/src/handler.rs) for an example.
199199

200200
---
201201

@@ -207,7 +207,7 @@ Here is the output :
207207

208208
The same principles outlined above apply to the client-side handlers, `mcp_client_handler` and `mcp_client_handler_core`.
209209
Use `client_runtime::create_client()` or `client_runtime_core::create_client()` , respectively.
210-
Check out the corresponding examples at: [examples/simple-mcp-client](../../examples/simple-mcp-client) and [examples/hello-world-mcp-server-core](../../examples/hello-world-mcp-server-core).
210+
Check out the corresponding examples at: [examples/simple-mcp-client](examples/simple-mcp-client) and [examples/hello-world-mcp-server-core](examples/hello-world-mcp-server-core).
211211

212212
## License
213213

0 commit comments

Comments
 (0)