- Step1: Install the mcp-ts-client package via npm
- Step2: Initialize the MCP client with the server path
- Step3: Use listTools() to discover available tools
- Step4: Use listAllowedDirectories() to identify accessible directories
- Step5: Perform necessary operations and manage permissions based on the retrieved information
- Step6: Close the client connection after completing tasks