Skip to content

Commit 22d34ea

Browse files
authored
Simplify mcp.run example by removing json_response
Removed the json_response argument from mcp.run in the example.
1 parent 65c614e commit 22d34ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def greet_user(name: str, style: str = "friendly") -> str:
177177

178178
# Run with streamable HTTP transport
179179
if __name__ == "__main__":
180-
mcp.run(transport="streamable-http", json_response=True)
180+
mcp.run(transport="streamable-http")
181181
```
182182

183183
_Full example: [examples/snippets/servers/mcpserver_quickstart.py](https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/mcpserver_quickstart.py)_

0 commit comments

Comments
 (0)