https://www.boundaryml.com logo
mcp weather claude desktio json parsing issue
# help
m
hey there, I'm trying to run the weather mcp server https://github.com/BoundaryML/baml-examples/tree/main/python-mcp-server on my claude desktop. The tool return the correct result but I get alot of warning from claude (see screenshot). I use 4o-mini as my model. It only happens when I use the alter tool not the forcast tool. I use python 3.11 and the baml 0.205. Any idea what could cause the issue here is the part of the log :
Copy code
2025-08-25T13:42:55.809Z [weather] [error] Unexpected token '☀', "    ☀️ **Sizzl"... is not valid JSON {
  metadata: {
    context: 'connection',
    stack: `SyntaxError: Unexpected token '☀', "    ☀️ **Sizzl"... is not valid JSON\n` +
      '    at JSON.parse (<anonymous>)\n' +
      '    at Iwe (C:\\Users\\[USERNAME]\\AppData\\Local\\[APP]\\app-
}
2025-08-25T13:42:55.809Z [weather] [error] Unexpected end of JSON input {
  metadata: {
    context: 'connection',
    stack: 'SyntaxError: Unexpected end of JSON input\n' +
      '    at JSON.parse (<anonymous>)\n' +
      '    at Iwe (C:\\Users\\[USERNAME]\\AppData\\Local\\[APP]\\app-[VERSION]\\resources\\app.asar\\.vite\\build\\index.js:214:207)\n' +
      '    at Nwe.readMessage (C:\\Users\\[USERNAME]\\AppData\\Local\\[APP]\\app-[VERSION]\\resources\\app.asar\\.vite\\build\\index.js:214:133)\n' +
      '    at bwe.processReadBuffer (C:\\Users\\[USERNAME]\\AppData\\Local\\[APP]\\app-[VERSION]\\resources\\app.asar\\.vite\\build\\index.js:215:2203)\n' +
      '    at Socket.<anonymous> (C:\\Users\\[USERNAME]\\AppData\\Local\\
}
2025-08-25T13:42:55.809Z [weather] [error] Unexpected token ' ', "    �� **Light"... is not valid JSON {
  metadata: {
    context: 'connection',
    stack: `SyntaxError: Unexpected token '\ud83d', "    �� **Light"... is not valid JSON\n` +
      '    at JSON.parse (<anonymous>)\n' +
      
      '    at Readable.push (node:internal/streams/readable:392:12)\n' +
      '    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)'
  }
}
}
https://cdn.discordapp.com/attachments/1409535795236438037/1409535795525718167/image.png?ex=68adbc01&is=68ac6a81&hm=b4d70752656354786e4ad5fed5ccaebfe1faea611e50a0a80895ede4ea1c2cae&