Skip to content

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

Merged
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
simonw:patch-1
Nov 25, 2024
Merged

Fix first Python demo so it works without further modifications#66
dsp-ant merged 1 commit into
modelcontextprotocol:mainfrom
simonw:patch-1

Conversation

@simonw

@simonw simonw commented Nov 25, 2024

Copy link
Copy Markdown
Contributor

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

simonw commented Nov 25, 2024

Copy link
Copy Markdown
Contributor Author

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

Comment thread README.md

@dsp-ant dsp-ant left a comment

Copy link
Copy Markdown
Member

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 enabled auto-merge November 25, 2024 20:02
@dsp-ant
dsp-ant merged commit e414828 into modelcontextprotocol:main Nov 25, 2024
@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