Content-Length: 268642 | pFad | http://github.com/modelcontextprotocol/rust-sdk/issues/193

BF Add additional simple examples · Issue #193 · modelcontextprotocol/rust-sdk · GitHub
Skip to content

Add additional simple examples #193

Open
@C-Loftus

Description

@C-Loftus

Thank you for the work on this repo, it is super exciting! I have a feature request that hopefully would help new users in the community.

Is your feature request related to a problem? Please describe.

It would be helpful to have additional examples in the repo that are simpler and use very few direct dependencies. For instance, in the Python-mcp repo there are examples which only bring in 4 direct dependencies and in general use less code to demonstrate the features.

In the servers example folder the cargo.toml has 14 dependencies which makes it a bit tricky to adapt for new users since it is unclear which dependencies are needed.

Some of the examples use custom error types like anyhow::Result and it is not super clear to a user less familiar with the Rust ecosystem if this is a requirement or the preference of the maintainers. There is also tracing / logging code which may not be relevant for an example file.

I'd like to clarify that I think the existing examples are great, I just think there are ways to make it easier for newer users who are less familiar with the Rust ecosystem by adding a few more.

Describe the solution you'd like

I think the community would benefit from a very simple quickstart example that can be directly copy/pasted similar to the quickstart example for Python

It may be relevant as well to show the final, fully working file for the Quickstart section in the README

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/modelcontextprotocol/rust-sdk/issues/193

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy