How get the correct current work directory in mcp server?

I am working on a mcp server using stdio as transportation.

It needs to get the working directory to access the project files, but the return value of process.cwd() always the mcp servers location not the working directory.

Is there any way to let mcp server get the correct path?