Skip to content
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

Fix first Python demo so it works without further modifications #66

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

simonw
Copy link
Contributor

@simonw simonw commented Nov 25, 2024

You can't do async with ... outside of an async def function.

You can't do async with ... outside of an async def function
@simonw
Copy link
Contributor Author

simonw commented Nov 25, 2024

After applying this fix you can save the code as /tmp/demo.py and configure it in the inspector like this:

CleanShot 2024-11-25 at 08 45 09@2x

README.md Show resolved Hide resolved
Copy link
Member

@dsp-ant dsp-ant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @simonw !

@dsp-ant dsp-ant merged commit e414828 into modelcontextprotocol:main Nov 25, 2024
3 checks passed
@simonw simonw deleted the patch-1 branch November 25, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants