Add RequestOptions to MCP client node

The idea is:

the mcp sdk supports RequestOptions when making requests to the MCP server. Can we add it to the MCP client node?

My use case:

Some tools in my MCP server takes longer than the default timeout, which results in a timeout error in n8n MCP client node.

I think it would be beneficial to add this because:

This enables custom configurations for the MCP client node.

Any resources to support this?

here are the supported methods.

Are you willing to work on this?

Yes

Hello @Nan2018! Just wanted to let you know that I’ve also encountered the need to extend the timeout of the MCP Client tool calls, so I opened Add Timeout config for the MCP Client tool by jreyesr · Pull Request #15886 · n8n-io/n8n · GitHub. You may wish to follow that PR to see when (hopefully!) it gets merged.