-
Notifications
You must be signed in to change notification settings - Fork 524
Add additional simple examples #193
Copy link
Copy link
Closed
Labels
P2Medium: important but non-blocking improvementMedium: important but non-blocking improvementT-enhancementNew features and enhancementsNew features and enhancementsT-examplesExample code changesExample code changesenhancementNew feature or requestNew feature or request
Metadata
Metadata
Assignees
Labels
P2Medium: important but non-blocking improvementMedium: important but non-blocking improvementT-enhancementNew features and enhancementsNew features and enhancementsT-examplesExample code changesExample code changesenhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
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::Resultand 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