Skip to content

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

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

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

Conversation

@simonw
Copy link
Copy Markdown
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
Copy Markdown
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

Copy link
Copy Markdown
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 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