Skip to content

Commit d37e6bd

Browse files
authored
Merge pull request modelcontextprotocol#1937 from a-akimov/doc-build-server-python-stdout
Doc: Python best practices for stdout, make consistent with other languages
2 parents 4df299c + c7278e0 commit d37e6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/develop/build-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Writing to stdout will corrupt the JSON-RPC messages and break your server.
5959
### Best Practices
6060

6161
1. Use a logging library that writes to stderr or files.
62-
1. Tool names should follow the format specified [here](/specification/draft/server/tools#tool-names).
62+
1. For Python, be especially careful - `print()` writes to stdout by default.
6363

6464
### Quick Examples
6565

0 commit comments

Comments
 (0)