Skip to content

Commit 7bb924a

Browse files
authored
Fix python snippet in Core architecture (modelcontextprotocol#232)
`asyncio.run` expects a coroutine, not a function.
1 parent e515069 commit 7bb924a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/concepts/architecture.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Here's a basic example of implementing an MCP server:
267267
)
268268

269269
if __name__ == "__main__":
270-
asyncio.run(main)
270+
asyncio.run(main())
271271
```
272272
</Tab>
273273
</Tabs>

0 commit comments

Comments
 (0)