Updated the API to work with MCP 1.8

Updated the API to work with MCP 1.8, I had to do this to make my client work correctly.