feat(onboard): enhance API key validation logic to retain existing keys test(mcp): add tests for MCP tool caching behavior