We saw the following error in claude code:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"tools.39.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level"},"request_id":"..."}
Pinning to 0.2.2 fixed the issue for us. It seems like maybe 0.13.0 is the first version pushed to npm since 0.2.2: https://www.npmjs.com/package/@perplexity-ai/mcp-server/v/0.13.0?activeTab=versions
current (fixed) configuration
"mcpServers": {
"perplexity": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@perplexity-ai/mcp-server@0.2.2"],
"env": {
"PERPLEXITY_API_KEY": "${PERPLEXITY_API_KEY}"
}
},
...
}```