-
Notifications
You must be signed in to change notification settings - Fork 355
Surge example #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surge example #29
Conversation
8bd5cb3
to
2cc06fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Do you mind adding some brief documentation to the top of the example file - maybe what env vars to set or how to deploy with env
examples/text_me.py
Outdated
# /// | ||
|
||
""" | ||
FastMCP Echo Server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FastMCP Echo Server | |
FastMCP Surge Server |
@@ -0,0 +1,59 @@ | |||
# /// script | |||
# dependencies = ["fastmcp"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be unecessary as fastmcp always adds itself as a dependency but 👍 good practice. I did learn that if you have a script declaration like this it overrules all other dependencies though
adds example using https://surgemsg.com/ to text myself from claude
fastmcp install examples/text_me.py -f .env && fastmcp run examples/text_me.py
also updates tests to only run on changes to src, tests, and dep-related files