fix: redirect print() to stderr for stdio MCP transport

print() statements to stdout were corrupting the JSON-RPC protocol
when using stdio transport, causing "connection closed: initialize
response" error. All diagnostic messages now go to stderr.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-30 21:58:15 +01:00
parent 45624a4d91
commit b1817230c6
2 changed files with 30 additions and 26 deletions

View File

@@ -2,6 +2,10 @@ model_provider = "litellm"
# model = "anthropic/claude-sonnet-4-5-20250929"
model = "hosted_vllm/meta-llama/Llama-3.1-8B-Instruct"
# Override litellm provider to set max_tokens
[model_providers.litellm]
max_tokens = 8192
[projects."/home/valknar"]
trust_level = "trusted"