MCP Logging Issue

Wondering if anyone can point me to how to get logging in my MCP server.
When I run in manually with node it all works fine. But when I point the IDE at it the logging does not come through. I presume cursor is spinning up a virtual environment or something and the log directory is in there instead.

hard to debug anything without it.

Running as :
Command
node C:\git\mcp-template\dist\index.js

2nd Q
Is there a way to programmatically add the configs? I know about the project level MCP but more after global config. I searched everywhere but seems to be internal to the IDE?

Plus one on this. Where are the MCP logs? I get an infinite generation message and no insight into issues.