You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b4715b0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mcp): redirect all stdout logs to stderr for MCP protocol compliance
This fix ensures the servicenow-mcp-unified MCP server complies with the
MCP protocol specification by writing all log messages to stderr instead
of stdout. This prevents JSON-RPC communication corruption that was
breaking Claude Desktop integration.
Files changed:
- shared/tool-registry.ts: initialization statistics
- server.ts: tool discovery and server statistics output
- index.ts: SIGINT/SIGTERM handlers
- shared/permission-validator.ts: permission logging
- ML tools: training epoch logs
- snow_create_rest_message.ts: fallback log
Fixes: stdout pollution causing "No number after minus sign in JSON"
and "Unexpected token" errors in Claude Desktop.
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy file name to clipboardExpand all lines: packages/core/src/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_incident_classifier.ts
0 commit comments