OP
Hi all.
I'm experiencing a strange issue using custom mcp servers with bearer token and http-streaming implementation.
I believe I've manage to recreate the issue both by lovable connecting to a custom server I created, and by connecting lovable to the github official mcp server.
From what I can see it seems if I ask lovable to do multiple mcp requests to the same tool, after the first request is successful subsequent ones always fail.
If I try another tool, then the first request to that tool works, and then subsequent requests fail (same mcp server).
When I look at it it seems that lovable sends "arguments": null for subsequent requests.
Example: "Lovable, add 5 and 10, then 7 and 9 using MCP server":
Request 1 from lovable:
{ "jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": { "name": "add", "arguments": { "a": 5, "b": 10 } } }
Request 2 from lovable:
{ "jsonrpc": "2.0", "id": 4, "method": "tools/call", "params": { "name": "add", "arguments": null } }
Am I the only one experiencing this?