-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Labels
Infrastructure 🏗️Infrastructure related workInfrastructure related work
Description
The MCP server was logging version information to stdout during startup:
console.log("Azure DevOps MCP Server version : " + packageVersion);
This causes issues when the server was used with MCP clients (like Claude Desktop) because:
- MCP protocol requires stdout to be reserved exclusively for JSON-RPC messages;
- Any non-JSON output on stdout breaks the protocol communication;
- Clients receive parsing errors like:
Unexpected token 'A', "Azure DevO"... is not valid JSON
which caused MCP client to fail;
https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#stdio
"The server MUST NOT write anything to its stdout that is not a valid MCP message."
The solution for the problem is to just simply remove the version logging at startup as suggested here:
#146
Version info is still accessible via MCP server properties (server.name
and server.version
).
jimmycartrette, AArnott, SimonJaspers, Woollyfoot, alysson-kneat and 3 more
Metadata
Metadata
Labels
Infrastructure 🏗️Infrastructure related workInfrastructure related work